|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zfqjava.swing.cell.AbstractCellEditor
com.zfqjava.swing.cell.DefaultCellEditor
public class DefaultCellEditor
DefaultCellEditor provides a Default editor,
can be used as JTable, JTree
cell editor.
| Field Summary | |
|---|---|
protected JLabel |
iconLabel
The label to set icon. |
protected JTextField |
textField
The text field to set text. |
| Fields inherited from class com.zfqjava.swing.cell.AbstractCellEditor |
|---|
CANCEL_EDITING_ON_FOCUS_LOST, changeEvent, COMMIT, COMMIT_OR_EDITING, COMMIT_OR_REVERT, DO_NOTHING_ON_FOCUS_LOST, listenerList, STOP_EDITING_ON_FOCUS_LOST, useSelectionColor |
| Constructor Summary | |
|---|---|
DefaultCellEditor()
Constructs a DefaultCellEditor |
|
| Method Summary | |
|---|---|
protected void |
commitEdit()
Commits the editing. |
Component |
getComponent()
Returns the component for this editor. |
protected Object |
getValue()
Returns the value for current editor |
boolean |
isCellEditable(EventObject e)
Returns true. |
protected void |
setValue(Object value)
Sets the value for current editor. |
protected void |
setValue(Object value,
boolean isSelected)
Sets the value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JLabel iconLabel
protected JTextField textField
| Constructor Detail |
|---|
public DefaultCellEditor()
| Method Detail |
|---|
public Component getComponent()
AbstractCellEditor
getComponent in class AbstractCellEditor
protected void setValue(Object value,
boolean isSelected)
AbstractCellEditor
setValue in class AbstractCellEditorvalue - the valueisSelected - the select stateprotected void setValue(Object value)
AbstractCellEditor
setValue in class AbstractCellEditorvalue - the value to editorprotected Object getValue()
AbstractCellEditor
getValue in class AbstractCellEditor
protected void commitEdit()
throws ParseException
AbstractCellEditorAbstractCellEditor.stopCellEditing(), if
cannot commit current editing, should throws exception.
commitEdit in class AbstractCellEditorParseException - if cannot commit the editingpublic boolean isCellEditable(EventObject e)
AbstractCellEditor
isCellEditable in interface CellEditorisCellEditable in class AbstractCellEditore - an event object
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||