Package io.guise.framework.prototype
Class AbstractEnableableProxyPrototype<P extends Prototype & InfoModel & Enableable>
java.lang.Object
com.globalmentor.beans.BoundPropertyObject
io.guise.framework.model.AbstractModel
io.guise.framework.prototype.AbstractProxyPrototype<P>
io.guise.framework.prototype.AbstractEnableableProxyPrototype<P>
- Type Parameters:
P
- The type of prototype being proxied.
- All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable
,com.globalmentor.beans.PropertyConstrainable
,Enableable
,InfoModel
,LabelModel
,Model
,Prototype
- Direct Known Subclasses:
ProxyActionPrototype
public abstract class AbstractEnableableProxyPrototype<P extends Prototype & InfoModel & Enableable>
extends AbstractProxyPrototype<P>
implements Enableable
An enableable prototype that is a proxy for another enableable prototype.
- Author:
- Garret Wilson
-
Field Summary
Fields inherited from class com.globalmentor.beans.BoundPropertyObject
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
Fields inherited from interface io.guise.framework.model.Enableable
ENABLED_PROPERTY
Fields inherited from interface io.guise.framework.model.InfoModel
DESCRIPTION_CONTENT_TYPE_PROPERTY, DESCRIPTION_PROPERTY, INFO_CONTENT_TYPE_PROPERTY, INFO_PROPERTY
Fields inherited from interface io.guise.framework.model.LabelModel
GLYPH_URI_PROPERTY, LABEL_CONTENT_TYPE_PROPERTY, LABEL_PROPERTY
-
Constructor Summary
ConstructorDescriptionAbstractEnableableProxyPrototype
(P proxiedPrototype) Proxied prototype constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
fireProxiedPrototypeBoundPropertyChanges
(P oldProxiedPrototype, P newProxiedPrototype) Fires appropriate property change events for the bound properties of the proxied prototype This implementation fires property change events for the following properties:LabelModel.LABEL_PROPERTY
LabelModel.LABEL_CONTENT_TYPE_PROPERTY
LabelModel.GLYPH_URI_PROPERTY
InfoModel.DESCRIPTION_PROPERTY
InfoModel.DESCRIPTION_CONTENT_TYPE_PROPERTY
InfoModel.INFO_PROPERTY
InfoModel.INFO_CONTENT_TYPE_PROPERTY
boolean
void
setEnabled
(boolean newEnabled) Sets whether the object is enabled and can receive user input.Methods inherited from class io.guise.framework.prototype.AbstractProxyPrototype
getDescription, getDescriptionContentType, getGlyphURI, getInfo, getInfoContentType, getLabel, getLabelContentType, getProxiedPrototype, installListeners, setDescription, setDescriptionContentType, setGlyphURI, setInfo, setInfoContentType, setLabel, setLabelContentType, setProxiedPrototype, uninstallListeners
Methods inherited from class io.guise.framework.model.AbstractModel
getEventListenerManager, getPlainText
Methods inherited from class com.globalmentor.beans.BoundPropertyObject
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.globalmentor.beans.PropertyBindable
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
Methods inherited from interface com.globalmentor.beans.PropertyConstrainable
addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, hasVetoableChangeListeners, removeVetoableChangeListener, removeVetoableChangeListener
-
Constructor Details
-
AbstractEnableableProxyPrototype
Proxied prototype constructor.- Parameters:
proxiedPrototype
- The prototype proxied by this prototype.- Throws:
NullPointerException
- if the given proxied prototype isnull
isnull
.
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceEnableable
- Returns:
- Whether the object is enabled and can receive user input.
-
setEnabled
public void setEnabled(boolean newEnabled) Description copied from interface:Enableable
Sets whether the object is enabled and can receive user input. This is a bound property of typeBoolean
.- Specified by:
setEnabled
in interfaceEnableable
- Parameters:
newEnabled
-true
if the object should indicate and accept user input.- See Also:
-
fireProxiedPrototypeBoundPropertyChanges
protected void fireProxiedPrototypeBoundPropertyChanges(P oldProxiedPrototype, P newProxiedPrototype) Fires appropriate property change events for the bound properties of the proxied prototype This implementation fires property change events for the following properties:LabelModel.LABEL_PROPERTY
LabelModel.LABEL_CONTENT_TYPE_PROPERTY
LabelModel.GLYPH_URI_PROPERTY
InfoModel.DESCRIPTION_PROPERTY
InfoModel.DESCRIPTION_CONTENT_TYPE_PROPERTY
InfoModel.INFO_PROPERTY
InfoModel.INFO_CONTENT_TYPE_PROPERTY
This implementation fires property change events for the following properties:
- Overrides:
fireProxiedPrototypeBoundPropertyChanges
in classAbstractProxyPrototype<P extends Prototype & InfoModel & Enableable>
- Parameters:
oldProxiedPrototype
- The old proxied prototype.newProxiedPrototype
- The new proxied prototype.
-