com.elegantj.jfc.common.editors
Class DefaultEditor
java.lang.Object
com.elegantj.jfc.common.editors.DefaultEditor
- All Implemented Interfaces:
- javax.swing.CellEditor, java.util.EventListener, java.io.Externalizable, java.awt.event.KeyListener, java.io.Serializable, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor
- Direct Known Subclasses:
- BooleanEditor, CheckboxEditor, ChoiceEditor, ColorEditor, DateEditor, IconEditor, MultiLineEditor, MultiOptionEditor, NumberEditor, RadioButtonEditor, SliderEditor, TextEditor
- public abstract class DefaultEditor
- extends java.lang.Object
- implements javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor, java.io.Externalizable, java.awt.event.KeyListener
- See Also:
- Serialized Form
|
Constructor Summary |
DefaultEditor(javax.swing.JComponent jComponent)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
listenerList
protected javax.swing.event.EventListenerList listenerList
changeEvent
protected transient javax.swing.event.ChangeEvent changeEvent
editorComponent
protected transient javax.swing.JComponent editorComponent
clickCountToStart
protected int clickCountToStart
DefaultEditor
public DefaultEditor(javax.swing.JComponent jComponent)
getComponent
public java.awt.Component getComponent()
setClickCountToStart
public void setClickCountToStart(int count)
getClickCountToStart
public int getClickCountToStart()
isCellEditable
public boolean isCellEditable(java.util.EventObject anEvent)
- Specified by:
isCellEditable in interface javax.swing.CellEditor
shouldSelectCell
public boolean shouldSelectCell(java.util.EventObject anEvent)
- Specified by:
shouldSelectCell in interface javax.swing.CellEditor
startCellEditing
public boolean startCellEditing(java.util.EventObject anEvent)
stopCellEditing
public boolean stopCellEditing()
- Specified by:
stopCellEditing in interface javax.swing.CellEditor
cancelCellEditing
public void cancelCellEditing()
- Specified by:
cancelCellEditing in interface javax.swing.CellEditor
addCellEditorListener
public void addCellEditorListener(javax.swing.event.CellEditorListener l)
- Specified by:
addCellEditorListener in interface javax.swing.CellEditor
removeCellEditorListener
public void removeCellEditorListener(javax.swing.event.CellEditorListener l)
- Specified by:
removeCellEditorListener in interface javax.swing.CellEditor
fireEditingStopped
protected void fireEditingStopped()
fireEditingCanceled
protected void fireEditingCanceled()
getTreeCellEditorComponent
public java.awt.Component getTreeCellEditorComponent(javax.swing.JTree tree,
java.lang.Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
- Specified by:
getTreeCellEditorComponent in interface javax.swing.tree.TreeCellEditor
getTableCellEditorComponent
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
- Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor
getCellEditorValue
public abstract java.lang.Object getCellEditorValue()
- Specified by:
getCellEditorValue in interface javax.swing.CellEditor
setValue
public abstract void setValue(java.lang.Object value)
toString
public abstract java.lang.String toString()
writeExternal
public abstract void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
- Specified by:
writeExternal in interface java.io.Externalizable
- Throws:
java.io.IOException
readExternal
public abstract void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Specified by:
readExternal in interface java.io.Externalizable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
keyPressed
public void keyPressed(java.awt.event.KeyEvent e)
- Specified by:
keyPressed in interface java.awt.event.KeyListener
keyReleased
public void keyReleased(java.awt.event.KeyEvent e)
- Specified by:
keyReleased in interface java.awt.event.KeyListener
keyTyped
public void keyTyped(java.awt.event.KeyEvent e)
- Specified by:
keyTyped in interface java.awt.event.KeyListener
Submit a bug or feature
Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.