javax.rad.genui.celleditor
Class UINumberCellEditor

java.lang.Object
  extended by javax.rad.genui.celleditor.UICellEditor<CE>
      extended by javax.rad.genui.celleditor.UIInplaceCellEditor<INumberCellEditor>
          extended by javax.rad.genui.celleditor.UINumberCellEditor
All Implemented Interfaces:
ICellEditor, IInplaceCellEditor, INumberCellEditor, IStyledCellEditor, IAlignmentConstants, IResource

public class UINumberCellEditor
extends UIInplaceCellEditor<INumberCellEditor>
implements INumberCellEditor

Platform and technology independent number editor. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .


Field Summary
 
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_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
  UINumberCellEditor()
          Creates a new instance of UINumberCellEditor.
  UINumberCellEditor(int pHorizontalAlignment)
          Creates a new instance of UINumberCellEditor.
protected UINumberCellEditor(INumberCellEditor pEditor)
          Creates a new instance of UINumberCellEditor with the given number cell editor.
  UINumberCellEditor(String pNumberFormat)
          Creates a new instance of UINumberCellEditor with the given format.
 
Method Summary
static ICellEditor getDefaultNumberCellEditor()
          Gets the default ICellEditor for Number class.
 String getNumberFormat()
          Gets the number format used for editing the number.
 void setDefaultNumberCellEditor(ICellEditor pCellEditor)
          Sets the default ICellEditor for Number class.
 void setNumberFormat(String pNumberFormat)
          Sets the number format used for editing the number.
 
Methods inherited from class javax.rad.genui.celleditor.UIInplaceCellEditor
getPreferredEditorMode, setPreferredEditorMode
 
Methods inherited from class javax.rad.genui.celleditor.UICellEditor
createCellEditorHandler, getDefaultCellEditor, getHorizontalAlignment, getResource, getVerticalAlignment, isDirectCellEditor, setDefaultCellEditor, 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, isDirectCellEditor
 
Methods inherited from interface javax.rad.ui.IAlignmentConstants
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment
 

Constructor Detail

UINumberCellEditor

public UINumberCellEditor()
Creates a new instance of UINumberCellEditor.

See Also:
INumberCellEditor

UINumberCellEditor

protected UINumberCellEditor(INumberCellEditor pEditor)
Creates a new instance of UINumberCellEditor with the given number cell editor.

Parameters:
pEditor - the number cell editor
See Also:
INumberCellEditor

UINumberCellEditor

public UINumberCellEditor(int pHorizontalAlignment)
Creates a new instance of UINumberCellEditor.

Parameters:
pHorizontalAlignment - the horizontal alignment
See Also:
INumberCellEditor

UINumberCellEditor

public UINumberCellEditor(String pNumberFormat)
Creates a new instance of UINumberCellEditor with the given format.

Parameters:
pNumberFormat - then NumberFormat.
See Also:
INumberCellEditor
Method Detail

getNumberFormat

public 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(String pNumberFormat)
Sets the number format used for editing the number.

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

getDefaultNumberCellEditor

public static ICellEditor getDefaultNumberCellEditor()
Gets the default ICellEditor for Number class. This function should always return an editor. It should look for best matching editor with Class.isAssignableFrom.

Returns:
the ICellEditor
See Also:
ICellEditor

setDefaultNumberCellEditor

public void setDefaultNumberCellEditor(ICellEditor pCellEditor)
Sets the default ICellEditor for Number class. This function should always return an editor. It should look for best matching editor with Class.isAssignableFrom. If the given ICellEditor is null, it is removed as editor for the given class.

Parameters:
pCellEditor - the ICellEditor
See Also:
ICellEditor


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.