Package com.ms.ui |
![]() Previous |
![]() Contents |
![]() Index |
![]() Next |
public class UIProgress extends UIStatus { // Constructors public UIProgress(); public UIProgress(int range); public UIProgress(int range, int pos); // Methods public int getPos(); public int getRange(); public int getRoleCode(); public void setPos(int pos); public void setRange(int range); public void paint(Graphics g); public void update(Graphics g); }
A class that implements a progress monitoring control.
public UIProgress();Creates a progress control with a range of 100 and an initial position of 0.
public UIProgress(int range);Creates a progress bar with the specified range and an initial position of 0.
Parameter Description range The range for the progress control.
public UIProgress(int range, int pos);Creates a progress control with the specified range and the specified initial position.
Parameter Description range The range for the progress control. pos The initial position for the progress control.
public int getPos();Retrieves the current position of the progress control, relative to its range.
Return Value:
Returns the control's position.
public int getRange();Retrieves the range of the progress control.
Return Value:
Returns the control's range.
public int getRoleCode();Retrieves the role of the progress control.
Return Value:
Returns the ROLE_SYSTEM code that best describes the role of the control.
Remarks:
This method returns the ROLE_SYSTEM_PROGRESSBAR code.
public void paint(Graphics g);Draws the progress control.
Return Value:
No return value.
Parameter Description g The graphics context.
public void setPos(int pos);Sets the position of the progress control, relative to its range.
Return Value:
No return value.
Parameter Description pos The new position for the progress control.
public void setRange(int range);Sets the range of the progress control.
Parameter Description range The range for the progress control.
public void update(Graphics g);Calls paint to draw the progress control.
Return Value:
No return value.
Parameter Description g The graphics context.
© 1997 Microsoft Corporation. All rights reserved. Legal Notices.