|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.rad.genui.celleditor.UICellEditor<CE>
javax.rad.genui.celleditor.UIInplaceCellEditor<INumberCellEditor>
javax.rad.genui.celleditor.UINumberCellEditor
public class UINumberCellEditor
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 |
---|
public UINumberCellEditor()
UINumberCellEditor
.
INumberCellEditor
protected UINumberCellEditor(INumberCellEditor pEditor)
UINumberCellEditor
with the given
number cell editor.
pEditor
- the number cell editorINumberCellEditor
public UINumberCellEditor(int pHorizontalAlignment)
UINumberCellEditor
.
pHorizontalAlignment
- the horizontal alignmentINumberCellEditor
public UINumberCellEditor(String pNumberFormat)
UINumberCellEditor
with the given format.
pNumberFormat
- then NumberFormat.INumberCellEditor
Method Detail |
---|
public String getNumberFormat()
getNumberFormat
in interface INumberCellEditor
public void setNumberFormat(String pNumberFormat)
setNumberFormat
in interface INumberCellEditor
pNumberFormat
- the number formatpublic static ICellEditor getDefaultNumberCellEditor()
ICellEditor
for Number class.
This function should always return an editor.
It should look for best matching editor with Class.isAssignableFrom.
ICellEditor
ICellEditor
public void setDefaultNumberCellEditor(ICellEditor pCellEditor)
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.
pCellEditor
- the ICellEditor
ICellEditor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |