com.sibvisions.rad.ui.celleditor
Class AbstractInplaceCellEditor

java.lang.Object
  extended by com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor
      extended by com.sibvisions.rad.ui.celleditor.AbstractInplaceCellEditor
All Implemented Interfaces:
ICellEditor, IInplaceCellEditor, IStyledCellEditor, IAlignmentConstants
Direct Known Subclasses:
AbstractChoiceCellEditor, AbstractComboCellEditor, AbstractNumberCellEditor, AbstractTextCellEditor

public abstract class AbstractInplaceCellEditor
extends AbstractStyledCellEditor
implements IInplaceCellEditor

The AbstractInplaceCellEditor is an IInplaceCellEditor implementation, which provides a base implementation.


Field Summary
protected  int preferredEditorMode
          The preferred editor mode.
 
Fields inherited from class com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor
horizontalAlignment, verticalAlignment
 
Fields inherited from interface javax.rad.ui.celleditor.IInplaceCellEditor
DOUBLE_CLICK, SINGLE_CLICK
 
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 AbstractInplaceCellEditor()
          Creates a new instance of AbstractInplaceCellEditor.
protected AbstractInplaceCellEditor(int pInitialPreferredEditorMode)
          Creates a new instance of AbstractInplaceCellEditor.
  AbstractInplaceCellEditor(int pPreferredEditorMode, int pHorizontalAlignment, int pVerticalAlignment)
          Creates a new instance of AbstractInplaceCellEditor.
 
Method Summary
 int getPreferredEditorMode()
          Gets the preferred Editor Mode.
 void setPreferredEditorMode(int pPreferredEditorMode)
          Sets the preferred Editor Mode.
 
Methods inherited from class com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor
getHorizontalAlignment, getVerticalAlignment, isDirectCellEditor, setHorizontalAlignment, setVerticalAlignment
 
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, isDirectCellEditor
 
Methods inherited from interface javax.rad.ui.IAlignmentConstants
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment
 

Field Detail

preferredEditorMode

protected int preferredEditorMode
The preferred editor mode.

See Also:
IInplaceCellEditor.DOUBLE_CLICK, IInplaceCellEditor.SINGLE_CLICK
Constructor Detail

AbstractInplaceCellEditor

protected AbstractInplaceCellEditor()
Creates a new instance of AbstractInplaceCellEditor.


AbstractInplaceCellEditor

protected AbstractInplaceCellEditor(int pInitialPreferredEditorMode)
Creates a new instance of AbstractInplaceCellEditor.

Parameters:
pInitialPreferredEditorMode - the initial preferred editor mode.

AbstractInplaceCellEditor

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

Parameters:
pPreferredEditorMode - the preferred editor mode.
pHorizontalAlignment - the horizontal alignment.
pVerticalAlignment - the vertical alignment.
Method Detail

getPreferredEditorMode

public int getPreferredEditorMode()
Gets the preferred Editor Mode. Different Platforms are open to define own editor modes. As this is meant to be extended, own modes should have constants >= 100, to avoid unwanted interactions. If a platform does not support a editor mode, it should use the default.

Specified by:
getPreferredEditorMode in interface IInplaceCellEditor
Returns:
the preferred Editor Mode.
See Also:
IInplaceCellEditor.DOUBLE_CLICK, IInplaceCellEditor.SINGLE_CLICK

setPreferredEditorMode

public void setPreferredEditorMode(int pPreferredEditorMode)
Sets the preferred Editor Mode. Different Platforms are open to define own editor modes. As this is meant to be extended, own modes should have constants >= 100, to avoid unwanted interactions. If a platform does not support a editor mode, it should use the default.

Specified by:
setPreferredEditorMode in interface IInplaceCellEditor
Parameters:
pPreferredEditorMode - the preferred Editor Mode.
See Also:
IInplaceCellEditor.DOUBLE_CLICK, IInplaceCellEditor.SINGLE_CLICK


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.