001/* 002 * IzPack - Copyright 2001-2005 Julien Ponge, All Rights Reserved. 003 * 004 * http://www.izforge.com/izpack/ 005 * http://developer.berlios.de/projects/izpack/ 006 * 007 * Copyright 2004 Klaus Bartz 008 * 009 * Licensed under the Apache License, Version 2.0 (the "License"); 010 * you may not use this file except in compliance with the License. 011 * You may obtain a copy of the License at 012 * 013 * http://www.apache.org/licenses/LICENSE-2.0 014 * 015 * Unless required by applicable law or agreed to in writing, software 016 * distributed under the License is distributed on an "AS IS" BASIS, 017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 018 * See the License for the specific language governing permissions and 019 * limitations under the License. 020 */ 021 022package com.izforge.izpack.event; 023 024import java.io.File; 025import java.util.List; 026 027import com.izforge.izpack.util.AbstractUIProgressHandler; 028 029/** 030 * <p> 031 * This class implements all methods of interface UninstallerListener, but do not do enything. It 032 * can be used as base class to save implementation of unneeded methods. 033 * </p> 034 * 035 * @author Klaus Bartz 036 * 037 */ 038public class SimpleUninstallerListener implements UninstallerListener 039{ 040 041 /** 042 * 043 */ 044 public SimpleUninstallerListener() 045 { 046 super(); 047 } 048 049 /* 050 * (non-Javadoc) 051 * 052 * @see com.izforge.izpack.uninstaller.UninstallerListener#beforeDeletion(java.util.List, 053 * com.izforge.izpack.util.AbstractUIProgressHandler) 054 */ 055 public void beforeDeletion(List files, AbstractUIProgressHandler handler) throws Exception 056 { 057 // Do nothing 058 ; 059 } 060 061 /* 062 * (non-Javadoc) 063 * 064 * @see com.izforge.izpack.uninstaller.UninstallerListener#beforeDelete(java.io.File, 065 * com.izforge.izpack.util.AbstractUIProgressHandler) 066 */ 067 public void beforeDelete(File file, AbstractUIProgressHandler handler) throws Exception 068 { 069 // Do nothing 070 ; 071 } 072 073 /* 074 * (non-Javadoc) 075 * 076 * @see com.izforge.izpack.uninstaller.UninstallerListener#afterDelete(java.io.File, 077 * com.izforge.izpack.util.AbstractUIProgressHandler) 078 */ 079 public void afterDelete(File file, AbstractUIProgressHandler handler) throws Exception 080 { 081 // Do nothing 082 ; 083 } 084 085 /* 086 * (non-Javadoc) 087 * 088 * @see com.izforge.izpack.uninstaller.UninstallerListener#afterDeletion(java.util.List, 089 * com.izforge.izpack.util.AbstractUIProgressHandler) 090 */ 091 public void afterDeletion(List files, AbstractUIProgressHandler handler) throws Exception 092 { 093 // Do nothing 094 ; 095 } 096 097 /* 098 * (non-Javadoc) 099 * 100 * @see com.izforge.izpack.uninstaller.UninstallerListener#isFileListener() 101 */ 102 public boolean isFileListener() 103 { 104 return false; 105 } 106 107}