com.ibm.commons.swt.data.controls
Class DCColorButton

java.lang.Object
  extended by com.ibm.commons.swt.controls.ColorButton
      extended by com.ibm.commons.swt.data.controls.DCColorButton
All Implemented Interfaces:
ICustomControl

public class DCColorButton
extends ColorButton

A com.ibm.commons.swt.controls.ColorButton that is bound to data. The color button sets and gets its value from a data model.


Constructor Summary
DCColorButton(org.eclipse.swt.widgets.Composite parent, java.lang.String id)
          Constructs a new instance of the class given the parent Composite, and id which can be used to programatically identify this control.
 
Method Summary
 java.lang.String getAttributeName()
          Description copied from com.ibm.commons.swt.data.controls.IDataFieldControl.
Returns the name of the attribute that the control is associated with, may be null.
 org.eclipse.swt.widgets.Control getControl()
          Returns the control which is bound to the Data, in this case the Button control
 DataNode getDataNode()
          Returns the DataNode associated with this control.
 void setAttributeName(java.lang.String attributeName)
          Description copied from com.ibm.commons.swt.data.controls.IDataFieldControl.
Sets the name of the attribute that the control is associated with.
 void setDataNode(DataNode dataNode)
          Sets the DataNode associated with this control.
 void setDataNodeBinding(DataNodeBinding dataNodeBinding)
           
 
Methods inherited from class com.ibm.commons.swt.controls.ColorButton
addListener, dispose, getButton, getColorValue, getId, removeListener, setColorValue, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DCColorButton

public DCColorButton(org.eclipse.swt.widgets.Composite parent,
                     java.lang.String id)
Constructs a new instance of the class given the parent Composite, and id which can be used to programatically identify this control.

Parameters:
parent - a Composite control which will be the parent of the new instance (CANNOT be null).
id - a String value that can be used to programatically identify this control
Method Detail

getControl

public org.eclipse.swt.widgets.Control getControl()
Returns the control which is bound to the Data, in this case the Button control


getDataNode

public DataNode getDataNode()
Returns the DataNode associated with this control. The DataNode is responsible for providing the model through which the control accesses data.

Returns:
com.ibm.commons.iloader.node.DataNode
See Also:
DataNode

setDataNode

public void setDataNode(DataNode dataNode)
Sets the DataNode associated with this control. The DataNode is responsible for providing the model through which the control accesses data.

See Also:
DataNode

setDataNodeBinding

public void setDataNodeBinding(DataNodeBinding dataNodeBinding)
Parameters:
dataNodeBinding -
See Also:
DataNodeBinding

getAttributeName

public java.lang.String getAttributeName()
Description copied from com.ibm.commons.swt.data.controls.IDataFieldControl.
Returns the name of the attribute that the control is associated with, may be null.

Returns:

setAttributeName

public void setAttributeName(java.lang.String attributeName)
Description copied from com.ibm.commons.swt.data.controls.IDataFieldControl.
Sets the name of the attribute that the control is associated with.

Parameters:
attributeName -