com.sibvisions.rad.ui.celleditor
Class AbstractCheckBoxCellEditor<C>

java.lang.Object
  extended by com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor
      extended by com.sibvisions.rad.ui.celleditor.AbstractCheckBoxCellEditor<C>
Type Parameters:
C - the type of the content.
All Implemented Interfaces:
ICellEditor, ICellRenderer<C>, ICheckBoxCellEditor<C>, IStyledCellEditor, IAlignmentConstants
Direct Known Subclasses:
JVxCheckBoxCellEditor

public abstract class AbstractCheckBoxCellEditor<C>
extends AbstractStyledCellEditor
implements ICheckBoxCellEditor<C>

The AbstractCheckBoxCellEditor is an ICheckBoxCellEditor implementation, which provides a base implementation.


Field Summary
protected  java.lang.Object deselectedValue
          The deselected value.
protected  java.lang.Object selectedValue
          The selected value.
protected  java.lang.String text
          The text.
 
Fields inherited from class com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor
horizontalAlignment, verticalAlignment
 
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 AbstractCheckBoxCellEditor()
          Creates a new instance of AbstractCheckBoxCellEditor.
protected AbstractCheckBoxCellEditor(java.lang.Object pSelectedValue, java.lang.Object pDeselectedValue)
          Creates a new instance of AbstractCheckBoxCellEditor.
protected AbstractCheckBoxCellEditor(java.lang.Object pSelectedValue, java.lang.Object pDeselectedValue, java.lang.String pText)
          Creates a new instance of AbstractCheckBoxCellEditor.
 
Method Summary
 java.lang.Object getDeselectedValue()
          Gets the value for deselected state.
 java.lang.Object getSelectedValue()
          Gets the value for selected state.
 java.lang.String getText()
          Gets the text of the checkbox button.
 void setDeselectedValue(java.lang.Object pDeselectedValue)
          Sets the value for deselected state.
 void setSelectedValue(java.lang.Object pSelectedValue)
          Sets the value for selected state.
 void setText(java.lang.String pText)
          Sets the text of the checkbox button.
 
Methods inherited from class com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor
getHorizontalAlignment, getVerticalAlignment, isDirectCellEditor, 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.model.ui.ICellEditor
createCellEditorHandler, isDirectCellEditor
 
Methods inherited from interface javax.rad.ui.IAlignmentConstants
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment
 
Methods inherited from interface javax.rad.model.ui.ICellRenderer
getCellRendererComponent
 

Field Detail

deselectedValue

protected java.lang.Object deselectedValue
The deselected value.


selectedValue

protected java.lang.Object selectedValue
The selected value.


text

protected java.lang.String text
The text.

Constructor Detail

AbstractCheckBoxCellEditor

protected AbstractCheckBoxCellEditor()
Creates a new instance of AbstractCheckBoxCellEditor.


AbstractCheckBoxCellEditor

protected AbstractCheckBoxCellEditor(java.lang.Object pSelectedValue,
                                     java.lang.Object pDeselectedValue)
Creates a new instance of AbstractCheckBoxCellEditor.

Parameters:
pSelectedValue - the selected value.
pDeselectedValue - the deselected value.

AbstractCheckBoxCellEditor

protected AbstractCheckBoxCellEditor(java.lang.Object pSelectedValue,
                                     java.lang.Object pDeselectedValue,
                                     java.lang.String pText)
Creates a new instance of AbstractCheckBoxCellEditor.

Parameters:
pSelectedValue - the selected value.
pDeselectedValue - the deselected value.
pText - the text.
Method Detail

getDeselectedValue

public java.lang.Object getDeselectedValue()
Gets the value for deselected state.

Specified by:
getDeselectedValue in interface ICheckBoxCellEditor<C>
Returns:
the value for deselected state.

getSelectedValue

public java.lang.Object getSelectedValue()
Gets the value for selected state.

Specified by:
getSelectedValue in interface ICheckBoxCellEditor<C>
Returns:
all allowed values.

getText

public java.lang.String getText()
Gets the text of the checkbox button. If no text is set, the column label is used.

Specified by:
getText in interface ICheckBoxCellEditor<C>
Returns:
the text of the checkbox button.

setDeselectedValue

public void setDeselectedValue(java.lang.Object pDeselectedValue)
Sets the value for deselected state.

Specified by:
setDeselectedValue in interface ICheckBoxCellEditor<C>
Parameters:
pDeselectedValue - the value for deselected state.

setSelectedValue

public void setSelectedValue(java.lang.Object pSelectedValue)
Sets the value for selected state.

Specified by:
setSelectedValue in interface ICheckBoxCellEditor<C>
Parameters:
pSelectedValue - the value for selected state.

setText

public void setText(java.lang.String pText)
Sets the text of the checkbox button. If no text is set, the column label is used.

Specified by:
setText in interface ICheckBoxCellEditor<C>
Parameters:
pText - the text of the checkbox button.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.