maspack.widgets
Interface PropertyWindow

All Superinterfaces:
Disposable
All Known Implementing Classes:
ControlPanel, DefaultCollisionsDialog, LegendDisplay, PropertyDialog, PropertyFrame, RenderPropsDialog, SetCollisionsDialog, TracingProbePanel

public interface PropertyWindow
extends Disposable

A window that contains property widgets within its component hierarchy.


Method Summary
 void addGlobalValueChangeListener(ValueChangeListener l)
          Add a value change listener to all property widgets in this window and its owned windows.
 void dispose()
          Dispose of all resources used by this object.
 ValueChangeListener[] getGlobalValueChangeListeners()
          Get an array of all the global value change listeners defined for this window.
 java.lang.Object getSynchronizeObject()
          Gets the object (if any) with which property widget value changes are synchronized.
 boolean isLiveUpdatingEnabled()
          If true, then the workspace should continuously update the property values whenever the model is rerendered.
 void removeGlobalValueChangeListener(ValueChangeListener l)
          Remove a value change listener from all property widgets in this window and its owned windows.
 void setSynchronizeObject(java.lang.Object syncObj)
          Sets an object with which property widget value changes are synchronized.
 void updateWidgetValues()
          Update the value of all property widgets in this window and its owned windows.
 

Method Detail

updateWidgetValues

void updateWidgetValues()
Update the value of all property widgets in this window and its owned windows.


addGlobalValueChangeListener

void addGlobalValueChangeListener(ValueChangeListener l)
Add a value change listener to all property widgets in this window and its owned windows.


removeGlobalValueChangeListener

void removeGlobalValueChangeListener(ValueChangeListener l)
Remove a value change listener from all property widgets in this window and its owned windows.


getGlobalValueChangeListeners

ValueChangeListener[] getGlobalValueChangeListeners()
Get an array of all the global value change listeners defined for this window.


getSynchronizeObject

java.lang.Object getSynchronizeObject()
Gets the object (if any) with which property widget value changes are synchronized.

Returns:
synchronization object for this window

setSynchronizeObject

void setSynchronizeObject(java.lang.Object syncObj)
Sets an object with which property widget value changes are synchronized. The synchronization is used for all property widgets in this window and its owned windows.

Parameters:
syncObj - new synchronization object for this window

dispose

void dispose()
Dispose of all resources used by this object.

Specified by:
dispose in interface Disposable

isLiveUpdatingEnabled

boolean isLiveUpdatingEnabled()
If true, then the workspace should continuously update the property values whenever the model is rerendered.