|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<IEditor>
javax.rad.genui.control.UIEditor
public class UIEditor
Platform and technology independent Editor. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
| Field Summary |
|---|
| Fields inherited from class javax.rad.genui.UIComponent |
|---|
lLastTranslationModified, parent |
| Fields inherited from class javax.rad.genui.UIResource |
|---|
uiResource |
| Constructor Summary | |
|---|---|
|
UIEditor()
Creates a new instance of UIEditor. |
|
UIEditor(IDataRow pDataRow,
String pColumnName)
Creates a new instance of UIEditor. |
protected |
UIEditor(IEditor pEditor)
Creates a new instance of UIEditor with the given
editor. |
| Method Summary | |
|---|---|
void |
cancelEditing()
Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook. |
ICellEditor |
getCellEditor()
Gets the CellEditor that edits the given column in the given DataRow. |
ICellFormatter |
getCellFormatter()
Gets the cell formatter. |
String |
getColumnName()
Returns the column name displayed by this control. |
IDataRow |
getDataRow()
Returns the DataRow displayed by this control. |
boolean |
isSavingImmediate()
Tells whether the CellEditor should save immediate. |
void |
notifyRepaint()
The control need to check if the part is visible and then repaint the part. |
void |
saveEditing()
Informs the GUI control, that the last edit should be set into the IDataBook or IDataRow. |
void |
setCellEditor(ICellEditor pCellEditor)
Sets the CellEditor that edits the given column in the given DataRow. |
void |
setCellFormatter(ICellFormatter pCellFormatter)
Sets the cell formatter. |
void |
setCellFormatter(Object pCellFormatter,
String pMethodName)
Sets the cell formatter. |
void |
setColumnName(String pColumnName)
Sets the column name displayed by this control. |
void |
setDataRow(IDataRow pDataRow)
Sets the DataRow displayed by this control. |
void |
setSavingImmediate(boolean pSavingImmediate)
Sets whether the CellEditor should save immediate. |
void |
updateTranslation()
Notification for updating the translation. |
| Methods inherited from class javax.rad.genui.UIResource |
|---|
equals, getUIResource, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Methods inherited from interface javax.rad.model.ui.ITranslatable |
|---|
getTranslation, setTranslation |
| Constructor Detail |
|---|
public UIEditor()
UIEditor.
IEditorprotected UIEditor(IEditor pEditor)
UIEditor with the given
editor.
pEditor - the editorIEditor
public UIEditor(IDataRow pDataRow,
String pColumnName)
throws ModelException
UIEditor.
pDataRow - the IDataRow.pColumnName - the column name.
ModelException - if the editor can't be initialized.IEditor| Method Detail |
|---|
public IDataRow getDataRow()
getDataRow in interface IEditorControlIEditorControl.setDataRow(javax.rad.model.IDataRow)
public void setDataRow(IDataRow pDataRow)
throws ModelException
setDataRow in interface IEditorControlpDataRow - the DataRow
ModelException - if the column name is invalidIEditorControl.getDataRow(),
IEditorControl.setColumnName(String)public String getColumnName()
getColumnName in interface IEditorControlIEditorControl.setColumnName(java.lang.String)
public void setColumnName(String pColumnName)
throws ModelException
setColumnName in interface IEditorControlpColumnName - the column name.
ModelException - if the column name is invalidIEditorControl.getColumnName()public ICellEditor getCellEditor()
getCellEditor in interface IEditorControlgetCellEditor in interface IEditorIEditor.setCellEditor(javax.rad.model.ui.ICellEditor)
public void setCellEditor(ICellEditor pCellEditor)
throws ModelException
setCellEditor in interface IEditorControlsetCellEditor in interface IEditorpCellEditor - the CellEditor.
ModelException - if the cell editor can not be setIEditor.getCellEditor()public boolean isSavingImmediate()
isSavingImmediate in interface IEditorpublic void setSavingImmediate(boolean pSavingImmediate)
setSavingImmediate in interface IEditorpSavingImmediate - true, if the CellEditor should save immediate.public void notifyRepaint()
notifyRepaint in interface IControl
public void saveEditing()
throws ModelException
IDataBook or IDataRow.
saveEditing in interface IControlModelException - if the value can not be stored.public void cancelEditing()
DataBook.
cancelEditing in interface IControlpublic ICellFormatter getCellFormatter()
getCellFormatter in interface ICellFormatablepublic void setCellFormatter(ICellFormatter pCellFormatter)
setCellFormatter in interface ICellFormatablepCellFormatter - the cell formatter.
public void setCellFormatter(Object pCellFormatter,
String pMethodName)
pCellFormatter - the cell formatter.pMethodName - the method name.public void updateTranslation()
UIComponent will be added to a displayable containment hierarchy,
when its containment hierarchy is made displayable or the translation table will
be changed.
updateTranslation in class UIComponent<IEditor>UIComponent.setTranslation(TranslationMap),
UIComponent.addNotify()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||