com.jidesoft.grid
Class IPAddressCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
com.jidesoft.grid.AbstractJideCellEditor
com.jidesoft.grid.ContextSensitiveCellEditor
com.jidesoft.grid.IPAddressCellEditor
- All Implemented Interfaces:
- ConverterContextSupport, EditorContextSupport, EditorStyleSupport, JideCellEditor, Serializable, CellEditor, TableCellEditor
public class IPAddressCellEditor
- extends ContextSensitiveCellEditor
- implements TableCellEditor
- See Also:
- Serialized Form
Methods inherited from class com.jidesoft.grid.ContextSensitiveCellEditor |
getConverter, getConverterContext, getEditorContext, getEditorStyle, getType, isUseConverterContext, setConverter, setConverterContext, setEditorContext, setEditorStyle, setType, setUseConverterContext |
Methods inherited from class com.jidesoft.grid.AbstractJideCellEditor |
addValidationListener, getClickCountToStart, getDefaultErrorBehavior, getValidationListeners, isAutoStopCellEditing, isCellEditable, isPassEnterKeyToTable, removeValidationListener, setAutoStopCellEditing, setClickCountToStart, setDefaultErrorBehavior, setPassEnterKeyToTable, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTEXT
public static EditorContext CONTEXT
_ipTextField
protected IPTextField _ipTextField
IPAddressCellEditor
public IPAddressCellEditor()
- Creates a CellEditor using JSpinner.
customizeTextField
protected void customizeTextField()
createIPTextField
protected IPTextField createIPTextField()
- Creates a IPTextField used by the cell editor. Subclass can override it to return other type of IPTextField or
further customize the IPTextField before returning it.
- Returns:
- an IP text field.
getCellEditorValue
public Object getCellEditorValue()
- Specified by:
getCellEditorValue
in interface CellEditor
setCellEditorValue
public void setCellEditorValue(Object value)
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
- Specified by:
getTableCellEditorComponent
in interface TableCellEditor
getIPTextField
public IPTextField getIPTextField()
- Gets the spinner that is used as the cell editor.
- Returns:
- the spinner.
isEditorStyleSupported
public boolean isEditorStyleSupported(int editorStyle)
- Description copied from interface:
EditorStyleSupport
- Checks if the editor style is supported by the cell editor.
- Specified by:
isEditorStyleSupported
in interface EditorStyleSupport
- Overrides:
isEditorStyleSupported
in class ContextSensitiveCellEditor
- Parameters:
editorStyle
- the editor style
- Returns:
- true if it is supported. Otherwise false.