| java.lang.Object org.wings.SDefaultCellEditor
Inner Class :protected class EditorDelegate | |
Method Summary | |
public void | addCellEditorListener(CellEditorListener l) | public void | cancelCellEditing() | protected void | fireEditingCanceled() | protected void | fireEditingStopped() | final public SClickable | getCancelButton() | public Object | getCellEditorValue() | final public SComponent | getComponent() Returns a reference to the editor component. | final public boolean | getFastEdit() Return if fast edit is activated. | final public SClickable | getOKButton() | public SComponent | getTableCellEditorComponent(STable table, Object value, boolean isSelected, int row, int column) | public SComponent | getTreeCellEditorComponent(STree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row) | protected void | initButtons() Intializes the buttons with default icons, tooltip text and listener. | public boolean | isCellEditable(EventObject anEvent) | public void | removeCellEditorListener(CellEditorListener l) | final public void | setFastEdit(boolean b) Fast edit support is editing with reduced interaction. | public boolean | shouldSelectCell(EventObject anEvent) | public boolean | stopCellEditing() |
cancel | final protected SClickable cancel(Code) | | If this button is pressed, editing is canceled.
|
delegate | protected EditorDelegate delegate(Code) | | |
editorPanel | final protected EditorPanel editorPanel(Code) | | Panel for edit fields.
|
messageLabel | final protected SLabel messageLabel(Code) | | Label for displaying (error)-messages. It is unvisible, until a message
is set.
|
ok | final protected SClickable ok(Code) | | If this button is pressed, editing is tried to stop. If input validation
found no error, editing is stopped, else an error message is displayed
|
SDefaultCellEditor | protected SDefaultCellEditor(SComponent editorComponent, boolean initializeButtons)(Code) | | Initialize the DefaultCellEditor with an editor component (like an text
field for instance). After calling this constructor, the
EditorDelegate , that links the CellEditor and the
editorComponent has to be passed to the delegate instance variable.
Parameters: editorComponent - the component used Parameters: initializeButtons - flag to indicate if the button texts and iconsshould be initialized. |
SDefaultCellEditor | public SDefaultCellEditor(STextField x)(Code) | | Constructs a DefaultCellEditor that uses a text field.
Parameters: x - a STextField object ... |
SDefaultCellEditor | public SDefaultCellEditor(SCheckBox x)(Code) | | Constructs a DefaultCellEditor object that uses a check box.
Parameters: x - a SCheckBox object ... |
cancelCellEditing | public void cancelCellEditing()(Code) | | |
fireEditingCanceled | protected void fireEditingCanceled()(Code) | | |
fireEditingStopped | protected void fireEditingStopped()(Code) | | |
getComponent | final public SComponent getComponent()(Code) | | Returns a reference to the editor component.
the editor Component |
getTableCellEditorComponent | public SComponent getTableCellEditorComponent(STable table, Object value, boolean isSelected, int row, int column)(Code) | | |
getTreeCellEditorComponent | public SComponent getTreeCellEditorComponent(STree tree, Object value, boolean isSelected, boolean expanded, boolean leaf, int row)(Code) | | |
initButtons | protected void initButtons()(Code) | | Intializes the buttons with default icons, tooltip text and listener.
|
setFastEdit | final public void setFastEdit(boolean b)(Code) | | Fast edit support is editing with reduced interaction. E.g. a boolean
value can only have to states, true or false. So if editing is started,
the editor just flips the state and fires editing stopped.
Parameters: b - a boolean value |
stopCellEditing | public boolean stopCellEditing()(Code) | | |
|
|