javax.rad.genui.celleditor
Class UIInplaceCellEditor<CE extends IInplaceCellEditor>

java.lang.Object
  extended by javax.rad.genui.AbstractUIFactoryResource<CE>
      extended by javax.rad.genui.celleditor.UICellEditor<CE>
          extended by javax.rad.genui.celleditor.UIInplaceCellEditor<CE>
Type Parameters:
CE - an instance of IInplaceCellEditor.
All Implemented Interfaces:
ICellEditor, IInplaceCellEditor, IStyledCellEditor, IAlignmentConstants, IResource
Direct Known Subclasses:
UIComboCellEditor, UINumberCellEditor, UITextCellEditor

public class UIInplaceCellEditor<CE extends IInplaceCellEditor>
extends UICellEditor<CE>
implements IInplaceCellEditor

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.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
protected UIInplaceCellEditor(CE pCEResource)
          Constructs a new UIInplaceCellEditor.
 
Method Summary
 int getPreferredEditorMode()
          Gets the preferred Editor Mode.
 void setPreferredEditorMode(int pPreferredEditorMode)
          Sets the preferred Editor Mode.
 
Methods inherited from class javax.rad.genui.celleditor.UICellEditor
addDefaultCellEditor, createCellEditorHandler, getDefaultCellEditor, getDefaultCellEditor, getDefaultCellEditors, getDefaultCellEditors, getHorizontalAlignment, getResource, getVerticalAlignment, isDirectCellEditor, removeAllDefaultCellEditors, removeAllDefaultCellEditors, removeDefaultCellEditor, setDefaultCellEditor, setHorizontalAlignment, setVerticalAlignment
 
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.model.ui.ICellEditor
createCellEditorHandler, isDirectCellEditor
 
Methods inherited from interface javax.rad.ui.IAlignmentConstants
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment
 

Constructor Detail

UIInplaceCellEditor

protected UIInplaceCellEditor(CE pCEResource)
Constructs a new UIInplaceCellEditor.

Parameters:
pCEResource - the CellEditor resource.
See Also:
IInplaceCellEditor
Method Detail

getPreferredEditorMode

public int getPreferredEditorMode()
Gets the preferred Editor Mode. Different Platforms are open to define own editor modes. As this is meant to be extended, own modes should have constants >= 100, to avoid unwanted interactions. If a platform does not support a editor mode, it should use the default.

Specified by:
getPreferredEditorMode in interface IInplaceCellEditor
Returns:
the preferred Editor Mode.
See Also:
IInplaceCellEditor.DOUBLE_CLICK, IInplaceCellEditor.SINGLE_CLICK

setPreferredEditorMode

public void setPreferredEditorMode(int pPreferredEditorMode)
Sets the preferred Editor Mode. Different Platforms are open to define own editor modes. As this is meant to be extended, own modes should have constants >= 100, to avoid unwanted interactions. If a platform does not support a editor mode, it should use the default.

Specified by:
setPreferredEditorMode in interface IInplaceCellEditor
Parameters:
pPreferredEditorMode - the preferred Editor Mode.
See Also:
IInplaceCellEditor.DOUBLE_CLICK, IInplaceCellEditor.SINGLE_CLICK


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.