org.openbp.jaspira.option.widget
Class PropertyBrowserWidget

java.lang.Object
  extended by org.openbp.jaspira.option.OptionWidget
      extended by org.openbp.jaspira.option.widget.PropertyBrowserWidget
All Implemented Interfaces:
java.util.EventListener, ObjectChangeListener

public class PropertyBrowserWidget
extends OptionWidget
implements ObjectChangeListener

The tree table widget provides to manage more than one option with one component.

Author:
Andreas Putz

Field Summary
 
Fields inherited from class org.openbp.jaspira.option.OptionWidget
option
 
Constructor Summary
PropertyBrowserWidget(Option option, ResourceCollection resourceCollection, int expandLevels)
          Constructor.
 
Method Summary
 java.lang.Object getValue()
          Returns the value of the option widget.
 javax.swing.JComponent getWidgetComponent()
          Gets the widget component that visualizes the option.
 void objectChanged(java.lang.Object original, java.lang.Object modified)
          Is performed if the object was changed.
 void setSize(java.awt.Dimension dimension)
          Set the dimension of the widget.
 void setValue(java.lang.Object o)
          Sets the value that will be displayed in the option widget.
 
Methods inherited from class org.openbp.jaspira.option.OptionWidget
createHeading, getDescriptionComponent, getOption, notifyOptionMgrOfOptionChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyBrowserWidget

public PropertyBrowserWidget(Option option,
                             ResourceCollection resourceCollection,
                             int expandLevels)
Constructor.

Parameters:
option - Option the widget refers to
resourceCollection - Resource to use for the property browser or null for the property browser's default resource
expandLevels - Tree level to expand automatically
Method Detail

objectChanged

public void objectChanged(java.lang.Object original,
                          java.lang.Object modified)
Description copied from interface: ObjectChangeListener
Is performed if the object was changed.

Specified by:
objectChanged in interface ObjectChangeListener
Parameters:
original - The object without any changes
modified - The modified object
See Also:
ObjectChangeListener.objectChanged(Object, Object)

setSize

public void setSize(java.awt.Dimension dimension)
Set the dimension of the widget.

Parameters:
dimension - The dimension

getValue

public java.lang.Object getValue()
Description copied from class: OptionWidget
Returns the value of the option widget. This value might be different from the actual option value as long as the option has not been comitted.

Specified by:
getValue in class OptionWidget
See Also:
OptionWidget.getValue()

setValue

public void setValue(java.lang.Object o)
Description copied from class: OptionWidget
Sets the value that will be displayed in the option widget.

Specified by:
setValue in class OptionWidget
See Also:
OptionWidget.setValue(Object)

getWidgetComponent

public javax.swing.JComponent getWidgetComponent()
Description copied from class: OptionWidget
Gets the widget component that visualizes the option.

Specified by:
getWidgetComponent in class OptionWidget
See Also:
OptionWidget.getWidgetComponent()


Copyright © 2011. All Rights Reserved.