javax.rad.ui.control
Interface IEditor

All Superinterfaces:
IComponent, IControl, IResource
All Known Implementing Classes:
QtEditor, SwingEditor, UIEditor, WebEditor

public interface IEditor
extends IComponent, IControl

Platform and technology independent Editor definition. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .


Method Summary
 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 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.
 
Methods inherited from interface javax.rad.ui.IComponent
capture, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getFactory, getFont, getForeground, getLocation, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setFocusable, setFont, setForeground, setLocation, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 
Methods inherited from interface javax.rad.model.ui.IControl
cancelEditing, getTranslation, notifyRepaint, saveEditing, 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()

isSavingImmediate

boolean isSavingImmediate()
Tells whether the CellEditor should save immediate.

Returns:
whether the CellEditor should save immediate.

setSavingImmediate

void setSavingImmediate(boolean pSavingImmediate)
Sets whether the CellEditor should save immediate.

Parameters:
pSavingImmediate - true, if the CellEditor should save immediate.

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 cell editor can not be set
See Also:
getCellEditor()

getCellFormatter

ICellFormatter getCellFormatter()
Gets the cell formatter.

Returns:
the cell formatter.

setCellFormatter

void setCellFormatter(ICellFormatter pCellFormatter)
Sets the cell formatter.

Parameters:
pCellFormatter - the cell formatter.

setCellFormatter

void setCellFormatter(Object pCellFormatter,
                      String pMethodName)
Sets the cell formatter.

Parameters:
pCellFormatter - the cell formatter.
pMethodName - the method name.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.