com.sibvisions.rad.ui.celleditor
Class AbstractStyledCellEditor

java.lang.Object
  extended by com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor
All Implemented Interfaces:
ICellEditor, IStyledCellEditor, IAlignmentConstants
Direct Known Subclasses:
AbstractCheckBoxCellEditor, AbstractImageViewer, AbstractInplaceCellEditor

public abstract class AbstractStyledCellEditor
extends java.lang.Object
implements IStyledCellEditor

The AbstractStyledCellEditor is an abstract implementation of IStyledCellEditor which provides a base implementation.


Field Summary
protected  int horizontalAlignment
          The horizontal alignment.
protected  int verticalAlignment
          The vertical alignment.
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
protected AbstractStyledCellEditor()
          Creates a new instance of AbstractStyledCellEditor.
  AbstractStyledCellEditor(int pHorizontalAlignment, int pVerticalAlignment)
          Creates a new instance of AbstractStyledCellEditor.
 
Method Summary
 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
 
Methods inherited from interface javax.rad.model.ui.ICellEditor
createCellEditorHandler
 

Field Detail

horizontalAlignment

protected int horizontalAlignment
The horizontal alignment.


verticalAlignment

protected int verticalAlignment
The vertical alignment.

Constructor Detail

AbstractStyledCellEditor

protected AbstractStyledCellEditor()
Creates a new instance of AbstractStyledCellEditor.


AbstractStyledCellEditor

public AbstractStyledCellEditor(int pHorizontalAlignment,
                                int pVerticalAlignment)
Creates a new instance of AbstractStyledCellEditor.

Parameters:
pHorizontalAlignment - the horizontal alignment.
pVerticalAlignment - the vertical alignment.
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

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

isDirectCellEditor

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

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

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

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


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.