Ignore:
Timestamp:
Mar 5, 2010, 6:03:21 PM (15 years ago)
Author:
tobias
Message:

views and data objects of the resource types added.
basic logging with log4j for the beanUtil class.
Configuration and JobSchedule class renamed.

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  
    11package de.dass_it.vanhelsing.gui;
     2
     3
     4//import org.apache.log4j.Logger;
    25
    36/*
     
    710 */
    811public 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
    1122}
  • vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/ConfigurationBean.java

    r830 r832  
    11package de.dass_it.vanhelsing.gui;
     2
     3import javax.swing.tree.DefaultMutableTreeNode;
     4import javax.swing.tree.DefaultTreeModel;
     5
    26/*
    37 * List all Bacula configuration components by name
    48 */
    5 public class Configuration extends TreeNavigation {
    6 
     9public 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       
    725}
  • vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/JobScheduleBean.java

    r830 r832  
    33 * JobSchedule will list all schedules and the jobs which are associated with a given schedule.
    44 */
    5 public class JobSchedule extends TreeNavigation {
     5public class JobScheduleBean extends TreeNavigation {
    66
    77}
  • vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/TreeNavigation.java

    r831 r832  
    1 
    21package de.dass_it.vanhelsing.gui;
    32
     3//import org.apache.log4j.Logger;
    44import javax.swing.tree.DefaultTreeModel;
    55import javax.swing.tree.DefaultMutableTreeNode;
    66import de.dass_it.vanhelsing.gui.items.*;
     7
    78
    89/*
     
    1213public class TreeNavigation extends BeanUtil {
    1314        private DefaultTreeModel tree;
    14        
     15        //private Logger logger = Logger.getLogger(this.getClass());
    1516        public DefaultTreeModel createTree(DefaultMutableTreeNode root, String[] nodes){
    1617               
     
    1920                        addNode(root, nodes[i]);
    2021                }
    21                
    2222               
    2323                return tree;
     
    4141                        System.err.println("Class" + type + " lacks a no-argument constructor");
    4242                }
     43
    4344                return node;
    44                
    4545        }
    4646}
  • vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/items/ItemType.java

    r831 r832  
    11package de.dass_it.vanhelsing.gui.items;
    22
    3 /*
    4  * Abstract class to implement the type field including the accessor methods.
    5  * All ItemTypes should extend this class.
    6  */
    73public abstract class ItemType {
    84        private String type;
     
    1511                return type;
    1612        }
    17        
     13        public String getTypePage(){
     14                return ("/WEB-INF/" + type + ".jspx");
     15        }
    1816}
Note: See TracChangeset for help on using the changeset viewer.