Package ucar.unidata.collab
Class PropertiedThing
java.lang.Object
ucar.unidata.collab.SharableImpl
ucar.unidata.collab.PropertiedThing
- All Implemented Interfaces:
PropertyChangeListener,EventListener,Sharable
- Direct Known Subclasses:
ChartAnnotation,ComponentHolder,DisplayComponent
This abstract class handles showing a properties dialog
and manages a set of property change listeners.
- Version:
- $Revision: 1.1 $
- Author:
- IDV Development Team
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a PropertyChangeListener to this instance.protected booleanApply propertiesprotected booleanApply the propertiesvoidFires a PropertyChangeEvent.voidfirePropertyChange(String propertyName, Object oldValue, Object newValue) Fires a PropertyChangeEvent.protected voidgetPropertiesComponents(List comps, int tabIdx) Make the properties guiprotected PropertyChangeSupportReturns the PropertyChangeListener-s of this instance.String[]return the array of tab names for the proeprties dialogboolean_more_voidHandle the property change eventvoidRemoves a PropertyChangeListener from this instance.booleanShow the properties dialogbooleanshowProperties(JComponent where, int x, int y) _more_Methods inherited from class ucar.unidata.collab.SharableImpl
applySharableProperties, doShare, doShare, doShareExternal, doShareInternal, getReceiveShareTime, getSharablePropertiesComponent, getShareGroup, getSharing, getUniqueId, initSharable, receiveShareData, removeSharable, setReceiveShareTime, setShareGroup, setSharing, setUniqueId, showSharableDialog
-
Field Details
-
propertiesDialog
properties
-
-
Constructor Details
-
PropertiedThing
public PropertiedThing()Default ctro
-
-
Method Details
-
propertyChange
Handle the property change event- Specified by:
propertyChangein interfacePropertyChangeListener- Parameters:
event- The event
-
firePropertyChange
Fires a PropertyChangeEvent.- Parameters:
event- The PropertyChangeEvent.
-
firePropertyChange
Fires a PropertyChangeEvent.- Parameters:
propertyName- The name of the property.oldValue- The old value of the property.newValue- The new value of the property.
-
removePropertyChangeListener
Removes a PropertyChangeListener from this instance.- Parameters:
listener- The PropertyChangeListener to be removed.
-
getPropertyListeners
Returns the PropertyChangeListener-s of this instance.- Returns:
- The PropertyChangeListener-s.
-
addPropertyChangeListener
Adds a PropertyChangeListener to this instance.- Parameters:
listener- The PropertyChangeListener to be added.
-
getPropertiesComponents
Make the properties gui- Parameters:
comps- List of componentstabIdx- Which tab in the gui
-
getPropertyTabs
return the array of tab names for the proeprties dialog- Returns:
- array of tab names
-
showProperties
public boolean showProperties()Show the properties dialog- Returns:
- Success
-
showProperties
_more_- Parameters:
where- _more_x- _more_y- _more_- Returns:
- _more_
-
isShowing
public boolean isShowing()_more_- Returns:
- _more_
-
applyProperties
protected boolean applyProperties()Apply properties- Returns:
- Was successful
-
doApplyProperties
protected boolean doApplyProperties()Apply the properties- Returns:
- Was ok
-