com.sibvisions.rad.ui.web.impl.celleditor
Class WebCellEditor

java.lang.Object
  extended by com.sibvisions.rad.ui.web.impl.celleditor.WebCellEditor
All Implemented Interfaces:
ICellEditor, IStyledCellEditor, IAlignmentConstants
Direct Known Subclasses:
WebChoiceCellEditor, WebDateCellEditor, WebImageViewer, WebLinkedCellEditor, WebNumberCellEditor, WebTextCellEditor

public abstract class WebCellEditor
extends Object
implements IStyledCellEditor

Web server implementation of IStyledCellEditor.


Field Summary
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
protected WebCellEditor()
          Constructs a new WebCellEditor.
 
Method Summary
static StyledCellEditor createCellEditor(String pColumn, LinkTableCache pCache, int pTypeIdentifier, ICellEditor pEditor)
          Creates a StyledCellEditor from an ICellEditor instance.
 ICellEditorHandler createCellEditorHandler(ICellEditorListener pCellEditorListener, IDataRow pDataRow, String pColumnName)
          creates an ICellEditorHandler library dependent component.
 int getHorizontalAlignment()
          Returns the alignment along the x axis.
 int getVerticalAlignment()
          Returns the alignment along the y axis.
 boolean isDirectCellEditor()
          Defines, if the editor should edit directly in complex controls.
 void setHorizontalAlignment(int pHorizontalAlignment)
          Sets the horizontal alignment.
 void setVerticalAlignment(int pVerticalAlignment)
          Sets the vertical alignment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebCellEditor

protected WebCellEditor()
Constructs a new WebCellEditor.

See Also:
ICellEditor
Method Detail

isDirectCellEditor

public boolean isDirectCellEditor()
Defines, if the editor should edit directly in complex controls.

Specified by:
isDirectCellEditor in interface ICellEditor
Returns:
the ICellEditorHandler.

getHorizontalAlignment

public int getHorizontalAlignment()
Returns the alignment along the x axis. This specifies how the component would like to be aligned relative to other components. Possible values are defined in AlignmentConstants.

Specified by:
getHorizontalAlignment in interface IAlignmentConstants
Returns:
the horizontal alignment

setHorizontalAlignment

public void setHorizontalAlignment(int pHorizontalAlignment)
Sets the horizontal alignment. Possible values are defined in AlignmentConstants.

Specified by:
setHorizontalAlignment in interface IAlignmentConstants
Parameters:
pHorizontalAlignment - the new vertical alignment

getVerticalAlignment

public int getVerticalAlignment()
Returns the alignment along the y axis. This specifies how the component would like to be aligned relative to other components. Possible values are defined in AlignmentConstants.

Specified by:
getVerticalAlignment in interface IAlignmentConstants
Returns:
the vertical alignment

setVerticalAlignment

public void setVerticalAlignment(int pVerticalAlignment)
Sets the vertical alignment. Possible values are defined in AlignmentConstants.

Specified by:
setVerticalAlignment in interface IAlignmentConstants
Parameters:
pVerticalAlignment - the new vertical alignment

createCellEditorHandler

public ICellEditorHandler createCellEditorHandler(ICellEditorListener pCellEditorListener,
                                                  IDataRow pDataRow,
                                                  String pColumnName)
creates an ICellEditorHandler library dependent component.

Specified by:
createCellEditorHandler in interface ICellEditor
Parameters:
pCellEditorListener - the ICellEditorListener
pDataRow - the IDataRow
pColumnName - the column name
Returns:
the ICellEditorHandler.

createCellEditor

public static StyledCellEditor createCellEditor(String pColumn,
                                                LinkTableCache pCache,
                                                int pTypeIdentifier,
                                                ICellEditor pEditor)
Creates a StyledCellEditor from an ICellEditor instance. The conversion is needed to send the object to the client.

Parameters:
pColumn - the representation/editor column
pCache - the link table cache
pTypeIdentifier - the type identifier for creating a default editor if no specific editor is set
pEditor - the server side specific editor
Returns:
the client side editor definition or null if the editor is not supported


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.