本文整理了Java中javax.swing.JTextField.getClientProperty()
方法的一些代码示例,展示了JTextField.getClientProperty()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextField.getClientProperty()
方法的具体详情如下:
包路径:javax.swing.JTextField
类名称:JTextField
方法名:getClientProperty
暂无
代码示例来源:origin: com.haulmont.thirdparty/swingx-core
public static ActionListener getFindAction(JTextField txt) {
return (ActionListener) txt.getClientProperty(FIND_ACTION_PROPERTY);
}
代码示例来源:origin: com.haulmont.thirdparty/swingx-core
public static ActionListener getCancelAction(JTextField txt) {
return (ActionListener) txt.getClientProperty(CANCEL_ACTION_PROPERTY);
}
代码示例来源:origin: stackoverflow.com
Object source = evt.getSource();
if (source instanceof JTextField) {
JTextField field = (JTextField)source;
int[] coords = field.getClientProperty("coords");
}
代码示例来源:origin: org.swinglabs.swingx/swingx-core
public static ActionListener getFindAction(JTextField txt) {
return (ActionListener) txt.getClientProperty(FIND_ACTION_PROPERTY);
}
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
public static Insets getOuterMargin(JTextField buddyField) {
return (Insets) buddyField.getClientProperty(OUTER_MARGIN);
}
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
public static ActionListener getFindAction(JTextField txt) {
return (ActionListener) txt.getClientProperty(FIND_ACTION_PROPERTY);
}
代码示例来源:origin: org.swinglabs.swingx/swingx-core
public static JPopupMenu getFindPopupMenu(JTextField txt) {
return (JPopupMenu) txt.getClientProperty(FIND_POPUP_PROPERTY);
}
代码示例来源:origin: org.swinglabs.swingx/swingx-core
public static Insets getOuterMargin(JTextField buddyField) {
return (Insets) buddyField.getClientProperty(OUTER_MARGIN);
}
代码示例来源:origin: org.swinglabs.swingx/swingx-core
public static ActionListener getCancelAction(JTextField txt) {
return (ActionListener) txt.getClientProperty(CANCEL_ACTION_PROPERTY);
}
代码示例来源:origin: org.swinglabs.swingx/swingx-all
public static JPopupMenu getFindPopupMenu(JTextField txt) {
return (JPopupMenu) txt.getClientProperty(FIND_POPUP_PROPERTY);
}
代码示例来源:origin: org.swinglabs.swingx/swingx-all
public static ActionListener getCancelAction(JTextField txt) {
return (ActionListener) txt.getClientProperty(CANCEL_ACTION_PROPERTY);
}
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
public static JPopupMenu getFindPopupMenu(JTextField txt) {
return (JPopupMenu) txt.getClientProperty(FIND_POPUP_PROPERTY);
}
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
@SuppressWarnings("unchecked")
private static List<Component> buddies(Position pos, JTextField textField) {
List<Component> buddies = (List<Component>) textField.getClientProperty(pos);
if (buddies != null) {
return buddies;
}
return new ArrayList<Component>();
}
代码示例来源:origin: com.haulmont.thirdparty/swingx-core
@SuppressWarnings("unchecked")
private static List<Component> buddies(Position pos, JTextField textField) {
List<Component> buddies = (List<Component>) textField.getClientProperty(pos);
if (buddies != null) {
return buddies;
}
return new ArrayList<Component>();
}
代码示例来源:origin: org.swinglabs.swingx/swingx-all
@SuppressWarnings("unchecked")
private static List<Component> buddies(Position pos, JTextField textField) {
List<Component> buddies = (List<Component>) textField.getClientProperty(pos);
if (buddies != null) {
return buddies;
}
return new ArrayList<Component>();
}
代码示例来源:origin: org.swinglabs.swingx/swingx-core
@SuppressWarnings("unchecked")
private static List<Component> buddies(Position pos, JTextField textField) {
List<Component> buddies = (List<Component>) textField.getClientProperty(pos);
if (buddies != null) {
return buddies;
}
return new ArrayList<Component>();
}
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
public static boolean isSearchField(JTextField txt) {
return MAC_SEARCH_VARIANT.equals(txt.getClientProperty(MAC_TEXT_FIELD_VARIANT_PROPERTY));
}
代码示例来源:origin: com.haulmont.thirdparty/swingx-core
public static boolean isSearchField(JTextField txt) {
return MAC_SEARCH_VARIANT.equals(txt.getClientProperty(MAC_TEXT_FIELD_VARIANT_PROPERTY));
}
代码示例来源:origin: stackoverflow.com
public void insertUpdate(DocumentEvent documentEvent) {
//source
Object source = documentEvent.getDocument().getProperty("source");
if (source instanceof JTextField){
JTextField field = (JTextField)source;
String id = field.getClientProperty("id");
}
}
代码示例来源:origin: stackoverflow.com
@Override public void focusGained(FocusEvent e){
JTextField jtf = (JTextField) e.getSource();
if(jtf.getClientProperty("originalText").equals(jtf.getText())){
jtf.setText("");
}
}
内容来源于网络,如有侵权,请联系作者删除!