|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.commons.swt.controls.ColorButton com.ibm.commons.swt.data.controls.DCColorButton
public class DCColorButton
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 |
---|
public DCColorButton(org.eclipse.swt.widgets.Composite parent, java.lang.String id)
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 controlMethod Detail |
---|
public org.eclipse.swt.widgets.Control getControl()
public DataNode getDataNode()
DataNode
public void setDataNode(DataNode dataNode)
DataNode
public void setDataNodeBinding(DataNodeBinding dataNodeBinding)
dataNodeBinding
- DataNodeBinding
public java.lang.String getAttributeName()
com.ibm.commons.swt.data.controls.IDataFieldControl
.
public void setAttributeName(java.lang.String attributeName)
com.ibm.commons.swt.data.controls.IDataFieldControl
.
attributeName
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |