Package com.ms.ui Previous
Previous
Contents
Contents
Index
Index
Next
Next

Interface IUILayoutManager

Methods

public interface IUILayoutManager extends LayoutManager
{
  // Methods
  public int continueInvalidate();
  public boolean continueInvalidate(Component comp);
  public void paintContainer(Container cont, Graphics g);
  public Component navigate(Container cont, Component comp, int direction,
                            boolean keyable);

  public Component getComponent(Container cont, int index);
  public Component getLayoutComponent(String name);

}

Defines an interface for the extensions to LayoutManager interface. UILayoutManager implements this interface.


Methods


continueInvalidate

public int continueInvalidate();

Determines whether the container should be invalidated when a child component is invalidated.

Return Value:

Returns 1 if the container should be invalidated, -1 if the container should not invalidated, or 0 if each component must be queried individually.


continueInvalidate

public boolean continueInvalidate(Component comp);

Determines whether the container should be invalidated when a child component is invalidated.

Return Value:

Returns true if the container should be invalidated; otherwise, returns false.

ParameterDescription
comp The component being invalidated.


getComponent

public Component getComponent(Container cont, int index);

Retrieves the component at the specified index.

Return Value:

Returns the specified component, or null if no component is found.

ParameterDescription
cont The container to retrieve the component from.
index The index of component to retrieve.


getLayoutComponent

public Component getLayoutComponent(String name);

Retrieves the component identified by the specified name.

Return Value:

Returns the specified component.

ParameterDescription
name The name identifying the component to retrieve.


navigate

public Component navigate(Container cont, Component comp, int direction, boolean keyable);

Navigates to another component from the specified component in the given direction.

Return Value:

Returns the component navigated to, or null if no component in the specified direction exists.

ParameterDescription
cont The container where navigation is occurring.
comp The component to navigate from.
direction The direction (logically or spatially) to navigate.
keyable If true, non-keyable components will be ignored during the navigation; otherwise, all components can be navigated to.


paintContainer

public void paintContainer(Container cont, Graphics g);

Paints into the container as needed.

Return Value:

No return value.

ParameterDescription
cont The container.
g The graphics context of the container to be used for painting.



Top© 1997 Microsoft Corporation. All rights reserved. Legal Notices.