1 21 22 package com.izforge.izpack.installer; 23 24 import com.izforge.izpack.util.AbstractUIHandler; 25 26 31 abstract public class PanelAutomationHelper implements AbstractUIHandler 32 { 33 34 37 public void emitNotification(String message) 38 { 39 System.out.println(message); 40 } 41 42 46 public boolean emitWarning(String title, String message) 47 { 48 System.err.println("[ WARNING: " + message + " ]"); 49 return true; 51 } 52 53 56 public void emitError(String title, String message) 57 { 58 System.err.println("[ ERROR: " + message + " ]"); 59 } 60 61 65 public int askQuestion(String title, String question, int choices) 66 { 67 return AbstractUIHandler.ANSWER_CANCEL; 69 } 70 71 75 public int askQuestion(String title, String question, int choices, int default_choice) 76 { 77 return default_choice; 78 } 79 80 } 81 | Popular Tags |