com.guiseframework.event
Class SynchronizeDisplayedPropertyChangeListener

java.lang.Object
  extended by com.globalmentor.beans.AbstractGenericPropertyChangeListener<java.lang.Boolean>
      extended by com.guiseframework.event.SynchronizeDisplayedPropertyChangeListener
All Implemented Interfaces:
com.globalmentor.beans.GenericPropertyChangeListener<java.lang.Boolean>, java.beans.PropertyChangeListener, java.util.EventListener

public class SynchronizeDisplayedPropertyChangeListener
extends com.globalmentor.beans.AbstractGenericPropertyChangeListener<java.lang.Boolean>

A Boolean property change listener that synchronizes a Displayable source's Displayable.DISPLAYED_PROPERTY by calling Displayable.setDisplayed(boolean) with any new value that it receives. If there is no Displayable event source or no new value for any given event, no action occurs.

Author:
Garret Wilson

Constructor Summary
SynchronizeDisplayedPropertyChangeListener()
           
 
Method Summary
 void propertyChange(com.globalmentor.beans.GenericPropertyChangeEvent<java.lang.Boolean> genericPropertyChangeEvent)
          Called when a bound property is changed.
 
Methods inherited from class com.globalmentor.beans.AbstractGenericPropertyChangeListener
getGenericPropertyChangeEvent, propertyChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronizeDisplayedPropertyChangeListener

public SynchronizeDisplayedPropertyChangeListener()
Method Detail

propertyChange

public void propertyChange(com.globalmentor.beans.GenericPropertyChangeEvent<java.lang.Boolean> genericPropertyChangeEvent)
Called when a bound property is changed.

Parameters:
genericPropertyChangeEvent - An event object describing the event source, the property that has changed, and its old and new values.


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