|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.genui.AbstractUIFactoryResource<CE>
javax.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_DEFAULT, 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(java.lang.String pNumberFormat)
Creates a new instance of UINumberCellEditor with the given format. |
| Method Summary | |
|---|---|
static ICellEditor |
getDefaultNumberCellEditor()
Gets the default ICellEditor for Number class. |
java.lang.String |
getNumberFormat()
Gets the number format used for editing the number. |
void |
setDefaultNumberCellEditor(ICellEditor pCellEditor)
Sets the default ICellEditor for Number class. |
void |
setNumberFormat(java.lang.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.AbstractUIFactoryResource |
|---|
getUIResource, setUIResource |
| 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.
INumberCellEditorprotected UINumberCellEditor(INumberCellEditor pEditor)
UINumberCellEditor with the given
number cell editor.
pEditor - the number cell editorINumberCellEditorpublic UINumberCellEditor(int pHorizontalAlignment)
UINumberCellEditor.
pHorizontalAlignment - the horizontal alignmentINumberCellEditorpublic UINumberCellEditor(java.lang.String pNumberFormat)
UINumberCellEditor with the given format.
pNumberFormat - then NumberFormat.INumberCellEditor| Method Detail |
|---|
public java.lang.String getNumberFormat()
getNumberFormat in interface INumberCellEditorpublic void setNumberFormat(java.lang.String pNumberFormat)
setNumberFormat in interface INumberCellEditorpNumberFormat - 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.
ICellEditorICellEditorpublic 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 ICellEditorICellEditor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||