Class AwtUIPanel
public class AwtUIPanel extends AwtUIControl
{
// Constructors
public AwtUIPanel();
// Methods
public IUIComponent getBase();
public IUIComponent getUIComponent(int n);
public int getUIComponentCount();
public IUIComponent[] getUIComponents();
public void setLayout(IUILayoutManager lm);
public void setLayout(LayoutManager mgr);
}
This class implements the functionality of a UIPanel object in an AWT-based container. An AwtUIPanel container is an AwtUIHost component whose associated root container holds a UIPanel object. By hosting this object, an AwtUIPanel container integrates AFC with AWT. Although an AwtUIPanel container is fully compatible with AWT, a UIPanel container is optimized for performance and size.
Panel
|
+--AwtUIHost
|
+--AwtUIControl
|
+--AwtUIPanel
public AwtUIPanel();
Creates an AwtUIPanel container.
public IUIComponent getBase();
Retrieves the UI component that the container is based on.
Return Value:
Returns the UIPanel object associated with the container.
Remarks:
When the AWT-based container is first created, it is associated with a UIPanel object.
public IUIComponent getUIComponent(int n);
Retrieves the nth component in this container.
Return Value:
Returns the nth component in the container.
Parameter | Description |
n
| The number of the component to get
|
Exceptions:
ArrayIndexOutOfBoundsException
if the nth value does not exist.
public int getUIComponentCount();
Retrieves the number of components in this panel.
Return Value:
Returns the number of components in the container.
See Also: getComponent
public IUIComponent[] getUIComponents();
Gets all the components in this container.
Return Value:
Returns an array containing the components in the container.
public void setLayout(IUILayoutManager lm);
Sets the layout manager of the associated UIPanel object.
Return Value:
No return value.
Parameter | Description |
lm
| The new layout manager of the associated UI container.
|
public void setLayout(LayoutManager mgr);
This method does nothing and should not be called. setLayout should only be called with an IUILayoutManager. Use setLayout instead.
Return Value:
No return value.
Overrides:
setLayout(LayoutManager) in AwtUIControl.
See Also: setLayout