org.robokind.api.common.property
Class PropertyChangeUtils

java.lang.Object
  extended by org.robokind.api.common.property.PropertyChangeUtils

public class PropertyChangeUtils
extends Object

Helper methods for PropertyChangeSupport

Author:
Matthew Stevenson

Constructor Summary
PropertyChangeUtils()
           
 
Method Summary
static PropertyChangeSupport buildPropertyChangeSupport(Object sourceBean)
          Creates a new PropertyChangeSupport.
static boolean getSwingFlag()
          Returns the Swing flag value
static void setSwing(boolean val)
          Sets the Swing flag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyChangeUtils

public PropertyChangeUtils()
Method Detail

setSwing

public static void setSwing(boolean val)
Sets the Swing flag. If false, buildPropertyChangeSupport creates standard PropertyChangeSupport. If true, it creates SwingPropertyChangeSupport.

Parameters:
val - the value for the Swing flag

getSwingFlag

public static boolean getSwingFlag()
Returns the Swing flag value

Returns:
the Swing flag.

buildPropertyChangeSupport

public static PropertyChangeSupport buildPropertyChangeSupport(Object sourceBean)
Creates a new PropertyChangeSupport. If the Swing flag is set to true, this creates a SwingPropertyChangeSupport.

Parameters:
sourceBean - source for the PropertyChangeSupport
Returns:
new PropertyChangeSupport


Copyright © 2011. All Rights Reserved.