artofillusion.ui
Class PropertyEditor

java.lang.Object
  extended by artofillusion.ui.PropertyEditor

public class PropertyEditor
extends java.lang.Object

This class presents a user interface for editing the value of a Property. Given a Property object, it constructs an appropriate Widget based on the type of value it represents and the allowed values. The Widget dispatches a ValueChangedEvent whenever its value changes.


Constructor Summary
PropertyEditor(Property property, java.lang.Object value)
          Create a PropertyEditor to edit the value of a Property.
 
Method Summary
 java.lang.String getLabel()
          Get the label to display with this component.
 Property getProperty()
          Get the Property this editor is for.
 java.lang.Object getValue()
          Get the value of the Property.
 Widget getWidget()
          Get the Widget representing the user interface for editing the Property.
 void setValue(java.lang.Object value)
          Set the value of the Property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyEditor

public PropertyEditor(Property property,
                      java.lang.Object value)
Create a PropertyEditor to edit the value of a Property.

Parameters:
property - the Property to edit
value - the initial value of the Property
Method Detail

getProperty

public Property getProperty()
Get the Property this editor is for.


getWidget

public Widget getWidget()
Get the Widget representing the user interface for editing the Property.


getLabel

public java.lang.String getLabel()
Get the label to display with this component. This may be null, in which case no label should be displayed.


getValue

public java.lang.Object getValue()
Get the value of the Property.


setValue

public void setValue(java.lang.Object value)
Set the value of the Property.



Copyright © 1999-2011 by Peter Eastman.