01: /*
02: * IzPack - Copyright 2001-2008 Julien Ponge, All Rights Reserved.
03: *
04: * http://izpack.org/
05: * http://izpack.codehaus.org/
06: *
07: * Copyright 2004 Klaus Bartz
08: *
09: * Licensed under the Apache License, Version 2.0 (the "License");
10: * you may not use this file except in compliance with the License.
11: * You may obtain a copy of the License at
12: *
13: * http://www.apache.org/licenses/LICENSE-2.0
14: *
15: * Unless required by applicable law or agreed to in writing, software
16: * distributed under the License is distributed on an "AS IS" BASIS,
17: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18: * See the License for the specific language governing permissions and
19: * limitations under the License.
20: */
21:
22: package com.izforge.izpack.util;
23:
24: /**
25: * This interface allowes an extended interaction with a user interface handler.
26: *
27: * @author Klaus Bartz
28: */
29: public interface ExtendedUIProgressHandler {
30:
31: static final int BEFORE = 0;
32:
33: static final int AFTER = 1;
34:
35: /**
36: * The action restarts.
37: *
38: * @param name The name of the action.
39: * @param overallMsg message to be used in the overall label.
40: * @param tipMsg message to be used in the tip label.
41: * @param no_of_steps The number of steps the action consists of.
42: */
43: void restartAction(String name, String overallMsg, String tipMsg,
44: int no_of_steps);
45:
46: /**
47: * Notify of progress with automatic counting.
48: *
49: * @param stepMessage an additional message describing the substep the type of the substep
50: */
51: public void progress(String stepMessage);
52:
53: }
|