Package com.ms.ui |
![]() Previous |
![]() Contents |
![]() Index |
![]() Next |
public class UIColumnHeader extends UIScrollThumb { // Constructors public UIColumnHeader(); public UIColumnHeader(String text); public UIColumnHeader(Component comp); // Methods public boolean isMoving(); public boolean isSizing(); public boolean isSizingLeft(); public boolean isSizingRight(); public int getRoleCode(); public boolean mouseDown(Event e, int x, int y); }
A class that manages column headers.
public UIColumnHeader();Creates a column header object.
public UIColumnHeader(String text);Creates a column header object using a default string.
Parameter Description text The string to use as the column header.
public UIColumnHeader(Component comp);Creates a column header object using a component.
Parameter Description comp The component to use.
public int getRoleCode();Retrieves the role of the column header control.
Return Value:
Returns the ROLE_SYSTEM code that best describes the role of the control.
Remarks:
This method returns the ROLE_SYSTEM_COLUMNHEADER code.
public boolean isMoving();Checks if the column header is moving.
Return Value:
Returns true if the column header is moving, false otherwise.
public boolean isSizing();Checks if the column header is sizing.
Return Value:
Returns true if it is sizing, false otherwise.
public boolean isSizingLeft();Checks if the left side of the column header is sizing.
Return Value:
Returns true if it is sizing, false otherwise.
public boolean isSizingRight();Checks if the right side of the column header is sizing.
Return Value:
Returns true if it is sizing, false otherwise.
public boolean mouseDown(Event e, int x, int y);Checks if the mouse button is down.
Return Value:
Returns true if the event was handled; otherwise, returns false.
Parameter Description e The event posted to the control. x The x coordinate of the mouse cursor. y The y coordinate of the mouse cursor.
© 1997 Microsoft Corporation. All rights reserved. Legal Notices.