- Author
- llturro
Definition at line 41 of file ProgressSheet.java.
◆ closeProgress()
static void org.turro.pivot.dialog.ProgressSheet.closeProgress |
( |
| ) |
|
|
static |
Definition at line 132 of file ProgressSheet.java.
133 window.setEnabled(
true);
134 progressSheet.close();
◆ endProgress()
static void org.turro.pivot.dialog.ProgressSheet.endProgress |
( |
String |
caption | ) |
|
|
static |
Definition at line 122 of file ProgressSheet.java.
123 progressSheet.closeable =
true;
124 progressSheet.meter.setText(
null);
125 progressSheet.progressAction.setEnabled(
true);
126 ((ButtonData) progressSheet.progressButton.getButtonData()).setText(
127 (String) progressSheet.resources.get(
"close"));
128 if(caption !=
null) progressSheet.caption.setText(caption);
129 progressSheet.activityIndicator.setActive(
false);
◆ getInstance() [1/2]
static ProgressSheet org.turro.pivot.dialog.ProgressSheet.getInstance |
( |
| ) |
|
|
static |
◆ getInstance() [2/2]
static ProgressSheet org.turro.pivot.dialog.ProgressSheet.getInstance |
( |
Window |
parent | ) |
|
|
static |
Definition at line 141 of file ProgressSheet.java.
144 WTKXSerializer wtkxSerializer =
new WTKXSerializer(
new Resources(ProgressSheet.class.getName()));
145 progressSheet = (ProgressSheet) wtkxSerializer.readObject(
"org/turro/pivot/dialog/progress_sheet.wtkx");
146 wtkxSerializer.bind(progressSheet, ProgressSheet.class);
147 }
catch (IOException ex) {
148 Logger.getLogger(ProgressSheet.class.getName()).log(Level.SEVERE,
null, ex);
149 }
catch (SerializationException ex) {
150 Logger.getLogger(ProgressSheet.class.getName()).log(Level.SEVERE,
null, ex);
152 return progressSheet;
◆ initialize()
void org.turro.pivot.dialog.ProgressSheet.initialize |
( |
Resources |
resources | ) |
|
Definition at line 66 of file ProgressSheet.java.
67 progressButton.setAction(progressAction);
68 this.resources = resources;
◆ isCanceled()
boolean org.turro.pivot.dialog.ProgressSheet.isCanceled |
( |
| ) |
|
◆ nextProgress() [1/2]
static void org.turro.pivot.dialog.ProgressSheet.nextProgress |
( |
String |
caption | ) |
|
|
static |
Definition at line 118 of file ProgressSheet.java.
119 if(caption !=
null) progressSheet.caption.setText(caption);
◆ nextProgress() [2/2]
static void org.turro.pivot.dialog.ProgressSheet.nextProgress |
( |
String |
caption, |
|
|
String |
step, |
|
|
double |
inc |
|
) |
| |
|
static |
Definition at line 105 of file ProgressSheet.java.
107 double percent = progressSheet.meter.getPercentage();
108 if(percent + inc > 1) {
109 progressSheet.meter.setPercentage(1);
111 progressSheet.meter.setPercentage(percent + inc);
114 if(step !=
null) progressSheet.meter.setText(step);
115 if(caption !=
null) progressSheet.caption.setText(caption);
◆ startMeasuredProgress()
static void org.turro.pivot.dialog.ProgressSheet.startMeasuredProgress |
( |
String |
caption, |
|
|
boolean |
canCancel |
|
) |
| |
|
static |
Definition at line 90 of file ProgressSheet.java.
91 progressSheet.canceled =
false;
92 progressSheet.closeable =
false;
93 progressSheet.meter.setVisible(
true);
94 progressSheet.meter.setText(
null);
95 progressSheet.meter.setPercentage(0);
96 progressSheet.progressAction.setEnabled(canCancel);
97 ((ButtonData) progressSheet.progressButton.getButtonData()).setText(
98 (String) progressSheet.resources.get(
"cancel"));
99 progressSheet.caption.setText(caption);
100 progressSheet.activityIndicator.setActive(
true);
101 progressSheet.open(window);
102 window.setEnabled(
false);
◆ startProgress()
static void org.turro.pivot.dialog.ProgressSheet.startProgress |
( |
String |
caption, |
|
|
boolean |
canCancel |
|
) |
| |
|
static |
Definition at line 75 of file ProgressSheet.java.
76 progressSheet.canceled =
false;
77 progressSheet.closeable =
false;
78 progressSheet.meter.setVisible(
false);
79 progressSheet.meter.setText(
null);
80 progressSheet.meter.setPercentage(0);
81 progressSheet.progressAction.setEnabled(canCancel);
82 ((ButtonData) progressSheet.progressButton.getButtonData()).setText(
83 (String) progressSheet.resources.get(
"cancel"));
84 progressSheet.caption.setText(caption);
85 progressSheet.activityIndicator.setActive(
true);
86 progressSheet.open(window);
87 window.setEnabled(
false);
The documentation for this class was generated from the following file: