|
|
||||||||||||||
Class UIStatuspublic class UIStatus extends UISingleContainer { // Constructors public UIStatus(); public UIStatus(String text); public UIStatus(String text, int style); public UIStatus(IUIComponent comp); // Methods public int getRoleCode(); public boolean isKeyable(); } This class implements a status bar control. Typically, a UIStatus object is used as an output-only informational window, located along the bottom of an application. Common uses for a status bar include displaying helpful information for the user and noting the current state of shift keys, such as NUM LOCK, CAPS LOCK, and SCROLL LOCK. You can create a UIStatus object in several ways. For example, you can specify a text string with an optional style for justification, or you can create a component and display it on the UIStatus object. The following sample shows how to use UIStatus to display a component. // Construct a text component that // displays mouse coordinates. txtCmpnt = new UIText("X: Y:"); // Construct the status bar. stbMousePos = new UIStatus(txtCmpnt); UIComponent | +--UIContainer | +--UIStateContainer | +--UISingleContainer | +--UIStatus ConstructorsUIStatuspublic UIStatus(); UIStatuspublic UIStatus(String text); UIStatuspublic UIStatus(String text, int style); UIStatuspublic UIStatus(IUIComponent comp); MethodsgetRoleCodepublic int getRoleCode(); isKeyablepublic boolean isKeyable();
|
© 1998 Microsoft Corporation. All rights reserved. Terms of use. |