|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.web.impl.WebResource
com.sibvisions.rad.ui.web.impl.WebComponent
com.sibvisions.rad.ui.web.impl.control.LinkTableCache
com.sibvisions.rad.ui.web.impl.control.WebEditor
public class WebEditor
Web server implementation of IEditor.
| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.ui.web.impl.WebComponent |
|---|
componentId |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
WebEditor()
Creates a new instance of WebEditor. |
|
| 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. |
List<Object> |
getReferencedValues()
Gets a list of values which are directly referenced to this editor and the current value. |
TranslationMap |
getTranslation()
Gets the possible translation mapping for this UIComponent. |
FormattedValue |
getValue()
Gets the current value of the editor. |
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 |
refresh()
Refresh the editor values. |
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 |
setTranslation(TranslationMap pTranslation)
Sets the possible translations for this UIComponent. |
| Methods inherited from class com.sibvisions.rad.ui.web.impl.control.LinkTableCache |
|---|
addLinkTable, getLinkTable, removeLinkTable |
| Methods inherited from class com.sibvisions.rad.ui.web.impl.WebResource |
|---|
getNullableAsString, getResource, setAsString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Constructor Detail |
|---|
public WebEditor()
WebEditor.
IEditor| Method Detail |
|---|
public IDataRow getDataRow()
getDataRow in interface IEditorIEditor.setDataRow(javax.rad.model.IDataRow)
public void setDataRow(IDataRow pDataRow)
throws ModelException
setDataRow in interface IEditorpDataRow - the DataRow
ModelException - if the column name is invalidIEditor.getDataRow(),
IEditor.setColumnName(String)public String getColumnName()
getColumnName in interface IEditorIEditor.setColumnName(java.lang.String)
public void setColumnName(String pColumnName)
throws ModelException
setColumnName in interface IEditorpColumnName - the column name.
ModelException - if the column name is invalidIEditor.getColumnName()public ICellEditor getCellEditor()
getCellEditor in interface IEditorIEditor.setCellEditor(javax.rad.model.ui.ICellEditor)
public void setCellEditor(ICellEditor pCellEditor)
throws ModelException
setCellEditor 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 IEditorpublic void setCellFormatter(ICellFormatter pCellFormatter)
setCellFormatter in interface IEditorpCellFormatter - the cell formatter.
public void setCellFormatter(Object pCellFormatter,
String pMethodName)
setCellFormatter in interface IEditorpCellFormatter - the cell formatter.pMethodName - the method name.public TranslationMap getTranslation()
UIComponent.
getTranslation in interface IControlpublic void setTranslation(TranslationMap pTranslation)
UIComponent.
setTranslation in interface IControlpTranslation - the translation mappingpublic FormattedValue getValue()
public List<Object> getReferencedValues()
null if no reference existsgetValue()public void refresh()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||