本文整理了Java中javax.swing.JTextField.isEditable()
方法的一些代码示例,展示了JTextField.isEditable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTextField.isEditable()
方法的具体详情如下:
包路径:javax.swing.JTextField
类名称:JTextField
方法名:isEditable
暂无
代码示例来源:origin: Waikato/meka
/**
* Returns whether the panel is enabled or not.
*
* @return true if the search components are enabled.
*/
public boolean isEnabled() {
return m_TextSearch.isEditable();
}
代码示例来源:origin: net.sf.meka/meka
/**
* Returns whether the panel is enabled or not.
*
* @return true if the search components are enabled.
*/
public boolean isEnabled() {
return m_TextSearch.isEditable();
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@Override
public boolean getEditable() {
return super.isEditable();
}
代码示例来源:origin: org.appdapter/org.appdapter.lib.gui
public boolean isEditable() {
return textfield.isEditable();
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-ui
private void formFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_formFocusGained
if (jTextFieldTestStepName.isEditable()) {
jTextFieldTestStepName.requestFocus();
} else if (jTextFieldTestStepPath.isEditable()) {
jTextFieldTestStepPath.requestFocus();
}
}//GEN-LAST:event_formFocusGained
// Variables declaration - do not modify//GEN-BEGIN:variables
代码示例来源:origin: com.anrisoftware.prefdialog/prefdialog-corefields
/**
* Returns if the field should is editable.
*
* @return {@code true} if the text field is editable or {@code false} if
* not.
*/
public boolean isEditable() {
return getComponent().isEditable();
}
代码示例来源:origin: opendatakit/briefcase
@Override
protected boolean matchesSafely(JTextField item) {
return item != null && item.isEditable();
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-ui
public String toString(String q, String base) {
if (jTextFieldTestStepName.isEditable() && jTextFieldTestStepName.getText().length() > 0) {
q = QueryDialog.add(q, base + "testStepNamePath.stepName = '" + jTextFieldTestStepName.getText() + "'");
} else if (jTextFieldTestStepPath.isEditable() && jTextFieldTestStepPath.getText().length() > 0) {
q = QueryDialog.add(q, base + "testStepNamePath.stepPath = '" + jTextFieldTestStepPath.getText() + "'");
}
return q;
}
代码示例来源:origin: org.verapdf.apps/gui
public List<SchematronGenerator.Assertion> getAssertions() {
List<SchematronGenerator.Assertion> res = new ArrayList<>(this.featureTypes.size());
for (int i = 0; i < this.featureTypes.size(); ++i) {
FeatureObjectType assertionType = (FeatureObjectType) this.featureTypes.get(i).getSelectedItem();
Feature assertionFeature = (Feature) this.features.get(i).getSelectedItem();
SchematronOperation assertionOperation = (SchematronOperation) this.operations.get(i).getSelectedItem();
JTextField argumentTextField = this.arguments.get(i);
String assertionArgument = argumentTextField.isEditable() ? argumentTextField.getText() : "";
res.add(new SchematronGenerator.Assertion(assertionType, assertionFeature, assertionOperation,
assertionArgument));
}
return res;
}
代码示例来源:origin: org.apache.uima/uimaj-tools
installDirTextField = new JTextField();
installDirTextField.setBounds(83, 80, 492, 20);
installDirTextField.isEditable();
代码示例来源:origin: org.appdapter/org.appdapter.lib.gui
/**
* Event handling routine
*/
@Override public void keyPressed(KeyEvent e) {
if (textfield.isEditable()) {
if (e.getKeyCode() == KeyEvent.VK_UP) {
nextDay();
e.consume();
} else if (e.getKeyCode() == KeyEvent.VK_DOWN) {
prevDay();
e.consume();
} else if (e.getKeyCode() == KeyEvent.VK_PAGE_UP) {
nextMonth();
e.consume();
} else if (e.getKeyCode() == KeyEvent.VK_PAGE_DOWN) {
prevMonth();
e.consume();
} else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
displayDate();
e.consume();
} else if (Character.isLetter(e.getKeyChar())) {
e.consume();
}
}
}
代码示例来源:origin: org.appdapter/org.appdapter.lib.gui
/**
* Event handling routine
*/
@Override public void keyPressed(KeyEvent e) {
if (textfield.isEditable()) {
if (e.getKeyCode() == KeyEvent.VK_UP) {
add1();
e.consume();
} else if (e.getKeyCode() == KeyEvent.VK_DOWN) {
sub1();
e.consume();
} else if (e.getKeyCode() == KeyEvent.VK_PAGE_UP) {
add10();
e.consume();
} else if (e.getKeyCode() == KeyEvent.VK_PAGE_DOWN) {
sub10();
e.consume();
} else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
displayValue();
e.consume();
} else if (Character.isLetter(e.getKeyChar())) {
e.consume();
}
}
}
代码示例来源:origin: stackoverflow.com
@Override
public void mouseClicked(MouseEvent e) {
if(tf.isEditable()){
Point p = e.getPoint();
if(p.x>=getWidth()-22 && p.x <getWidth()
代码示例来源:origin: org.appdapter/org.appdapter.lib.gui
/**
* Event handling routine
*/
@Override public void actionPerformed(ActionEvent e) {
if (textfield.isEditable() && e.getSource() == scrollPanel) {
if (e.getID() == ScrollButtonPanel.DECREMENT)
prevDay();
else if (e.getID() == ScrollButtonPanel.INCREMENT)
nextDay();
}
}
代码示例来源:origin: org.appdapter/org.appdapter.lib.gui
/**
* Event handling routine
*/
@Override public void actionPerformed(ActionEvent e) {
if (textfield.isEditable() && e.getSource() == scrollPanel) {
if (e.getID() == ScrollButtonPanel.DECREMENT)
sub1();
else if (e.getID() == ScrollButtonPanel.INCREMENT)
add1();
} else if (e.getSource() == textfield) {
readValue();
}
}
代码示例来源:origin: triplea-game/triplea
@Test
void readyOnly() {
MatcherAssert.assertThat(
JTextFieldBuilder.builder()
.readOnly()
.build()
.isEditable(),
Is.is(false));
}
代码示例来源:origin: net.anwiba.commons/anwiba-commons-swing-core
document,
this.model,
() -> this.textField.isEditable(),
this.toObjectConverter,
this.toStringConverter,
内容来源于网络,如有侵权,请联系作者删除!