Changeset 832 for vanHelsing/trunk/gui/src/de/dass_it/vanhelsing
- Timestamp:
- Mar 5, 2010, 6:03:21 PM (15 years ago)
- Location:
- vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui
- Files:
-
- 16 added
- 3 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/BeanUtil.java
r830 r832 1 1 package de.dass_it.vanhelsing.gui; 2 3 4 //import org.apache.log4j.Logger; 2 5 3 6 /* … … 7 10 */ 8 11 public class BeanUtil { 9 10 12 //Logging 13 14 //protected final Logger logger = Logger.getLogger(this.getClass()); 15 16 //Messagebundles 17 18 //Linkout to Bacula documentation 19 //ListItemsConfigView 20 //ListItemsTopologyView 21 //ListItemsJobSchedule 11 22 } -
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/ConfigurationBean.java
r830 r832 1 1 package de.dass_it.vanhelsing.gui; 2 3 import javax.swing.tree.DefaultMutableTreeNode; 4 import javax.swing.tree.DefaultTreeModel; 5 2 6 /* 3 7 * List all Bacula configuration components by name 4 8 */ 5 public class Configuration extends TreeNavigation { 6 9 public class ConfigurationBean extends TreeNavigation { 10 private DefaultTreeModel tree; 11 public ConfigurationBean(){ 12 DefaultMutableTreeNode root = new DefaultMutableTreeNode(); 13 String[] nodes = {"Director", "SDStorage", "Catalog", "SDDevice"}; 14 setTree(super.createTree(root, nodes)); 15 16 } 17 public void setTree(DefaultTreeModel tree) { 18 this.tree = tree; 19 } 20 public DefaultTreeModel getTree() { 21 return tree; 22 } 23 24 7 25 } -
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/JobScheduleBean.java
r830 r832 3 3 * JobSchedule will list all schedules and the jobs which are associated with a given schedule. 4 4 */ 5 public class JobSchedule extends TreeNavigation {5 public class JobScheduleBean extends TreeNavigation { 6 6 7 7 } -
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/TreeNavigation.java
r831 r832 1 2 1 package de.dass_it.vanhelsing.gui; 3 2 3 //import org.apache.log4j.Logger; 4 4 import javax.swing.tree.DefaultTreeModel; 5 5 import javax.swing.tree.DefaultMutableTreeNode; 6 6 import de.dass_it.vanhelsing.gui.items.*; 7 7 8 8 9 /* … … 12 13 public class TreeNavigation extends BeanUtil { 13 14 private DefaultTreeModel tree; 14 15 //private Logger logger = Logger.getLogger(this.getClass()); 15 16 public DefaultTreeModel createTree(DefaultMutableTreeNode root, String[] nodes){ 16 17 … … 19 20 addNode(root, nodes[i]); 20 21 } 21 22 22 23 23 return tree; … … 41 41 System.err.println("Class" + type + " lacks a no-argument constructor"); 42 42 } 43 43 44 return node; 44 45 45 } 46 46 } -
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/items/ItemType.java
r831 r832 1 1 package de.dass_it.vanhelsing.gui.items; 2 2 3 /*4 * Abstract class to implement the type field including the accessor methods.5 * All ItemTypes should extend this class.6 */7 3 public abstract class ItemType { 8 4 private String type; … … 15 11 return type; 16 12 } 17 13 public String getTypePage(){ 14 return ("/WEB-INF/" + type + ".jspx"); 15 } 18 16 }
Note:
See TracChangeset
for help on using the changeset viewer.