Method Summary |
|
public int | addChild(ComposableComponent c) Add a child to this component. |
public void | addChildConfigurationListener(ChildConfigurationListener l) Add a ChildConfigurationListener. |
public ComponentData | addComponentData(ComponentData data) |
public Property | addInvisibleProperty(String name, Object value) Add an invisible property to the component. |
public Property | addInvisibleProperty(String name, Object value, Class cls) Adds an invisible property to the component with a given name, value and class. |
public Property | addInvisibleProperty(Property p) Adds a new Invisible Property to the component.
Parameters: p - Property to add. |
public void | addPropertiesListener(PropertiesListener l) Add a PropertiesListener. |
public Property | addProperty(String name, Object value) Add a property with a given value. |
public Property | addProperty(String name, Object value, Class cls) Adds a property to the component with a given name, value and class. |
public Property | addProperty(Property p) Adds a new Property to the Component.
Parameters: p - Property to add. |
public Property | addProperty(String name, Object value, PropertyListener l) |
public boolean | componentWasRemoved() |
public BaseComponent | copy(BaseComponent result) |
public void | finishNameChange() Called after a change in our name is completed. |
protected void | fireChildConfigurationChanged() Fires an event when a child configuration has changed. |
protected void | firePropertyAdded(PropertyEvent ev) Fires an PropertyEvent when a new property
is added to the component. |
public Iterator | getAllProperties() |
protected ComposableComponent | getAncestorOfClass(Class cls) Gets the Ancestor of this component. |
public ComposableComponent | getChild(int n) Gets a child component from a specific index.
Parameters: n - index of child component to retreive. |
public ComposableComponent | getChild(CompositeName childName) Gets a child component based on the childs Full Name.
Parameters: childName - CompositeName of the child. |
public int | getChildCount() Gets a count of all children within this component. |
public Collection | getDescendentsOfClass(Class cls, Collection c) Gets a Collection of all Descendents of this component
that are a specific class type.
Note: The collection (parameter) must be initialized!
Parameters: cls - The Class of the Descendents Parameters: c - An Empty Collection for the result. |
public Collection | getDescendentsOfClass(Class cls) Gets a Collection of all Descendents of this component
that are a specific class type. |
public URL | getDescription() Get a URL for a description of the component. |
protected EventListenerList | getEventListenerList() Gets an EventListenerList . |
public CompositeName | getFullName() Gets the full name of this component. |
public Property | getInvisibleProperty(CompositeName name) Get an invisible property which is not returned by getVisibleProperty . |
public Property | getInvisibleProperty(String localName) Get an invisible property which is not returned by getVisibleProperty . |
public Iterator | getLocalProperties() |
public Iterator | getLocalPropertyNames() Gets an Iterator of all visible properties Local to this component. |
protected Map | getMyProperties() The actual Map of our properties is private so we can do a late
bind of it. |
public ComposableComponent | getParent() Gets the parent of this component. |
public Iterator | getProperties() Return the properties in this component tree. |
public Property | getProperty(CompositeName name) Get a property by name. |
public Property | getProperty(String localName) Gets a local property based on a String name. |
public Iterator | getPropertyNames() Gets an Iterator of all visible Property Names in (or under) this component. |
public List | getPropertyNamesList() Gets a List of all visible Properties in this component. |
protected Property | getPropertyWorker(CompositeName name, boolean all, boolean visible) |
public String | getShortName() Gets the short name of this component. |
public Iterator | getSortedLocalPropertyNames() Gets an Iterator of all visible properties Local to this component, sorted. |
public Property | getVisibleProperty(CompositeName name) Get a visible property which is not returned by getInvisibleProperty . |
public Property | getVisibleProperty(String localName) Get a visible property which is not returned by getVisibleProperty . |
public boolean | hasUnboundProperties() |
abstract public void | initProperties() |
public boolean | isPropertyVisible(Property prop) Determines if the specified property is visible as a local property. |
public ComponentData | modifyComponentData(ComponentData data) |
public ComponentData | modifyComponentData(ComponentData data, PopulateDb pdb) |
public void | printAllProperties(PrintStream out) Prints all visible Properties for this component. |
public void | printAllProperties(PrintStream out, String indent) Prints all visible Properties for this component. |
public void | printLocalProperties(PrintStream out) |
public void | printLocalProperties(PrintStream out, String indent) Prints a list of local properties. |
public void | removeAllChildren() Removes all children of this component. |
public void | removeChild(int childIndex) Removes a child component at a specific index. |
public void | removeChild(ComposableComponent c) Removes a specific child component. |
public void | removeChildConfigurationListener(ChildConfigurationListener l) Removes a ChildConfigurationListener from this component. |
public void | removePropertiesListener(PropertiesListener l) Removes a PropertiesListener. |
public void | removeProperty(Property prop) Removes a Property from this component. |
public void | setName(String newName) Set the name of this component. |
public void | setParent(ComposableComponent newParent) Changing our parent changes all our property names so we have to
rehash them and flush their caches. |
public void | setProperties(Map props) Set a bunch of Properties at once. |
public void | setPropertyVisible(Property prop, boolean newVisible) Block the propagation of a child property. |
public void | startNameChange() Move the contents of the myProperties Map into the
myPropertyEntries Collection since the keys in the Map are about
to become invalid. |
public String | toString() |