javax.rad.ui
Interface IContainer

All Superinterfaces:
IComponent, INamedObject, IResource
All Known Subinterfaces:
IDesktopPanel, IFrame, IGroupPanel, IInternalFrame, ILauncher, IMenu, IMenuBar, IPanel, IPopupMenu, IScrollPanel, ISplitPanel, ITabsetPanel, IToolBar, IToolBarPanel, IWindow
All Known Implementing Classes:
About, AbstractFrame, AbstractWindow, Application, Application, AwtContainer, Content, Dialog, Error, Login, Message, RemoteApplication, RemoteWorkScreen, RemoteWorkScreenApplication, SwingAbstractButton, SwingAbstractFrame, SwingApplet.SwingAppletLauncher, SwingApplication, SwingButton, SwingChart, SwingCheckBox, SwingCheckBoxMenuItem, SwingComponent, SwingDesktopPanel, SwingEditor, SwingFrame, SwingGroupPanel, SwingIcon, SwingInternalFrame, SwingLabel, SwingMenu, SwingMenuBar, SwingMenuItem, SwingPanel, SwingPasswordField, SwingPopupMenu, SwingRadioButton, SwingScrollComponent, SwingScrollPanel, SwingSeparator, SwingSplitPanel, SwingTable, SwingTabsetPanel, SwingTextArea, SwingTextComponent, SwingTextField, SwingToggleButton, SwingToolBar, SwingToolBarPanel, SwingTree, UIContainer, UICustomContainer, UIDesktopPanel, UIFrame, UIGroupPanel, UIInternalFrame, UILauncher, UIMenu, UIMenuBar, UIPanel, UIPopupMenu, UIScrollPanel, UISplitPanel, UITabsetPanel, UIToolBar, UIToolBarPanel, UIWindow, WorkScreen

public interface IContainer
extends IComponent

Platform and technology independent Container definition. It is designed for use with AWT, Swing, SWT, JSP, JSF,... .

See Also:
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 IComponents 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.IComponent
capture, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, getBackground, getBounds, getCursor, getEventSource, getFactory, getFont, getForeground, getLocation, getLocationRelativeTo, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isVisible, requestFocus, setBackground, setBounds, setCursor, setEnabled, setEventSource, setFocusable, setFont, setForeground, setLocation, setLocationRelativeTo, setMaximumSize, setMinimumSize, setName, setParent, setPreferredSize, setSize, setToolTipText, setVisible
 
Methods inherited from interface javax.rad.ui.IResource
getResource
 

Method Detail

getLayout

ILayout getLayout()
Gets the layout manager for this container.

Returns:
the ILayout
See Also:
ILayout, setLayout(javax.rad.ui.ILayout)

setLayout

void setLayout(ILayout pLayout)
Sets the layout manager for this container.

Parameters:
pLayout - the specified layout manager
See Also:
ILayout, getLayout()

add

void add(IComponent pComponent)
Adds the specified IComponent to the end of this container.

Parameters:
pComponent - the IComponent to be added
Throws:
IllegalArgumentException - if the component can not be added
See Also:
IComponent

add

void add(IComponent pComponent,
         Object pConstraints)
Adds the specified 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.

Parameters:
pComponent - the IComponent to be added
pConstraints - an object expressing layout contraints for this component
Throws:
IllegalArgumentException - if the component can not be added
See Also:
IComponent

add

void add(IComponent pComponent,
         int pIndex)
Adds the specified IComponent to this container at the specified index. Also notifies the layout manager to add the component to the this container's layout.

Parameters:
pComponent - the IComponent to be added
pIndex - the position in the container's list at which to insert the IComponent; -1 means insert at the end component
Throws:
IllegalArgumentException - if the component can not be added
See Also:
IComponent

add

void add(IComponent pComponent,
         Object pConstraints,
         int pIndex)
Adds the specified 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.

Parameters:
pComponent - the IComponent to be added
pConstraints - an object expressing layout contraints for this
pIndex - the position in the container's list at which to insert the IComponent; -1 means insert at the end component
Throws:
IllegalArgumentException - if the component can not be added
See Also:
IComponent

remove

void remove(int pIndex)
Removes the 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.

Parameters:
pIndex - the index of the IComponent to be removed
See Also:
add(javax.rad.ui.IComponent), getComponentCount()

remove

void remove(IComponent pComponent)
Removes the specified component from this container.

Parameters:
pComponent - the IComponent to be removed
See Also:
add(javax.rad.ui.IComponent), remove(int)

removeAll

void removeAll()
Removes all the components from this container. This method also notifies the layout manager to remove the components from this container's layout via the removeLayoutComponent method.

See Also:
add(javax.rad.ui.IComponent), remove(int)

getComponentCount

int getComponentCount()
Gets the number of IComponents in this panel.

Returns:
the number of components in this panel.
See Also:
getComponent(int)

getComponent

IComponent getComponent(int pIndex)
Gets the nth IComponent in this container.

Parameters:
pIndex - the index of the IComponent to get.
Returns:
the nth component in this container.

indexOf

int indexOf(IComponent pComponent)
Gets the nth position of an IComponent in this container.

Parameters:
pComponent - the IComponent to search
Returns:
the nth position of pComponent in this container or -1 if pComponent is not added


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.