com.sibvisions.rad.ui.celleditor
Class AbstractTextCellEditor

java.lang.Object
  extended by com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor
      extended by com.sibvisions.rad.ui.celleditor.AbstractInplaceCellEditor
          extended by com.sibvisions.rad.ui.celleditor.AbstractTextCellEditor
All Implemented Interfaces:
ICellEditor, IInplaceCellEditor, IStyledCellEditor, ITextCellEditor, IAlignmentConstants
Direct Known Subclasses:
JVxTextCellEditor

public abstract class AbstractTextCellEditor
extends AbstractInplaceCellEditor
implements ITextCellEditor

The AbstractTextCellEditor is an ITextCellEditor implementation, which provides a base implementation.


Field Summary
protected  java.lang.String contentType
          The content type of this.
 
Fields inherited from class com.sibvisions.rad.ui.celleditor.AbstractInplaceCellEditor
preferredEditorMode
 
Fields inherited from class com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor
horizontalAlignment, verticalAlignment
 
Fields inherited from interface javax.rad.ui.celleditor.ITextCellEditor
TEXT_PLAIN_MULTILINE, TEXT_PLAIN_PASSWORD, TEXT_PLAIN_SINGLELINE, TEXT_PLAIN_WRAPPEDMULTILINE
 
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 AbstractTextCellEditor()
          Creates a new instance of AbstractTextCellEditor.
protected AbstractTextCellEditor(java.lang.String pInitialContentType)
          Creates a new instance of AbstractTextCellEditor.
 
Method Summary
 java.lang.String getContentType()
          Gets the content type used for editing the text.
protected  char getEchoChar()
          Gets the password echo char which is used by maskPassword(String).
 boolean isDirectCellEditor()
          Defines, if the editor should edit directly in complex controls.
protected  java.lang.String maskPassword(java.lang.String pPassword)
          Masks the given string with the set echo char.
 void setContentType(java.lang.String pContentType)
          Sets the content type used for editing the text.
protected  void setEchoChar(char pEchoChar)
          Sets the password echo char which is used by maskPassword(String).
 
Methods inherited from class com.sibvisions.rad.ui.celleditor.AbstractInplaceCellEditor
getPreferredEditorMode, setPreferredEditorMode
 
Methods inherited from class com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor
getHorizontalAlignment, getVerticalAlignment, 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
 
Methods inherited from interface javax.rad.ui.IAlignmentConstants
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment
 

Field Detail

contentType

protected java.lang.String contentType
The content type of this.

Constructor Detail

AbstractTextCellEditor

protected AbstractTextCellEditor()
Creates a new instance of AbstractTextCellEditor.


AbstractTextCellEditor

protected AbstractTextCellEditor(java.lang.String pInitialContentType)
Creates a new instance of AbstractTextCellEditor.

Parameters:
pInitialContentType - the initial content type.
Method Detail

getContentType

public java.lang.String getContentType()
Gets the content type used for editing the text.

Specified by:
getContentType in interface ITextCellEditor
Returns:
the content type

setContentType

public void setContentType(java.lang.String pContentType)
Sets the content type used for editing the text.

Specified by:
setContentType in interface ITextCellEditor
Parameters:
pContentType - the content type

isDirectCellEditor

public boolean isDirectCellEditor()
Defines, if the editor should edit directly in complex controls.

Specified by:
isDirectCellEditor in interface ICellEditor
Overrides:
isDirectCellEditor in class AbstractStyledCellEditor
Returns:
the ICellEditorHandler.

getEchoChar

protected char getEchoChar()
Gets the password echo char which is used by maskPassword(String).

Returns:
the password echo char which is used by maskPassword(String).
See Also:
setEchoChar(char), maskPassword(String)

maskPassword

protected java.lang.String maskPassword(java.lang.String pPassword)
Masks the given string with the set echo char.

Parameters:
pPassword - the string to mask.
Returns:
the masked string. An empty string if the given password is null or empty.
See Also:
getEchoChar(), setEchoChar(char)

setEchoChar

protected void setEchoChar(char pEchoChar)
Sets the password echo char which is used by maskPassword(String).

Parameters:
pEchoChar - the password mask which is used by maskPassword(String).
See Also:
getEchoChar(), maskPassword(String)


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.