Packages
 In this topic

*Constructors

*Methods

 

Packages   PreviousThis PackageNext
Package com.ms.ui   Previous This
Package
Next

 


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

Constructors

AwtUIPanel

public AwtUIPanel();

Creates an AwtUIPanel container.

Methods

getBase

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.

getUIComponent

public IUIComponent getUIComponent(int n);

Retrieves the nth component in this container.

Return Value:

Returns the nth component in the container.

ParameterDescription
n The number of the component to get

Exceptions:

ArrayIndexOutOfBoundsException if the nth value does not exist.

getUIComponentCount

public int getUIComponentCount();

Retrieves the number of components in this panel.

Return Value:

Returns the number of components in the container.

See Also: getComponent

getUIComponents

public IUIComponent[] getUIComponents();

Gets all the components in this container.

Return Value:

Returns an array containing the components in the container.

setLayout

public void setLayout(IUILayoutManager lm);

Sets the layout manager of the associated UIPanel object.

Return Value:

No return value.

ParameterDescription
lm The new layout manager of the associated UI container.

setLayout

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

upnrm.gif © 1998 Microsoft Corporation. All rights reserved. Terms of use.