Package com.ms.ui |
![]() Previous |
![]() Contents |
![]() Index |
![]() Next |
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.
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.
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.
Parameter Description comp The component being invalidated.
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.
Parameter Description cont The container to retrieve the component from. index The index of component to retrieve.
public Component getLayoutComponent(String name);Retrieves the component identified by the specified name.
Return Value:
Returns the specified component.
Parameter Description name The name identifying the component to retrieve.
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.
Parameter Description 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.
public void paintContainer(Container cont, Graphics g);Paints into the container as needed.
Return Value:
No return value.
Parameter Description cont The container. g The graphics context of the container to be used for painting.
© 1997 Microsoft Corporation. All rights reserved. Legal Notices.