org.vizzini.ui.ai.logic
Class EditorUtilities

java.lang.Object
  extended by org.vizzini.ui.ai.logic.EditorUtilities

public class EditorUtilities
extends Object

Provides utilities used by editors in the logic system.

Since:
v0.2
Version:
v0.3
Author:
Jeffrey M. Thompson

Method Summary
 void addPropertyChangeListeners(JComponent component, String propertyName, PropertyChangeListener[] listeners)
          Add the given property change listeners for the given property name to the given component.
protected  boolean contains(JComponent parent, Component component)
          Return true if the given component is contained in the given parent.
static EditorUtilities getInstance()
          Return the singleton instance.
protected  void packParent(Component component)
          Pack the parent of the given component.
 PropertyChangeListener[] removePropertyChangeListeners(JComponent component, String propertyName)
          Remove all property change listeners for the given property name from the given component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static EditorUtilities getInstance()
Return the singleton instance.

Since:
v0.2

addPropertyChangeListeners

public void addPropertyChangeListeners(JComponent component,
                                       String propertyName,
                                       PropertyChangeListener[] listeners)
Add the given property change listeners for the given property name to the given component.

Parameters:
component - Component.
propertyName - Property name.
listeners - Property change listeners.
Since:
v0.2

removePropertyChangeListeners

public PropertyChangeListener[] removePropertyChangeListeners(JComponent component,
                                                              String propertyName)
Remove all property change listeners for the given property name from the given component.

Parameters:
component - Component.
propertyName - Property name.
Returns:
the PropertyChangeListener s removed.
Since:
v0.2

contains

protected boolean contains(JComponent parent,
                           Component component)
Return true if the given component is contained in the given parent.

Since:
v0.2

packParent

protected void packParent(Component component)
Pack the parent of the given component.

Since:
v0.2


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02