public class TextFieldEditor extends CustomEditor implements SetPropertyEditorOpts
| Modifier and Type | Field and Description |
|---|---|
protected ExternalEditor |
externalEditor |
protected ExternalEditorConsumer |
externalEditorConsumer |
protected JPanel |
panel |
protected WeakHashMap<ExternalEditor,Object> |
prestartValues |
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() |
ExternalEditor |
getExternalEditor() |
String |
getJavaInitializationString() |
protected JLabel |
getNullButton() |
protected JLabel |
getOpenExternalEditor() |
protected JTextComponent |
getTextField() |
protected Object |
getTextFieldValue() |
Object |
getValue() |
boolean |
isAllowNull() |
boolean |
isNullSelected() |
protected void |
openEditor(Object currentValue) |
void |
setAllowNull(boolean allow) |
void |
setAsText(String text) |
void |
setExternalEditor(ExternalEditor externalEditor) |
void |
setNullSelected(boolean selected) |
void |
setPropertyEditorOpts(String opts)
Передача параметров редактору
|
protected void |
setTextFieldValue(Object value)
Указывает редактируемое значение
|
void |
setValue(Object value) |
protected void |
setValue(Object value,
boolean withExternal) |
void |
startEditing(Object value,
Object context) |
addPropertyChangeListener, firePropertyChanged, getCellEditorValue, getComponent, getCustomEditor, getTags, isPaintable, paintValue, parseEditOptions, removePropertyChangeListener, setTags, supportsCustomEditoraddCellEditorListener, cancelCellEditing, clearAllListeners, fireEditingCanceled, fireEditingStopped, getEditIcon, getNullIcon, getNullSelectedIcon, getNullUnSelectedIcon, isCellEditable, isShouldSelectCell, removeCellEditorListener, setCellEditable, setComponent, setShouldSelectCell, stopCellEditingprotected JTextComponent textField
protected ExternalEditor externalEditor
protected WeakHashMap<ExternalEditor,Object> prestartValues
protected ExternalEditorConsumer externalEditorConsumer
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 JLabel getNullButton()
public void setNullSelected(boolean selected)
public boolean isNullSelected()
protected JTextComponent getTextField()
public boolean isAllowNull()
public void setAllowNull(boolean allow)
protected JLabel getOpenExternalEditor()
protected void openEditor(Object currentValue)
public ExternalEditor getExternalEditor()
public void setExternalEditor(ExternalEditor externalEditor)
protected JComponent getEditorPanel()
protected JComponent createComponent()
CustomEditorcreateComponent in class CustomEditorprotected void setTextFieldValue(Object value)
value - значениеprotected Object getTextFieldValue()
public void setValue(Object value)
setValue in interface PropertyEditorpublic Object getValue()
getValue in interface PropertyEditorprotected void setValue(Object value, boolean withExternal)
public String getJavaInitializationString()
getJavaInitializationString in interface PropertyEditorpublic String getAsText()
getAsText in interface PropertyEditorpublic void setAsText(String text) throws IllegalArgumentException
setAsText in interface PropertyEditorIllegalArgumentExceptionCopyright © 2019. All rights reserved.