com.intel.gpe.gridbeans.plugins.controls
Class CheckBoxListDataControl

java.lang.Object
  extended by com.intel.gpe.gridbeans.plugins.controls.DataControl
      extended by com.intel.gpe.gridbeans.plugins.controls.CheckBoxListDataControl
All Implemented Interfaces:
IDataControl

public class CheckBoxListDataControl
extends DataControl

The data control for CheckBoxList. The value has the type java.util.Set.

Version:
$Id: CheckBoxListDataControl.java,v 1.2 2006/08/10 09:52:29 lukichev Exp $
Author:
Alexander Lukichev

Constructor Summary
CheckBoxListDataControl(com.intel.gpe.util.swing.controls.CheckBoxList control)
           
 
Method Summary
 boolean getEnabled()
          Get the enabled state of the component
 java.lang.Object getValue()
          Get the translated value of the component.
 boolean isValid(java.lang.StringBuffer buf)
          Validate the value.
 void setEnabled(boolean enabled)
          Set the enabled state of the component
 void setPossibleValues(java.util.List values)
          Set the list of the possible values of the component
 void setValue(java.lang.Object value)
          Set the value of the component.
 
Methods inherited from class com.intel.gpe.gridbeans.plugins.controls.DataControl
getDescription, isValid, setDescription, setValueTranslator, setValueValidator, translateFrom, translateTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckBoxListDataControl

public CheckBoxListDataControl(com.intel.gpe.util.swing.controls.CheckBoxList control)
Method Detail

setEnabled

public void setEnabled(boolean enabled)
                throws DataSetException
Description copied from interface: IDataControl
Set the enabled state of the component

Parameters:
enabled - The state
Throws:
DataSetException

getEnabled

public boolean getEnabled()
                   throws DataSetException
Description copied from interface: IDataControl
Get the enabled state of the component

Returns:
The state of the component
Throws:
DataSetException

setValue

public void setValue(java.lang.Object value)
              throws TranslationException,
                     DataSetException
Description copied from interface: IDataControl
Set the value of the component. The value is first translated to its representation and then displayed at the component.

Parameters:
value - The internal representation of the value
Throws:
TranslationException - If the translation failed
DataSetException

isValid

public boolean isValid(java.lang.StringBuffer buf)
                throws DataSetException
Description copied from interface: IDataControl
Validate the value.

Parameters:
buf - The reason of validation failure is appended to this buffer.
Returns:
TRUE if validation was successful
Throws:
DataSetException

getValue

public java.lang.Object getValue()
                          throws TranslationException,
                                 DataSetException
Description copied from interface: IDataControl
Get the translated value of the component.

Returns:
The translated value of the component. The traslator is used to translate the user's representation of the value to the internal representation.
Throws:
TranslationException - If the translation failed
DataSetException

setPossibleValues

public void setPossibleValues(java.util.List values)
                       throws TranslationException,
                              DataSetException
Description copied from interface: IDataControl
Set the list of the possible values of the component

Parameters:
values - The possible values
Throws:
TranslationException - If translation of any value failed
DataSetException


Copyright © 2008. All Rights Reserved.