|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.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_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
Constructor Summary | |
---|---|
protected |
UICellEditor(CE pCEResource)
Constructs a new UICellEditor . |
Method Summary | |
---|---|
ICellEditorHandler |
createCellEditorHandler(ICellEditorListener pCellEditorListener,
IDataRow pDataRow,
String pColumnName)
creates an ICellEditorHandler library dependent component. |
static ICellEditor |
getDefaultCellEditor(Class pClass)
Gets the default ICellEditor for the given class. |
int |
getHorizontalAlignment()
Returns the alignment along the x axis. |
CE |
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 |
setDefaultCellEditor(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 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 CE getResource()
getResource
in interface IResource
public int getHorizontalAlignment()
getHorizontalAlignment
in interface IAlignmentConstants
public void setHorizontalAlignment(int pHorizontalAlignment)
setHorizontalAlignment
in interface IAlignmentConstants
pHorizontalAlignment
- the new vertical alignmentpublic int getVerticalAlignment()
getVerticalAlignment
in interface IAlignmentConstants
public void setVerticalAlignment(int pVerticalAlignment)
setVerticalAlignment
in interface IAlignmentConstants
pVerticalAlignment
- the new vertical alignmentpublic ICellEditorHandler createCellEditorHandler(ICellEditorListener pCellEditorListener, IDataRow pDataRow, String pColumnName)
ICellEditorHandler
library dependent component.
createCellEditorHandler
in interface ICellEditor
pCellEditorListener
- the ICellEditorListener
pDataRow
- the IDataRow
pColumnName
- the column name
ICellEditorHandler
.public boolean isDirectCellEditor()
isDirectCellEditor
in interface ICellEditor
ICellEditorHandler
.public static ICellEditor getDefaultCellEditor(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.
ICellEditor
ICellEditor
public static void setDefaultCellEditor(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 ICellEditor
ICellEditor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |