KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > izforge > izpack > event > SimpleUninstallerListener


1 /*
2  * IzPack - Copyright 2001-2007 Julien Ponge, All Rights Reserved.
3  *
4  * http://www.izforge.com/izpack/
5  * http://developer.berlios.de/projects/izpack/
6  *
7  * Copyright 2004 Klaus Bartz
8  *
9  * 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.event;
23
24 import java.io.File JavaDoc;
25 import java.util.List JavaDoc;
26
27 import com.izforge.izpack.util.AbstractUIProgressHandler;
28
29 /**
30  * <p>
31  * This class implements all methods of interface UninstallerListener, but do not do enything. It
32  * can be used as base class to save implementation of unneeded methods.
33  * </p>
34  *
35  * @author Klaus Bartz
36  *
37  */

38 public class SimpleUninstallerListener implements UninstallerListener
39 {
40
41     /**
42      *
43      */

44     public SimpleUninstallerListener()
45     {
46         super();
47     }
48
49     /*
50      * (non-Javadoc)
51      *
52      * @see com.izforge.izpack.uninstaller.UninstallerListener#beforeDeletion(java.util.List,
53      * com.izforge.izpack.util.AbstractUIProgressHandler)
54      */

55     public void beforeDeletion(List JavaDoc files, AbstractUIProgressHandler handler) throws Exception JavaDoc
56     {
57         // Do nothing
58
}
59
60     /*
61      * (non-Javadoc)
62      *
63      * @see com.izforge.izpack.uninstaller.UninstallerListener#beforeDelete(java.io.File,
64      * com.izforge.izpack.util.AbstractUIProgressHandler)
65      */

66     public void beforeDelete(File JavaDoc file, AbstractUIProgressHandler handler) throws Exception JavaDoc
67     {
68         // Do nothing
69
}
70
71     /*
72      * (non-Javadoc)
73      *
74      * @see com.izforge.izpack.uninstaller.UninstallerListener#afterDelete(java.io.File,
75      * com.izforge.izpack.util.AbstractUIProgressHandler)
76      */

77     public void afterDelete(File JavaDoc file, AbstractUIProgressHandler handler) throws Exception JavaDoc
78     {
79         // Do nothing
80
}
81
82     /*
83      * (non-Javadoc)
84      *
85      * @see com.izforge.izpack.uninstaller.UninstallerListener#afterDeletion(java.util.List,
86      * com.izforge.izpack.util.AbstractUIProgressHandler)
87      */

88     public void afterDeletion(List JavaDoc files, AbstractUIProgressHandler handler) throws Exception JavaDoc
89     {
90         // Do nothing
91
}
92
93     /*
94      * (non-Javadoc)
95      *
96      * @see com.izforge.izpack.uninstaller.UninstallerListener#isFileListener()
97      */

98     public boolean isFileListener()
99     {
100         return false;
101     }
102
103 }
104
Popular Tags