Package repast.simphony.ui.probe
Class Probe
java.lang.Object
repast.simphony.ui.probe.Probe
Encapsulates the gui representation and the model of a gui probe.S
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a property change listener to this Probe.void
commit()
Commit any pending changes to the bean.void
flush()
Flush any pending changes from the bean.getPanel()
Gets the panel that displays the gui widgets for this probe.getTitle()
Gets the title of this Probe.boolean
A probe is buffered if changes to its values are not automatically reflected in the probed object.void
Removes a property change listener from this Probe.void
update()
Updates the probe to show the latest values of the probed property.
-
Constructor Details
-
Probe
-
Probe
-
-
Method Details
-
getTitle
Gets the title of this Probe.- Returns:
- the title of this Probe.
-
isBuffered
public boolean isBuffered()A probe is buffered if changes to its values are not automatically reflected in the probed object. Calling commit on a buffered probe will commit the changes to the probed object.- Returns:
- true if this Probe is buffered, false otherwise.
-
update
public void update()Updates the probe to show the latest values of the probed property. -
flush
public void flush()Flush any pending changes from the bean. Note that is only has an effect if this is a buffered probe. -
commit
public void commit()Commit any pending changes to the bean. Note that is only has an effect if this is a buffered probe. -
getPanel
Gets the panel that displays the gui widgets for this probe.- Returns:
- the panel that displays the gui widgets for this probe.
-
addPropertyChangeListener
Adds a property change listener to this Probe. This listener will be called when the probed object is updated.- Parameters:
listener
-
-
removePropertyChangeListener
Removes a property change listener from this Probe.- Parameters:
listener
-
-