BrightSide Workbench Full Report + Source Code
org.turro.pivot.dialog.ProgressSheet Class Reference
Inheritance diagram for org.turro.pivot.dialog.ProgressSheet:
Collaboration diagram for org.turro.pivot.dialog.ProgressSheet:

Public Member Functions

void initialize (Resources resources)
 
boolean isCanceled ()
 

Static Public Member Functions

static void startProgress (String caption, boolean canCancel)
 
static void startMeasuredProgress (String caption, boolean canCancel)
 
static void nextProgress (String caption, String step, double inc)
 
static void nextProgress (String caption)
 
static void endProgress (String caption)
 
static void closeProgress ()
 
static ProgressSheet getInstance ()
 
static ProgressSheet getInstance (Window parent)
 

Detailed Description

Author
llturro

Definition at line 41 of file ProgressSheet.java.

Member Function Documentation

◆ closeProgress()

static void org.turro.pivot.dialog.ProgressSheet.closeProgress ( )
static

Definition at line 132 of file ProgressSheet.java.

132  {
133  window.setEnabled(true);
134  progressSheet.close();
135  }
Here is the caller graph for this function:

◆ endProgress()

static void org.turro.pivot.dialog.ProgressSheet.endProgress ( String  caption)
static

Definition at line 122 of file ProgressSheet.java.

122  {
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);
130  }
Here is the caller graph for this function:

◆ getInstance() [1/2]

static ProgressSheet org.turro.pivot.dialog.ProgressSheet.getInstance ( )
static

Definition at line 137 of file ProgressSheet.java.

137  {
138  return progressSheet;
139  }
Here is the caller graph for this function:

◆ getInstance() [2/2]

static ProgressSheet org.turro.pivot.dialog.ProgressSheet.getInstance ( Window  parent)
static

Definition at line 141 of file ProgressSheet.java.

141  {
142  window = parent;
143  try {
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);
151  }
152  return progressSheet;
153  }

◆ initialize()

void org.turro.pivot.dialog.ProgressSheet.initialize ( Resources  resources)

Definition at line 66 of file ProgressSheet.java.

66  {
67  progressButton.setAction(progressAction);
68  this.resources = resources;
69  }

◆ isCanceled()

boolean org.turro.pivot.dialog.ProgressSheet.isCanceled ( )

Definition at line 71 of file ProgressSheet.java.

71  {
72  return canceled;
73  }

◆ nextProgress() [1/2]

static void org.turro.pivot.dialog.ProgressSheet.nextProgress ( String  caption)
static

Definition at line 118 of file ProgressSheet.java.

118  {
119  if(caption != null) progressSheet.caption.setText(caption);
120  }

◆ 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.

105  {
106  if(inc > 0.0) {
107  double percent = progressSheet.meter.getPercentage();
108  if(percent + inc > 1) {
109  progressSheet.meter.setPercentage(1);
110  } else {
111  progressSheet.meter.setPercentage(percent + inc);
112  }
113  }
114  if(step != null) progressSheet.meter.setText(step);
115  if(caption != null) progressSheet.caption.setText(caption);
116  }
Here is the caller graph for this function:

◆ startMeasuredProgress()

static void org.turro.pivot.dialog.ProgressSheet.startMeasuredProgress ( String  caption,
boolean  canCancel 
)
static

Definition at line 90 of file ProgressSheet.java.

90  {
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);
103  }
Here is the caller graph for this function:

◆ startProgress()

static void org.turro.pivot.dialog.ProgressSheet.startProgress ( String  caption,
boolean  canCancel 
)
static

Definition at line 75 of file ProgressSheet.java.

75  {
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);
88  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: