|
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.ObjectCellEditor
com.zfqjava.swing.cell.BooleanCellEditor
public class BooleanCellEditor
BooleanCellEditor provides a boolean editor,
can be used as JTable, JTree
cell editor.
| Field Summary | |
|---|---|
static int |
CHECK_BOX
Identifies the checkbox component type. |
static int |
COMBO_BOX
Identifies the combobox component type. |
static int |
TEXT_FIELD
Identifies the textfield component type. |
| Fields inherited from class com.zfqjava.swing.cell.ObjectCellEditor |
|---|
A_COMBO_BOX, defaultHorizontalAlignment, textField |
| 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 | |
|---|---|
BooleanCellEditor()
Constructs a BooleanCellEditor |
|
| Method Summary | |
|---|---|
protected void |
commitEdit()
Commits the editing. |
protected ComboBoxModel |
createComboBoxModel()
Creates a default ComboBoxModel for JComboBox. |
Component |
getComponent()
Returns the component for this editor. |
protected Object |
getValue()
Returns the value for current editor |
void |
setOpaque(boolean opaque)
Sets the opaque property. |
protected void |
setValue(Object value)
Sets the value for current editor. |
void |
updateUI()
Updates UI. |
| Methods inherited from class com.zfqjava.swing.cell.ObjectCellEditor |
|---|
createAComboBox, createComboBox, createTextField, getComponentType, getDefaultHorizontalAlignment, getEditingValue, setComponentType, setDefaultHorizontalAlignment |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TEXT_FIELD
public static final int CHECK_BOX
public static final int COMBO_BOX
| Constructor Detail |
|---|
public BooleanCellEditor()
| Method Detail |
|---|
protected ComboBoxModel createComboBoxModel()
ObjectCellEditor
createComboBoxModel in class ObjectCellEditorpublic Component getComponent()
AbstractCellEditor
getComponent in class ObjectCellEditorprotected void setValue(Object value)
AbstractCellEditor
setValue in class ObjectCellEditorvalue - the value to editorprotected Object getValue()
AbstractCellEditor
getValue in class ObjectCellEditor
protected void commitEdit()
throws ParseException
AbstractCellEditorAbstractCellEditor.stopCellEditing(), if
cannot commit current editing, should throws exception.
commitEdit in class ObjectCellEditorParseException - if cannot commit the editingpublic void updateUI()
AbstractCellEditor
updateUI in class ObjectCellEditorpublic void setOpaque(boolean opaque)
AbstractCellEditor
setOpaque in class ObjectCellEditoropaque - the opaque property
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||