|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.common.progress.swing.JobsProgressBar.JobData
private static class JobsProgressBar.JobData
A simple struct to group information about a Job
| Field Summary | |
|---|---|
private JButton |
cancelButton
|
private Component |
comp
|
private int |
index
|
private Progress |
job
|
private JProgressBar |
progress
|
| Constructor Summary | |
|---|---|
JobsProgressBar.JobData(Progress job,
int index,
JProgressBar progress)
Simple ctor |
|
| Method Summary | |
|---|---|
private JButton |
createCancelButton()
Create a cancel button that only shows the cancel icon. |
private Component |
decorateProgressBar()
Decorate the progress bar if the job can be interrupted. |
JButton |
getCancelButton()
|
Component |
getComponent()
|
(package private) int |
getIndex()
Accessor for the index |
(package private) Progress |
getJob()
Accessor for the Job |
(package private) JProgressBar |
getProgress()
Accessor for the Progress Bar |
(package private) void |
invalidate()
ensure we can't be used again |
void |
workProgressed(WorkEvent ev)
This method is called to indicate that some progress has been made. |
void |
workStateChanged(WorkEvent evt)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Progress job
private int index
private JProgressBar progress
private Component comp
private JButton cancelButton
| Constructor Detail |
|---|
JobsProgressBar.JobData(Progress job,
int index,
JProgressBar progress)
| Method Detail |
|---|
void invalidate()
Progress getJob()
JProgressBar getProgress()
public Component getComponent()
public JButton getCancelButton()
int getIndex()
public void workStateChanged(WorkEvent evt)
workStateChanged in interface WorkListenerpublic void workProgressed(WorkEvent ev)
WorkListener
workProgressed in interface WorkListenerev - Describes the progressprivate JButton createCancelButton()
private Component decorateProgressBar()
|
Copyright ยจ 2003-2007 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||