source: vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/ConfigurationBean.java@ 840

Last change on this file since 840 was 840, checked in by tobias, on Mar 12, 2010 at 5:44:02 PM

added Client to connect to the vanHelsing webservice
modified ConfigurationBean to read objects from Client

File size: 668 bytes
Line 
1package de.dass_it.vanhelsing.gui;
2
3import javax.swing.tree.DefaultMutableTreeNode;
4import javax.swing.tree.DefaultTreeModel;
5
6/*
7 * List all Bacula configuration components by name
8 */
9public class ConfigurationBean extends TreeNavigation {
10 private DefaultTreeModel tree;
11 public ConfigurationBean(){
12 DefaultMutableTreeNode root = new DefaultMutableTreeNode();
13 String[] nodes = {"Director", "Client", "FileSet", "Schedule",
14 "SDStorage", "Catalog", "SDDevice", "Job", "JobDefs"};
15 setTree(super.createTree(root, nodes));
16
17 }
18 public void setTree(DefaultTreeModel tree) {
19 this.tree = tree;
20 }
21 public DefaultTreeModel getTree() {
22 return tree;
23 }
24
25
26}
Note: See TracBrowser for help on using the repository browser.