com.guiseframework.prototype
Class AbstractEnableableProxyPrototype<P extends Prototype & InfoModel & Enableable>

java.lang.Object
  extended by com.globalmentor.beans.BoundPropertyObject
      extended by com.guiseframework.model.AbstractModel
          extended by com.guiseframework.prototype.AbstractProxyPrototype<P>
              extended by com.guiseframework.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 com.guiseframework.model.Enableable
ENABLED_PROPERTY
 
Fields inherited from interface com.guiseframework.model.InfoModel
DESCRIPTION_CONTENT_TYPE_PROPERTY, DESCRIPTION_PROPERTY, INFO_CONTENT_TYPE_PROPERTY, INFO_PROPERTY
 
Fields inherited from interface com.guiseframework.model.LabelModel
GLYPH_URI_PROPERTY, LABEL_CONTENT_TYPE_PROPERTY, LABEL_PROPERTY
 
Fields inherited from interface com.guiseframework.model.Model
PLAIN_TEXT_CONTENT_TYPE, XHTML_CONTENT_TYPE, XHTML_FRAGMENT_CONTENT_TYPE
 
Constructor Summary
AbstractEnableableProxyPrototype(P proxiedPrototype)
          Proxied prototype constructor.
 
Method Summary
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: Enableable.ENABLED_PROPERTY
 boolean isEnabled()
           
 void setEnabled(boolean newEnabled)
          Sets whether the object is enabled and can receive user input.
 
Methods inherited from class com.guiseframework.prototype.AbstractProxyPrototype
getDescription, getDescriptionContentType, getGlyphURI, getInfo, getInfoContentType, getLabel, getLabelContentType, getProxiedPrototype, installListeners, setDescription, setDescriptionContentType, setGlyphURI, setInfo, setInfoContentType, setLabel, setLabelContentType, setProxiedPrototype, uninstallListeners
 
Methods inherited from class com.guiseframework.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 Detail

AbstractEnableableProxyPrototype

public AbstractEnableableProxyPrototype(P proxiedPrototype)
Proxied prototype constructor.

Parameters:
proxiedPrototype - The prototype proxied by this prototype.
Throws:
java.lang.NullPointerException - if the given proxied prototype is null is null.
Method Detail

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface Enableable
Returns:
Whether the object is enabled and can receive user input.

setEnabled

public void setEnabled(boolean newEnabled)
Sets whether the object is enabled and can receive user input. This is a bound property of type Boolean.

Specified by:
setEnabled in interface Enableable
Parameters:
newEnabled - true if the object should indicate and accept user input.
See Also:
Enableable.ENABLED_PROPERTY

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:

Overrides:
fireProxiedPrototypeBoundPropertyChanges in class AbstractProxyPrototype<P extends Prototype & InfoModel & Enableable>
Parameters:
oldProxiedPrototype - The old proxied prototype.
newProxiedPrototype - The new proxied prototype.
Throws:
java.lang.NullPointerException - if the given old proxied prototype and/or new proxied prototype is null.


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.