source: josm/trunk/src/org/openstreetmap/josm/gui/progress/ChildProgress.java@ 3083

Last change on this file since 3083 was 3083, checked in by bastiK, 14 years ago

added svn:eol-style=native to source files

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/plain
File size: 1.1 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.gui.progress;
3
4class ChildProgress extends AbstractProgressMonitor {
5
6 private final AbstractProgressMonitor parent;
7 private final boolean internal;
8
9 public ChildProgress(AbstractProgressMonitor parent, CancelHandler cancelHandler, boolean internal) {
10 super(cancelHandler);
11 this.parent = parent;
12 this.internal = internal;
13 }
14
15 @Override
16 void updateProgress(double value) {
17 parent.childSetProgress(this, value);
18 }
19
20 @Override
21 protected void doBeginTask() {
22 }
23
24 @Override
25 protected void doSetCustomText(String title) {
26 if (!internal) {
27 parent.childSetCustomText(this, title);
28 }
29 }
30
31 @Override
32 protected void doSetTitle(String title) {
33 if (!internal) {
34 parent.childSetTitle(this, title);
35 }
36 }
37
38 @Override
39 protected void doSetIntermediate(boolean value) {
40 if (!internal) {
41 parent.childSetIntermediate(this, value);
42 }
43 }
44
45 @Override
46 protected void doFinishTask() {
47 parent.childFinished(this);
48 }
49}
Note: See TracBrowser for help on using the repository browser.