com.sibvisions.rad.ui.web.ext.gwt.celleditor
Class StyledCellEditor

java.lang.Object
  extended by com.sibvisions.rad.ui.web.ext.gwt.celleditor.StyledCellEditor
All Implemented Interfaces:
IAlignmentConstants, Serializable
Direct Known Subclasses:
ChoiceCellEditor, DateCellEditor, ImageViewer, LinkedCellEditor, NumberCellEditor, TextCellEditor

public abstract class StyledCellEditor
extends Object
implements Serializable, IAlignmentConstants

The StyledCellEditor provides the styling of cell editors.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.sibvisions.rad.ui.web.ext.gwt.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
StyledCellEditor()
          Constructs a new instance of StyledCellEditor.
 
Method Summary
 String getEditorColumn()
          Gets the column which represents the value.
 int getHorizontalAlignment()
          Returns the alignment along the x axis.
static String getHorizontalWebAlignment(int pAlignment)
          Gets the horizontal alignment translated to css.
 int getVerticalAlignment()
          Returns the alignment along the y axis.
 String getVerticalWebAlignment(int pAlignment)
          Gets the vertical alignment translated to css.
 boolean isStyleSupported()
          Returns whether the styling of the editor is supported.
 void setEditorColumn(String pColumn)
          Sets the column which represents the value.
 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

StyledCellEditor

public StyledCellEditor()
Constructs a new instance of StyledCellEditor.

Method Detail

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

isStyleSupported

public boolean isStyleSupported()
Returns whether the styling of the editor is supported.

Returns:
true as default value

getHorizontalWebAlignment

public static String getHorizontalWebAlignment(int pAlignment)
Gets the horizontal alignment translated to css.

Parameters:
pAlignment - the horizontal alignment value
Returns:
the web alignment

getVerticalWebAlignment

public String getVerticalWebAlignment(int pAlignment)
Gets the vertical alignment translated to css.

Parameters:
pAlignment - the vertical alignment value
Returns:
the web alignment

setEditorColumn

public void setEditorColumn(String pColumn)
Sets the column which represents the value.

Parameters:
pColumn - the column name

getEditorColumn

public String getEditorColumn()
Gets the column which represents the value.

Returns:
the column name


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.