javax.rad.ui.control
Interface IEditor

All Superinterfaces:
IAlignmentConstants, ICellFormatable, IComponent, IControl, IEditorControl, INamedObject, IResource, ITranslatable, ITranslator
All Known Implementing Classes:
SwingEditor, UIEditor

public interface IEditor
extends IComponent, IEditorControl, IAlignmentConstants, ICellFormatable

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


Field Summary
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Method Summary
 ICellEditor getCellEditor()
          Gets the CellEditor that edits the given column in the given DataRow.
 boolean isBorderVisible()
          Returns whether the the border of the text field is visible.
 boolean isSavingImmediate()
          Tells whether the CellEditor should save immediate.
 void setBorderVisible(boolean pVisible)
          Sets the border of the text field visible or invisible.
 void setCellEditor(ICellEditor pCellEditor)
          Sets the CellEditor that edits the given column in the given DataRow.
 void setSavingImmediate(boolean pSavingImmediate)
          Sets whether the CellEditor should save immediate.
 
Methods inherited from interface javax.rad.ui.IComponent
capture, eventComponentMoved, eventComponentResized, eventFocusGained, eventFocusLost, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getStyle, getTabIndex, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocationRelativeTo, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setStyle, setTabIndex, setToolTipText, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 
Methods inherited from interface javax.rad.model.ui.IEditorControl
getColumnName, getDataRow, setColumnName, setDataRow
 
Methods inherited from interface javax.rad.model.ui.IControl
cancelEditing, notifyRepaint, saveEditing
 
Methods inherited from interface javax.rad.model.ui.ITranslatable
getTranslation, isTranslationEnabled, setTranslation, setTranslationEnabled
 
Methods inherited from interface javax.rad.util.ITranslator
translate
 
Methods inherited from interface javax.rad.ui.IAlignmentConstants
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment
 
Methods inherited from interface javax.rad.ui.control.ICellFormatable
getCellFormatter, setCellFormatter
 

Method Detail

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.

Specified by:
getCellEditor in interface IEditorControl
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.

Specified by:
setCellEditor in interface IEditorControl
Parameters:
pCellEditor - the CellEditor.
Throws:
ModelException - if the cell editor can not be set
See Also:
getCellEditor()

setBorderVisible

void setBorderVisible(boolean pVisible)
Sets the border of the text field visible or invisible.

Parameters:
pVisible - true to set the border visible or false to hide the border

isBorderVisible

boolean isBorderVisible()
Returns whether the the border of the text field is visible.

Returns:
true if the border is visible, false if the border is invisible


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.