Last change
on this file since 4675 was 4675, checked in by jmt12, 21 years ago |
Sunday's work
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
889 bytes
|
Line | |
---|
1 | package org.greenstone.gatherer.gui;
|
---|
2 |
|
---|
3 | import java.awt.BorderLayout;
|
---|
4 |
|
---|
5 | import javax.swing.JPanel;
|
---|
6 |
|
---|
7 | import org.greenstone.gatherer.gui.LongProgressBar;
|
---|
8 |
|
---|
9 | public class FileProgress
|
---|
10 | extends JPanel {
|
---|
11 |
|
---|
12 | private LongProgressBar progress;
|
---|
13 |
|
---|
14 | public FileProgress() {
|
---|
15 | super();
|
---|
16 | // Initialization
|
---|
17 |
|
---|
18 | // Creation
|
---|
19 | progress = new LongProgressBar();
|
---|
20 | // Connection
|
---|
21 |
|
---|
22 | // Layout
|
---|
23 | setLayout(new BorderLayout());
|
---|
24 | add(progress, BorderLayout.CENTER);
|
---|
25 | }
|
---|
26 |
|
---|
27 | public void addValue(int data_size) {
|
---|
28 | progress.addValue(data_size);
|
---|
29 | }
|
---|
30 |
|
---|
31 | public void setIndeterminate(boolean state) {
|
---|
32 | progress.setIndeterminate(state);
|
---|
33 | }
|
---|
34 |
|
---|
35 | public void setMaximum(long size) {
|
---|
36 | progress.setMaximum(size);
|
---|
37 | }
|
---|
38 |
|
---|
39 | public void setString(String label) {
|
---|
40 | progress.setString(label);
|
---|
41 | }
|
---|
42 |
|
---|
43 | public void setValue(int value) {
|
---|
44 | progress.setValue(value);
|
---|
45 | }
|
---|
46 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.