javax.rad.model.ui
Interface IEditorControl

All Superinterfaces:
IControl, ITranslatable
All Known Subinterfaces:
IEditor
All Known Implementing Classes:
JVxEditor, SwingEditor, UIEditor

public interface IEditorControl
extends IControl

The IEditorControl is an IControl that displays the value of one column in an IDataRow.


Method Summary
 ICellEditor getCellEditor()
          Gets the CellEditor that edits the given column in the given DataRow.
 String getColumnName()
          Returns the column name displayed by this control.
 IDataRow getDataRow()
          Returns the DataRow displayed by this control.
 void setCellEditor(ICellEditor pCellEditor)
          Sets the CellEditor that edits the given column in the given DataRow.
 void setColumnName(String pColumnName)
          Sets the column name displayed by this control.
 void setDataRow(IDataRow pDataRow)
          Sets the DataRow displayed by this control.
 
Methods inherited from interface javax.rad.model.ui.IControl
cancelEditing, notifyRepaint, saveEditing
 
Methods inherited from interface javax.rad.model.ui.ITranslatable
getTranslation, setTranslation
 

Method Detail

getDataRow

IDataRow getDataRow()
Returns the DataRow displayed by this control.

Returns:
the DataRow.
See Also:
setDataRow(javax.rad.model.IDataRow)

setDataRow

void setDataRow(IDataRow pDataRow)
                throws ModelException
Sets the DataRow displayed by this control.

Parameters:
pDataRow - the DataRow
Throws:
ModelException - if the column name is invalid
See Also:
getDataRow(), setColumnName(String)

getColumnName

String getColumnName()
Returns the column name displayed by this control.

Returns:
the column name.
See Also:
setColumnName(java.lang.String)

setColumnName

void setColumnName(String pColumnName)
                   throws ModelException
Sets the column name displayed by this control.

Parameters:
pColumnName - the column name.
Throws:
ModelException - if the column name is invalid
See Also:
getColumnName()

getCellEditor

ICellEditor getCellEditor()
Gets the CellEditor that edits the given column in the given DataRow. If the CellEditor is null, the editor from the columns DataType is used to edit.

Returns:
the CellEditor.
See Also:
setCellEditor(javax.rad.model.ui.ICellEditor)

setCellEditor

void setCellEditor(ICellEditor pCellEditor)
                   throws ModelException
Sets the CellEditor that edits the given column in the given DataRow. If the CellEditor is null, the editor from the columns DataType is used to edit.

Parameters:
pCellEditor - the CellEditor.
Throws:
ModelException - if the column name of the editor is invalid
See Also:
getCellEditor()


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.