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

Class UIColumnHeader

Constructors , Methods

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.


Constructors


UIColumnHeader

public UIColumnHeader();

Creates a column header object.


UIColumnHeader

public UIColumnHeader(String text);

Creates a column header object using a default string.

ParameterDescription
text The string to use as the column header.


UIColumnHeader

public UIColumnHeader(Component comp);

Creates a column header object using a component.

ParameterDescription
comp The component to use.


Methods


getRoleCode

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.


isMoving

public boolean isMoving();

Checks if the column header is moving.

Return Value:

Returns true if the column header is moving, false otherwise.


isSizing

public boolean isSizing();

Checks if the column header is sizing.

Return Value:

Returns true if it is sizing, false otherwise.


isSizingLeft

public boolean isSizingLeft();

Checks if the left side of the column header is sizing.

Return Value:

Returns true if it is sizing, false otherwise.


isSizingRight

public boolean isSizingRight();

Checks if the right side of the column header is sizing.

Return Value:

Returns true if it is sizing, false otherwise.


mouseDown

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.

ParameterDescription
e The event posted to the control.
x The x coordinate of the mouse cursor.
y The y coordinate of the mouse cursor.



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