com.sibvisions.rad.ui.celleditor
Class AbstractNumberCellEditor

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

public abstract class AbstractNumberCellEditor
extends AbstractInplaceCellEditor
implements INumberCellEditor

The AbstractNumberCellEditor is an INumberCellEditor implementation, which provides a base implementation.


Field Summary
protected  NumberUtil numberUtil
          The number util.
 
Fields inherited from class com.sibvisions.rad.ui.celleditor.AbstractInplaceCellEditor
preferredEditorMode
 
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 AbstractNumberCellEditor()
          Creates a new instance of AbstractNumberCellEditor.
protected AbstractNumberCellEditor(java.lang.String pInitialNumberFormat)
          Creates a new instance of AbstractNumberCellEditor.
 
Method Summary
 java.lang.String getNumberFormat()
          Gets the number format used for editing the number.
 boolean isDirectCellEditor()
          Defines, if the editor should edit directly in complex controls.
 void setNumberFormat(java.lang.String pNumberFormat)
          Sets the number format used for editing the number.
 
Methods inherited from class com.sibvisions.rad.ui.celleditor.AbstractInplaceCellEditor
getPreferredEditorMode, setPreferredEditorMode
 
Methods inherited from class com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor
getHorizontalAlignment, getVerticalAlignment, 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.ui.celleditor.IInplaceCellEditor
getPreferredEditorMode, setPreferredEditorMode
 
Methods inherited from interface javax.rad.model.ui.ICellEditor
createCellEditorHandler
 
Methods inherited from interface javax.rad.ui.IAlignmentConstants
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment
 

Field Detail

numberUtil

protected NumberUtil numberUtil
The number util.

Constructor Detail

AbstractNumberCellEditor

protected AbstractNumberCellEditor()
Creates a new instance of AbstractNumberCellEditor.


AbstractNumberCellEditor

protected AbstractNumberCellEditor(java.lang.String pInitialNumberFormat)
Creates a new instance of AbstractNumberCellEditor.

Parameters:
pInitialNumberFormat - the initial number format.
Method Detail

getNumberFormat

public java.lang.String getNumberFormat()
Gets the number format used for editing the number.

Specified by:
getNumberFormat in interface INumberCellEditor
Returns:
the number format

setNumberFormat

public void setNumberFormat(java.lang.String pNumberFormat)
Sets the number format used for editing the number.

Specified by:
setNumberFormat in interface INumberCellEditor
Parameters:
pNumberFormat - the number format

isDirectCellEditor

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

Specified by:
isDirectCellEditor in interface ICellEditor
Overrides:
isDirectCellEditor in class AbstractStyledCellEditor
Returns:
the ICellEditorHandler.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.