|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.webui.dhtml.IlxWContainer
public abstract class IlxWContainer
Abstract class for component containers.
Field Summary | |
---|---|
protected ilog.webui.dhtml.event.IlxWEventListenerList |
listenerList
|
Constructor Summary | |
---|---|
IlxWContainer()
|
Method Summary | |
---|---|
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. |
Object |
getAttribute(String name)
Returns the object bound with the specified name in this container, or null if no object is bound under that name. |
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(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(String name)
Removes the object bound with the specified name from this container. |
void |
setAttribute(String name,
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ilog.webui.dhtml.event.IlxWEventListenerList listenerList
Constructor Detail |
---|
public IlxWContainer()
Method Detail |
---|
public Object getAttribute(String name)
null
if no object is bound under that name.
name
- A string specifying the name of the object.
public Enumeration getAttributeNames()
public void setAttribute(String name, 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(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)
ArrayIndexOutOfBoundsException
component
- 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.
ArrayIndexOutOfBoundsException
index
- 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()
add(ilog.webui.dhtml.IlxWComponent)
,
remove(int)
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(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.IlxWDependencyProvider
public void setFinalizer(ilog.webui.dhtml.IlxWContainer.Finalizer finalizer)
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |