public abstract class IlxWContainer
extends java.lang.Object
implements ilog.webui.dhtml.IlxWCSSModelProvider, java.io.Serializable, ilog.webui.dhtml.IlxWDependencyProvider
| Modifier and Type | Field and Description |
|---|---|
protected ilog.webui.dhtml.event.IlxWEventListenerList |
listenerList |
| Constructor and Description |
|---|
IlxWContainer() |
| Modifier and Type | Method and Description |
|---|---|
IlxWComponent |
add(IlxWComponent component)
Adds the specified component to the end of this container.
|
IlxWComponent |
add(IlxWComponent component,
int index)
Adds the specified component to this container at the given position.
|
java.lang.Object |
getAttribute(java.lang.String name)
Returns the object bound with the specified name in this
container, or
null if no object is bound under that name. |
java.util.Enumeration |
getAttributeNames()
Returns an enumeration of string objects which contains the names of
all the objects bound to this container.
|
IlxWComponent |
getComponent(int n)
Gets the nth component in this container.
|
int |
getComponentCount()
Gets the number of components in this container.
|
IlxWComponent |
getComponentNamed(java.lang.String name)
Retrieves the component with the given name in the components
of this container.
|
IlxWComponent[] |
getComponents()
Gets all the components in this container.
|
IlxWManager |
getManager()
Gets the manager containing this object.
|
IlxWContainer |
getParent()
Gets the parent of this container.
|
protected IlxWCSSRuleset |
getUserAgentRules()
Gets the "user-agent" CSS rules.
|
int |
indexOf(IlxWComponent component)
Retrieves the index of the given component in this container.
|
boolean |
isAncestorOf(IlxWComponent c)
Checks whether the component is contained in the component hierarchy of
this container.
|
void |
notifyDependencies(IlxWPort port) |
void |
remove(IlxWComponent comp)
Removes the specified component from this container.
|
void |
remove(int index)
Removes the component, specified by
index,
from this container. |
void |
removeAll()
Removes all the components from this container.
|
void |
removeAttribute(java.lang.String name)
Removes the object bound with the specified name from this
container.
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Binds an object to this container, using the specified name.
|
void |
setAuthorRules(IlxWCSSRuleset ruleset)
Sets the author CSS rules for this container.
|
void |
setFinalizer(ilog.webui.dhtml.IlxWContainer.Finalizer finalizer) |
public java.lang.Object getAttribute(java.lang.String name)
null if no object is bound under that name.name - A string specifying the name of the object.public java.util.Enumeration getAttributeNames()
public void setAttribute(java.lang.String name,
java.lang.Object value)
name - The name to which the object is bound;
cannot be null.value - The object to be bound; cannot be null.public void removeAttribute(java.lang.String name)
name - The name of the object to remove from this container.public IlxWComponent add(IlxWComponent component)
IllegalStateException - if the given component
already has a parent container.component - The component to be added.public IlxWComponent add(IlxWComponent component, int index)
ArrayIndexOutOfBoundsExceptioncomponent - The component to be added.index - The position at which to insert the component.public int getComponentCount()
public IlxWComponent[] getComponents()
public IlxWComponent getComponent(int n)
ArrayIndexOutOfBoundsException - if the nth value
does not exist.n - The index of the component to get.public boolean isAncestorOf(IlxWComponent c)
c - The component.true if the component is an ancestor;
false otherwise.public IlxWContainer getParent()
null if this container
has no parent.public void remove(int index)
index,
from this container.ArrayIndexOutOfBoundsExceptionindex - The index of the component to be removed.add(ilog.webui.dhtml.IlxWComponent)public void remove(IlxWComponent comp)
comp - The component to be removed.add(ilog.webui.dhtml.IlxWComponent)public void removeAll()
public IlxWManager getManager()
null if
the container has not been added in a manager.public int indexOf(IlxWComponent component)
component - The component to search in this container.public IlxWComponent getComponentNamed(java.lang.String name)
name - The name of the component to find.null
if such a component does not exist.protected IlxWCSSRuleset getUserAgentRules()
setAuthorRules method.
This method returns null by default but is intended
to be redefined by subclasses.
setAuthorRules(ilog.webui.dhtml.IlxWCSSRuleset)public void setAuthorRules(IlxWCSSRuleset ruleset)
ruleset - the ruleset containing the CSS rules.getUserAgentRules()public void notifyDependencies(IlxWPort port)
notifyDependencies in interface ilog.webui.dhtml.IlxWDependencyProviderpublic void setFinalizer(ilog.webui.dhtml.IlxWContainer.Finalizer finalizer)
© Copyright IBM Corp. 1987, 2017