public class TransformationPropertyWidget
extends java.lang.Object
Constructor and Description |
---|
TransformationPropertyWidget(org.eclipse.swt.widgets.Composite parent)
The default constructor, giving the two controls that the widget will
manage.
|
Modifier and Type | Method and Description |
---|---|
org.eclipse.swt.widgets.Control |
getTextControl()
Getter method for the widget's wrapped Text control.
|
void |
setBounds(java.lang.Number min,
java.lang.Number max)
Set the inclusive bounds for the widget's possible values.
|
void |
setDecoratorProperty(boolean decoratorProperty)
Set the widget to handle a property of either the source or its
IRenderElement.
|
void |
setProperty(INode source,
java.lang.String name,
java.lang.Number newValue)
Set the property displayed by this widget.
|
public TransformationPropertyWidget(org.eclipse.swt.widgets.Composite parent)
label
- The label that will display the property name.text
- The spinner allowing the property's value to be edited.public org.eclipse.swt.widgets.Control getTextControl()
public void setBounds(java.lang.Number min, java.lang.Number max)
min
- The minimum value the widget will accept.max
- The maximum value the widget will accept.public void setDecoratorProperty(boolean decoratorProperty)
decoratorProperty
- The widget's new assignment for the location of its managed
property. If false, the property will be set the the source
INode. If true, the property will be set to the source's
IRenderElement.public void setProperty(INode source, java.lang.String name, java.lang.Number newValue)
source
- The INode whose property is being displayed. If null, the
widget will hide its controls.name
- The property's name, which will be displayed ad a label. If
null, the widget will hide its controlsvalue
- The property's current value, which will initialize the
spinner.