|
||||||||||
| 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>
CE - an instance of ICellEditor.public class UICellEditor<CE extends IStyledCellEditor>
Platform and technology independent editor. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
| Field Summary |
|---|
| 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 |
UICellEditor(CE pCEResource)
Constructs a new UICellEditor. |
| Method Summary | |
|---|---|
static void |
addDefaultCellEditor(java.lang.Object[] pAllowedValues,
ICellEditor pEditor)
Adds a cell editor to the list of default cell editors. |
protected java.lang.Object |
createCacheKey()
Creates the cache key. |
ICellEditorHandler |
createCellEditorHandler(ICellEditorListener pCellEditorListener,
IDataRow pDataRow,
java.lang.String pColumnName)
creates an ICellEditorHandler library dependent component. |
static ICellEditor |
getDefaultCellEditor(java.lang.Class pClass)
Gets the default ICellEditor for the given class. |
static ICellEditor |
getDefaultCellEditor(java.lang.Object[] pValues)
Gets a cell editor from the defaults list, if an editor is available for specific values. |
static ICellEditor[] |
getDefaultCellEditors()
Gets all currently available default cell editors as array. |
static ICellEditor[] |
getDefaultCellEditors(java.lang.Class pClass)
Gets all currently available default cell editors of the given class. |
int |
getHorizontalAlignment()
Returns the alignment along the x axis. |
java.lang.Object |
getResource()
Gets the original resource corresponding with this wrapper object. |
int |
getVerticalAlignment()
Returns the alignment along the y axis. |
boolean |
isDirectCellEditor()
Defines, if the editor should edit directly in complex controls. |
static void |
removeAllDefaultCellEditors()
Removes all default cell editors. |
static void |
removeAllDefaultCellEditors(java.lang.Class pClass)
Removes all default cell editors which are of the given class. |
static void |
removeDefaultCellEditor(java.lang.Object[] pAllowedValues)
Removes a cell editor from the list of default cell editors. |
static void |
setDefaultCellEditor(java.lang.Class pClass,
ICellEditor pCellEditor)
Sets the default ICellEditor for the given class. |
void |
setHorizontalAlignment(int pHorizontalAlignment)
Sets the horizontal alignment. |
void |
setVerticalAlignment(int pVerticalAlignment)
Sets the vertical alignment. |
| 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 |
| Constructor Detail |
|---|
protected UICellEditor(CE pCEResource)
UICellEditor.
pCEResource - the CellEditor resource.ICellEditor| Method Detail |
|---|
public final java.lang.Object getResource()
getResource in interface IResourcepublic int getHorizontalAlignment()
getHorizontalAlignment in interface IAlignmentConstantspublic void setHorizontalAlignment(int pHorizontalAlignment)
setHorizontalAlignment in interface IAlignmentConstantspHorizontalAlignment - the new vertical alignmentpublic int getVerticalAlignment()
getVerticalAlignment in interface IAlignmentConstantspublic void setVerticalAlignment(int pVerticalAlignment)
setVerticalAlignment in interface IAlignmentConstantspVerticalAlignment - the new vertical alignment
public ICellEditorHandler createCellEditorHandler(ICellEditorListener pCellEditorListener,
IDataRow pDataRow,
java.lang.String pColumnName)
ICellEditorHandler library dependent component.
createCellEditorHandler in interface ICellEditorpCellEditorListener - the ICellEditorListenerpDataRow - the IDataRowpColumnName - the column name
ICellEditorHandler.public boolean isDirectCellEditor()
isDirectCellEditor in interface ICellEditorICellEditorHandler.public static ICellEditor getDefaultCellEditor(java.lang.Class pClass)
ICellEditor for the given class. This
function should always return an editor. It should look for best matching
editor with Class.isAssignableFrom.
pClass - the class type to be edited.
ICellEditorICellEditor
public static void setDefaultCellEditor(java.lang.Class pClass,
ICellEditor pCellEditor)
ICellEditor for the given 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.
pClass - the class type to be edited.pCellEditor - the ICellEditorICellEditorprotected java.lang.Object createCacheKey()
createCacheKey in class AbstractUIFactoryResource<CE extends IStyledCellEditor>public static ICellEditor getDefaultCellEditor(java.lang.Object[] pValues)
pValues - a list of values for which a cell editor should be found.
All values must match to the allowed values of a registered
editor.
pValue or null if no
matching editor was found.public static ICellEditor[] getDefaultCellEditors()
!= nullpublic static ICellEditor[] getDefaultCellEditors(java.lang.Class pClass)
pClass - the class of editors to be returned
!= null
public static void addDefaultCellEditor(java.lang.Object[] pAllowedValues,
ICellEditor pEditor)
pAllowedValues - the allowed values.pEditor - the editor.public static void removeDefaultCellEditor(java.lang.Object[] pAllowedValues)
pAllowedValues - the allowed values.public static void removeAllDefaultCellEditors()
public static void removeAllDefaultCellEditors(java.lang.Class pClass)
pClass - the class of editors to be removed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||