com.eliad.model.defaults
Class DefaultStyleModel.GenericEditor

java.lang.Object
  |
  +--javax.swing.AbstractCellEditor
        |
        +--com.eliad.model.defaults.DefaultGridCellEditor
              |
              +--com.eliad.model.defaults.DefaultStyleModel.GenericEditor
Direct Known Subclasses:
DefaultStyleModel.NumberEditor

public static class DefaultStyleModel.GenericEditor
extends DefaultGridCellEditor
implements javax.swing.SwingConstants

A generic editor usable with most basic data types. Similar to the one for a JTable

See Also:
Serialized Form

Inner classes inherited from class com.eliad.model.defaults.DefaultGridCellEditor
DefaultGridCellEditor.EditorDelegate
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
DefaultStyleModel.GenericEditor()
          Default constructor, uses a JTextField
 
Method Summary
 java.lang.Object getCellEditorValue()
           
 java.awt.Component getComponent(java.lang.Object value, boolean isSelected, int row, int column, GridContext gridContext)
           
 boolean stopCellEditing()
           
 
Methods inherited from class com.eliad.model.defaults.DefaultGridCellEditor
cancelCellEditing, getClickCountToStart, getComponent, isCellEditable, setClickCountToStart, shouldSelectCell
 
Methods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, removeCellEditorListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStyleModel.GenericEditor

public DefaultStyleModel.GenericEditor()
Default constructor, uses a JTextField
Method Detail

stopCellEditing

public boolean stopCellEditing()
Overrides:
stopCellEditing in class DefaultGridCellEditor

getComponent

public java.awt.Component getComponent(java.lang.Object value,
                                       boolean isSelected,
                                       int row,
                                       int column,
                                       GridContext gridContext)
Overrides:
getComponent in class DefaultGridCellEditor

getCellEditorValue

public java.lang.Object getCellEditorValue()
Overrides:
getCellEditorValue in class DefaultGridCellEditor