|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.SDefaultCellEditor
public class SDefaultCellEditor
Default table cell editor.
| Nested Class Summary | |
|---|---|
protected class |
SDefaultCellEditor.EditorDelegate
The interface all editing boils down to: setting the value for the editor and retrieve its value. |
| Field Summary | |
|---|---|
protected SClickable |
cancel
If this button is pressed, editing is canceled. |
protected SDefaultCellEditor.EditorDelegate |
delegate
|
protected SComponent |
editorComponent
|
protected org.wings.SDefaultCellEditor.EditorPanel |
editorPanel
Panel for edit fields. |
protected EventListenerList |
listenerList
Store here the CellEditorListener |
protected SLabel |
messageLabel
Label for displaying (error)-messages. |
protected SClickable |
ok
If this button is pressed, editing is tried to stop. |
| Constructor Summary | |
|---|---|
|
SDefaultCellEditor(SCheckBox x)
Constructs a DefaultCellEditor object that uses a check box. |
protected |
SDefaultCellEditor(SComponent editorComponent,
boolean initializeButtons)
Initialize the DefaultCellEditor with an editor component (like an text field for instance). |
|
SDefaultCellEditor(STextField x)
Constructs a DefaultCellEditor that uses a text field. |
| Method Summary | |
|---|---|
void |
addCellEditorListener(CellEditorListener l)
|
void |
cancelCellEditing()
|
protected void |
fireEditingCanceled()
|
protected void |
fireEditingStopped()
|
SClickable |
getCancelButton()
|
Object |
getCellEditorValue()
|
SComponent |
getComponent()
Returns a reference to the editor component. |
boolean |
getFastEdit()
Return if fast edit is activated. |
SClickable |
getOKButton()
|
SComponent |
getTableCellEditorComponent(STable table,
Object value,
boolean isSelected,
int row,
int column)
|
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. |
boolean |
isCellEditable(EventObject anEvent)
|
void |
removeCellEditorListener(CellEditorListener l)
|
void |
setFastEdit(boolean b)
Fast edit support is editing with reduced interaction. |
boolean |
shouldSelectCell(EventObject anEvent)
|
boolean |
stopCellEditing()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final SLabel messageLabel
protected final org.wings.SDefaultCellEditor.EditorPanel editorPanel
protected final SClickable ok
protected final SClickable cancel
protected final EventListenerList listenerList
protected SDefaultCellEditor.EditorDelegate delegate
protected SComponent editorComponent
| Constructor Detail |
|---|
protected SDefaultCellEditor(SComponent editorComponent,
boolean initializeButtons)
SDefaultCellEditor.EditorDelegate, that links the CellEditor and the
editorComponent has to be passed to the delegate instance variable.
editorComponent - the component usedinitializeButtons - flag to indicate if the button texts and icons
should be initialized.public SDefaultCellEditor(STextField x)
x - a STextField object ...public SDefaultCellEditor(SCheckBox x)
x - a SCheckBox object ...| Method Detail |
|---|
protected void initButtons()
public final SComponent getComponent()
public final SClickable getOKButton()
public final SClickable getCancelButton()
public final void setFastEdit(boolean b)
b - a boolean valuepublic final boolean getFastEdit()
boolean valuesetFastEdit(boolean)public Object getCellEditorValue()
getCellEditorValue in interface CellEditorpublic boolean isCellEditable(EventObject anEvent)
isCellEditable in interface CellEditorpublic boolean shouldSelectCell(EventObject anEvent)
shouldSelectCell in interface CellEditorpublic boolean stopCellEditing()
stopCellEditing in interface CellEditorpublic void cancelCellEditing()
cancelCellEditing in interface CellEditorpublic void addCellEditorListener(CellEditorListener l)
addCellEditorListener in interface CellEditorpublic void removeCellEditorListener(CellEditorListener l)
removeCellEditorListener in interface CellEditorprotected void fireEditingStopped()
protected void fireEditingCanceled()
public SComponent getTreeCellEditorComponent(STree tree,
Object value,
boolean isSelected,
boolean expanded,
boolean leaf,
int row)
public SComponent getTableCellEditorComponent(STable table,
Object value,
boolean isSelected,
int row,
int column)
getTableCellEditorComponent in interface STableCellEditor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||