public class TextFieldEditor extends CustomEditor
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowNull |
protected JCheckBox |
nullCheckBox |
protected JPanel |
panel |
protected JTextComponent |
textField |
propertyEditorSupportcellEditable, component, listeners, shouldSelectCell| Constructor and Description |
|---|
TextFieldEditor(boolean allowNull) |
TextFieldEditor(TextFieldEditor sample) |
| Modifier and Type | Method and Description |
|---|---|
CustomEditor |
clone() |
protected JComponent |
createComponent()
Создание графического компонента - редактора
|
String |
getAsText() |
protected JComponent |
getEditorPanel() |
String |
getJavaInitializationString() |
protected JCheckBox |
getNullCheckbox() |
protected JTextComponent |
getTextField() |
protected Object |
getTextFieldValue() |
Object |
getValue() |
protected boolean |
isNullSelected() |
void |
setAsText(String text) |
protected void |
setNullSelected(boolean selected) |
protected void |
setTextFieldValue(Object value) |
void |
setValue(Object value) |
addPropertyChangeListener, firePropertyChanged, getCellEditorValue, getComponent, getCustomEditor, getTags, isPaintable, paintValue, removePropertyChangeListener, setTags, startEditing, supportsCustomEditoraddCellEditorListener, cancelCellEditing, clearAllListeners, fireEditingCanceled, fireEditingStopped, isCellEditable, isShouldSelectCell, removeCellEditorListener, setCellEditable, setComponent, setShouldSelectCell, stopCellEditingprotected JCheckBox nullCheckBox
protected JTextComponent textField
protected boolean allowNull
protected JPanel panel
public TextFieldEditor(boolean allowNull)
public TextFieldEditor(TextFieldEditor sample)
public CustomEditor clone()
clone in class CustomEditorprotected JCheckBox getNullCheckbox()
protected boolean isNullSelected()
protected void setNullSelected(boolean selected)
protected JTextComponent getTextField()
protected JComponent getEditorPanel()
protected JComponent createComponent()
CustomEditorcreateComponent in class CustomEditorprotected void setTextFieldValue(Object value)
protected Object getTextFieldValue()
public void setValue(Object value)
public Object getValue()
public String getJavaInitializationString()
public String getAsText()
public void setAsText(String text) throws IllegalArgumentException
IllegalArgumentExceptionCopyright © 2017. All rights reserved.