public class TextFieldEditor extends CustomEditor implements SetPropertyEditorOpts
| 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) |
void |
setPropertyEditorOpts(String opts)
Передача параметров редактору
|
protected void |
setTextFieldValue(Object value) |
void |
setValue(Object value) |
void |
startEditing(Object value,
Object context) |
addPropertyChangeListener, firePropertyChanged, getCellEditorValue, getComponent, getCustomEditor, getTags, isPaintable, paintValue, removePropertyChangeListener, setTags, 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 CustomEditorpublic void setPropertyEditorOpts(String opts)
SetPropertyEditorOptssetPropertyEditorOpts in interface SetPropertyEditorOptsopts - параметры/опцииpublic void startEditing(Object value, Object context)
startEditing in interface TreeTableNodeValueEditor.EditorstartEditing 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)
setValue in interface PropertyEditorpublic Object getValue()
getValue in interface PropertyEditorpublic String getJavaInitializationString()
getJavaInitializationString in interface PropertyEditorpublic String getAsText()
getAsText in interface PropertyEditorpublic void setAsText(String text) throws IllegalArgumentException
setAsText in interface PropertyEditorIllegalArgumentExceptionCopyright © 2018. All rights reserved.