|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IContainer
Platform and technology independent Container definition. It is designed for use with AWT, Swing, SWT, JSP, JSF,... .
Container
Method Summary | |
---|---|
void |
add(IComponent pComponent)
Adds the specified IComponent to the end of this container. |
void |
add(IComponent pComponent,
int pIndex)
Adds the specified IComponent to this container at the specified index. |
void |
add(IComponent pComponent,
Object pConstraints)
Adds the specified IComponent to the end of this container. |
void |
add(IComponent pComponent,
Object pConstraints,
int pIndex)
Adds the specified IComponent to this container with the specified
constraints at the specified index. |
IComponent |
getComponent(int pIndex)
Gets the nth IComponent in this container. |
int |
getComponentCount()
Gets the number of IComponent s in this panel. |
ILayout |
getLayout()
Gets the layout manager for this container. |
int |
indexOf(IComponent pComponent)
Gets the nth position of an IComponent in this container. |
void |
remove(IComponent pComponent)
Removes the specified component from this container. |
void |
remove(int pIndex)
Removes the IComponent , specified by index ,
from this container. |
void |
removeAll()
Removes all the components from this container. |
void |
setLayout(ILayout pLayout)
Sets the layout manager for this container. |
Methods inherited from interface javax.rad.ui.IResource |
---|
getResource |
Method Detail |
---|
ILayout getLayout()
ILayout
ILayout
,
setLayout(javax.rad.ui.ILayout)
void setLayout(ILayout pLayout)
pLayout
- the specified layout managerILayout
,
getLayout()
void add(IComponent pComponent)
IComponent
to the end of this container.
pComponent
- the IComponent
to be added
IllegalArgumentException
- if the component can not be addedIComponent
void add(IComponent pComponent, Object pConstraints)
IComponent
to the end of this container.
Also notifies the layout manager to add the component to
this container's layout using the specified constraints object.
pComponent
- the IComponent
to be addedpConstraints
- an object expressing
layout contraints for this component
IllegalArgumentException
- if the component can not be addedIComponent
void add(IComponent pComponent, int pIndex)
IComponent
to this container at the specified index. Also notifies the layout
manager to add the component to the this container's layout.
pComponent
- the IComponent
to be addedpIndex
- the position in the container's list at which to insert
the IComponent
; -1
means insert at the end
component
IllegalArgumentException
- if the component can not be addedIComponent
void add(IComponent pComponent, Object pConstraints, int pIndex)
IComponent
to this container with the specified
constraints at the specified index. Also notifies the layout
manager to add the component to the this container's layout using
the specified constraints object.
pComponent
- the IComponent
to be addedpConstraints
- an object expressing layout contraints for thispIndex
- the position in the container's list at which to insert
the IComponent
; -1
means insert at the end
component
IllegalArgumentException
- if the component can not be addedIComponent
void remove(int pIndex)
IComponent
, specified by index
,
from this container.
This method also notifies the layout manager to remove the
component from this container's layout via the
removeLayoutComponent
method.
pIndex
- the index of the IComponent
to be removedadd(javax.rad.ui.IComponent)
,
getComponentCount()
void remove(IComponent pComponent)
pComponent
- the IComponent
to be removedadd(javax.rad.ui.IComponent)
,
remove(int)
void removeAll()
removeLayoutComponent
method.
add(javax.rad.ui.IComponent)
,
remove(int)
int getComponentCount()
IComponent
s in this panel.
getComponent(int)
IComponent getComponent(int pIndex)
IComponent
in this container.
pIndex
- the index of the IComponent
to get.
int indexOf(IComponent pComponent)
IComponent
in this container.
pComponent
- the IComponent
to search
pComponent
in this container or
-1
if pComponent
is not added
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |