1 23 24 package org.enhydra.kelp.common.deployer; 25 26 import org.enhydra.kelp.common.AbstractTool; 28 29 import org.enhydra.tool.common.ButtonPanel; 31 import org.enhydra.tool.common.InnerPanel; 32 import org.enhydra.tool.common.SwingUtil; 33 34 import java.awt.Frame ; 36 import java.awt.event.ActionListener ; 37 import java.util.ResourceBundle ; 38 39 public class CoreDeployTool extends AbstractTool { 41 static ResourceBundle addinRes = 42 ResourceBundle.getBundle("org.enhydra.kelp.common.Res"); 44 private DeployInnerPanel innerPanel = null; 45 private DeployButtonPanel buttonPanel = null; 46 47 public static final String getDefaultTitle() { 48 return "Kelp Deployer"; 49 } 50 51 public static void main(String [] args) { 52 SwingUtil.setLookAndFeelToSystem(); 53 CoreDeployTool tool = null; 54 55 tool = new CoreDeployTool(); 56 tool.showDialog(new Frame ()); 57 System.exit(0); 58 } 59 60 public CoreDeployTool() { 61 super(); 62 } 63 64 public void clearAll() { 66 super.clearAll(); 67 innerPanel = null; 68 buttonPanel = null; 69 } 70 71 public String getTitle() { 73 return CoreDeployTool.getDefaultTitle(); 74 } 75 76 public ActionListener createButtonListener() { 78 return (new DeployButtonListener(this)); 79 } 80 81 public InnerPanel getInnerPanel() { 83 if (innerPanel == null) { 84 innerPanel = new DeployInnerPanel(); 85 } 86 return innerPanel; 87 } 88 89 public ButtonPanel getButtonPanel() { 91 if (buttonPanel == null) { 92 buttonPanel = new DeployButtonPanel(); 93 } 94 return buttonPanel; 95 } 96 97 protected String getProgressTitle() { 99 return addinRes.getString("Deployment_Progress"); 100 } 101 102 protected void back() { 103 innerPanel.back(); 104 } 105 106 protected void next() { 107 innerPanel.next(); 108 } 109 110 protected void deploy() { 111 innerPanel.deploy(this); 112 } 113 114 } 115 | Popular Tags |