|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.ptc.wvs.client.pview.PViewStatusBar
Implements a status bar and progress bar for the viewer
Supported API: false
Extendable: false
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private static int |
BAR_MAX
|
private static int |
BAR_MIN
|
private JButton |
cancelButton
|
private CardLayout |
card
|
private Locale |
locale
|
private JPanel |
p
|
private JProgressBar |
pbar
|
private JLabel |
plabel
|
private PViewProxy |
proxy
|
private static String |
RESOURCE
|
private boolean |
statusShown
|
private JLabel |
t
|
Fields inherited from class javax.swing.JPanel |
|
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
PViewStatusBar(Locale locale)
Creates the StatusBar, this can then be associated with the PViewPanel |
Method Summary | |
void |
actionPerformed(ActionEvent e)
Processes the CANCEL button event |
int |
getProgressValue()
Returns the current value from the progress bar |
void |
hideCancelButton()
Hides the cancel button |
void |
incrementProgressValue()
Increment the value of the Progree Bar by 1 |
void |
resetMaximum()
Reset the Maximum value of the progress bar to 100 |
void |
setMaximum(int max)
Set the maximum value of the progress bar |
void |
setProgressLabel(String message)
Sets the message to be displayed with the progress bar |
void |
setProgressValue(int i)
Sets value of the progress bar |
void |
setProxy(PViewProxy proxy)
Sets the viewer command proxy, used when cancelling a file transfer |
void |
setStatusText(String text)
Displays a message in the Status Bar |
void |
showCancelButton()
Displays the Cancel button, used to abort a file transfer and viewer show command |
void |
showProgress()
Shows the Progress bar |
void |
showStatus()
Shows the status text |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private JLabel t
private JLabel plabel
private JProgressBar pbar
private CardLayout card
private JPanel p
private boolean statusShown
private JButton cancelButton
private PViewProxy proxy
private Locale locale
private static String RESOURCE
private static final int BAR_MIN
private static final int BAR_MAX
Constructor Detail |
public PViewStatusBar(Locale locale)
locale
- the users localeMethod Detail |
public void setProxy(PViewProxy proxy)
proxy
- the viewer proxypublic void showCancelButton()
public void hideCancelButton()
public void setStatusText(String text)
text
- the messagepublic void showStatus()
public void showProgress()
public void setProgressLabel(String message)
message
- the message to displaypublic void setProgressValue(int i)
i
- the valuepublic int getProgressValue()
public void resetMaximum()
public void setMaximum(int max)
max
- the maximum valuepublic void incrementProgressValue()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
e
- the event
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |