|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.jaret.util.ui.table.editor.CellEditorBase de.jaret.util.ui.table.editor.EnumComboEditor
public class EnumComboEditor
Editor for a field with an enum as type. Naturally uses a combobox.
Field Summary | |
---|---|
protected org.eclipse.swt.widgets.Combo |
_combo
combobox widget. |
protected java.lang.Object[] |
_items
list of selectable items in the combobox. |
protected java.lang.Object |
_oldVal
old value. |
Fields inherited from class de.jaret.util.ui.table.editor.CellEditorBase |
---|
_column, _row, _table |
Constructor Summary | |
---|---|
EnumComboEditor()
|
Method Summary | |
---|---|
void |
dispose()
Dispose whatever resouces have been allocated. |
void |
focusGained(org.eclipse.swt.events.FocusEvent arg0)
Do nothing on gaining focus. |
void |
focusLost(org.eclipse.swt.events.FocusEvent arg0)
Stop editing and store the value. |
org.eclipse.swt.widgets.Control |
getEditorControl(JaretTable table,
IRow row,
IColumn column,
char typedKey)
Provide the Control for editing the value at row/column. |
int |
getPreferredHeight()
If the renderer *wishes* to be sized not the height of the cell, this method may be used to announce the preferred height of the control. |
void |
stopEditing(boolean storeInput)
End editing. |
Methods inherited from class de.jaret.util.ui.table.editor.CellEditorBase |
---|
handleClick |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.jaret.util.ui.table.editor.ICellEditor |
---|
handleClick |
Field Detail |
---|
protected org.eclipse.swt.widgets.Combo _combo
protected java.lang.Object _oldVal
protected java.lang.Object[] _items
Constructor Detail |
---|
public EnumComboEditor()
Method Detail |
---|
public org.eclipse.swt.widgets.Control getEditorControl(JaretTable table, IRow row, IColumn column, char typedKey)
This method may return null
indicating that the editor will not supply a control.
getEditorControl
in interface ICellEditor
getEditorControl
in class CellEditorBase
table
- the table requesting the editorrow
- rowcolumn
- columntypedKey
- the character typed when invoking the editor (may be 0 if the editor was invoked without typing
any key)
public void stopEditing(boolean storeInput)
stopEditing
in interface ICellEditor
storeInput
- if true the editor shall save the current input.public void dispose()
dispose
in interface ICellEditor
dispose
in class CellEditorBase
public void focusGained(org.eclipse.swt.events.FocusEvent arg0)
focusGained
in interface org.eclipse.swt.events.FocusListener
public void focusLost(org.eclipse.swt.events.FocusEvent arg0)
focusLost
in interface org.eclipse.swt.events.FocusListener
public int getPreferredHeight()
getPreferredHeight
in interface ICellEditor
getPreferredHeight
in class CellEditorBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |