Package com.ms.ui |
![]() Previous |
![]() Contents |
![]() Index |
![]() Next |
public interface IUIComponent { // Methods public Rectangle getBounds(Component comp); public boolean getChecked(); public boolean getEnabled(); public int getFlags(); public boolean getFocus(); public boolean getHot(); public int getID(); public boolean getIndeterminate(); public String getName(); public boolean getPressed(); public IUIRootContainer getRoot(); public boolean getSelected(); public void setChecked(boolean on); public void setEnabled(boolean on); public void setFlags(int flags); public void setFocus(boolean on); public void setHot(boolean on); public void setID(int id); public void setIndeterminate(boolean on); public void setName(String name); public void setPressed(boolean on); public void setSelected(boolean on); public boolean ensureVisible(Rectangle rect); public void fullValidate(); public void initGraphics(); public boolean isKeyable(); public boolean isSelectable(); }
Defines an interface for the extensions to the Component class.
public boolean ensureVisible(Rectangle rect);Forwards visible request up to parent.
Return Value:
Returns true if any window has moved or has been resized to make that rectangle visible. Otherwise, returns false if the rectangle was already visible.
Parameter Description rect Rectangle whose visibility is to be ensured in its container.
public void fullValidate();Performs a validation from the root container.
Return Value:
No return value.
public Rectangle getBounds(Component comp);Retrieves the bounding rectangle of the object; the coordinates of the rectangle are relative to the specified component.
Return Value:
Returns the object's bounding rectangle.
Parameter Description comp The component used to determine the coordinates of the bounding rectangle. If this parameter is null, the bounding rectangle will be given in screen cooridnates.
public boolean getChecked();Retrieves the checked status of this object.
Return Value:
Returns true if the object is checked; otherwise, returns false.
public boolean getEnabled();Retrieves the enabled status of this object.
Return Value:
Returns true if the object is enabled; otherwise, returns false.
public int getFlags();Retrieves the current owner-defined state bits that are set for this object.
Return Value:
Returns the current state bit settings.
public boolean getFocus();Retrieves the current focus state of this object.
Return Value:
Returns true if this object has the focus; otherwise, returns false.
public boolean getHot();Retrieves the current hot-tracked state of this object.
Return Value:
Returns true if the object is hot-tracked; otherwise, returns false.
public int getID();Retrieves the object's identification.
Return Value:
Returns the identification value associated with the object.
public boolean getIndeterminate();Retrieves the indeterminate status of this object.
Return Value:
Returns true if the object is indeterminate; otherwise, returns false.
public String getName();Retrieves the object's displayed name.
Return Value:
Returns the string displayed as the object's name.
public boolean getPressed();Retrieves the current pressed state of this object.
Return Value:
Returns true if the object is pressed; otherwise, returns false.
public IUIRootContainer getRoot();Retrieves the first component that implements the IUIRootContainer interface, starting from this object and moving up its parent chain.
Return Value:
Returns the immediate root container of the object.
public boolean getSelected();Retrieves the selected status of this object.
Return Value:
Returns true if this object is selected; otherwise, returns false.
public void initGraphics();Initializes the graphics when the graphics context is first available.
Return Value:
No return value.
Remarks:
This method is used instead of the constructor to perform initialization that requires the graphics context.
public boolean isKeyable();Retrieves the object's keyable state.
Return Value:
Returns true if the object can accept keyboard focus; otherwise, returns false.
public boolean isSelectable();Determines the object's selectable state.
Return Value:
Returns true if the object can be selected; otherwise, returns false.
public void setChecked(boolean on);Sets the checked state of this object.
Return Value:
No return value.
Parameter Description on Set to true to enable the state, set to false to disable the state.
public void setEnabled(boolean on);Sets the enabled state of this object.
Return Value:
No return value.
Parameter Description on Set to true to enable the state, set to false to disable the state.
public void setFlags(int flags);Sets the current owner-defined state bits for this object.
Return Value:
No return value.
Parameter Description flags New state bit settings.
public void setFocus(boolean on);Sets the focus state of this object.
Return Value:
No return value.
Parameter Description on Set to true to enable the state, set to false to disable the state.
public void setHot(boolean on);Sets the hot-track state of this object.
Return Value:
No return value.
Parameter Description on Set to true to enable the state, set to false to disable the state.
public void setID(int id);Sets the object's identification.
Return Value:
No return value.
Parameter Description id Identification value to be associated with object.
public void setIndeterminate(boolean on);Sets the indeterminate state of this object.
Return Value:
No return value.
Parameter Description on Set to true to enable the state, set to false to disable the state.
public void setName(String name);Sets the object's displayed name.
Return Value:
No return value.
Parameter Description name Name of the string to be associated with object.
public void setPressed(boolean on);Sets the pressed state of this object.
Return Value:
No return value.
Parameter Description on Set to true to enable the state, set to false to disable the state.
public void setSelected(boolean on);Sets the selected state of this object
Return Value:
No return value.
Parameter Description on Set to true to enable the state, set to false to disable the state.
© 1997 Microsoft Corporation. All rights reserved. Legal Notices.