Package com.ms.ui |
![]() Previous |
![]() Contents |
![]() Index |
![]() Next |
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.
public UIHeaderRow();Creates a row header.
public UIHeaderRow(Object columns[]);Creates a row header using an array of columns.
Parameter Description columns The array of columns.
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.
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.
Parameter Description e The event posted to the control. x The x coordinate of the event. y The y coordinate of the event.
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.
Parameter Description e The event posted to the control. x The x coordinate of the event. y The y coordinate of the event.
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.
Parameter Description e The event posted to the control. x The x coordinate of the event. y The y coordinate of the event.
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.
Parameter Description 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.
public void paint(Graphics g);Paints a row header.
Return Value:
No return value.
Parameter Description g The graphics object to use.
public void paintComponent(Graphics g, Component comp);Paints a component.
Return Value:
No return value.
Parameter Description g The graphics object to use. comp The component to paint.
public void setSelected(boolean flag);Selects or de-selects a row.
Return Value:
No return value.
Parameter Description flag The boolean value that determines if the row is selected.
© 1997 Microsoft Corporation. All rights reserved. Legal Notices.