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

Class UIHeaderRow

Constructors , Methods

public class UIHeaderRow extends UIRow 
{
  // Constructors
  public UIHeaderRow();
  public UIHeaderRow(Object columns[]);

  // Methods
  public void layout();
  public void paint(Graphics g);
  public void paintComponent(Graphics g, Component comp);

  public Component navigate(Component comp, int dir, boolean keyable);
  public void setSelected(boolean flag);

  public boolean mouseDown(Event e, int x, int y);
  public boolean mouseDrag(Event e, int x, int y);
  public boolean mouseUp(Event e, int x, int y);

}

A class that manages row headers.


Constructors


UIHeaderRow

public UIHeaderRow();

Creates a row header.


UIHeaderRow

public UIHeaderRow(Object columns[]);

Creates a row header using an array of columns.

ParameterDescription
columns The array of columns.


Methods


layout

public void layout();

Lays out the contents of the container.

Return Value:

No return value.

Remarks:

This method calls the UIPanel layout method if there is only one child in the container, otherwise, it calls the super method of Class UIPanel.


mouseDown

public boolean mouseDown(Event e, int x, int y);

Checks if a mouse button is down.

Return Value:

Returns true if event was handled; otherwise, returns false.

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


mouseDrag

public boolean mouseDrag(Event e, int x, int y);

Checks if the mouse is doing a drag operation.

Return Value:

Returns true if event was handled; otherwise, returns false.

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


mouseUp

public boolean mouseUp(Event e, int x, int y);

Checks if the mouse button is up.

Return Value:

Returns true if event was handled; otherwise, returns false.

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


navigate

public Component navigate(Component comp, int dir, 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.

ParameterDescription
comp The component from which to navigate.
dir The direction to navigate. Specify one of the field values in IUIAccessible.
keyable If true, non-keyable components will be ignored during the navigation; otherwise, all components can be navigated to.

Remarks:

If an undefined direction is specified, an IllegalArgumentException is thrown.


paint

public void paint(Graphics g);

Paints a row header.

Return Value:

No return value.

ParameterDescription
g The graphics object to use.


paintComponent

public void paintComponent(Graphics g, Component comp);

Paints a component.

Return Value:

No return value.

ParameterDescription
g The graphics object to use.
comp The component to paint.


setSelected

public void setSelected(boolean flag);

Selects or de-selects a row.

Return Value:

No return value.

ParameterDescription
flag The boolean value that determines if the row is selected.



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