Changeset 832 for vanHelsing/trunk/gui
- Timestamp:
- Mar 5, 2010, 6:03:21 PM (15 years ago)
- Location:
- vanHelsing/trunk/gui
- Files:
-
- 28 added
- 7 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
vanHelsing/trunk/gui/.classpath
r830 r832 32 32 </attributes> 33 33 </classpathentry> 34 <classpathentry kind="lib" path="/home/tgoecke/Downloads/apache-log4j-1.2.15/log4j-1.2.15.jar"/> 34 35 <classpathentry kind="output" path="build/classes"/> 35 36 </classpath> -
vanHelsing/trunk/gui/WebContent/WEB-INF/faces-config.xml
r830 r832 6 6 xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd" 7 7 version="1.2"> 8 <managed-bean> 9 <description>backend bean of the configuration tree view</description> 10 <managed-bean-name>configurationBean</managed-bean-name> 11 <managed-bean-class>de.dass_it.vanhelsing.gui.ConfigurationBean</managed-bean-class> 12 <managed-bean-scope>session</managed-bean-scope> 13 </managed-bean> 14 <managed-bean> 15 <description>backend bean of the schedule and job tree view</description> 16 <managed-bean-name>jobScheduleBean</managed-bean-name> 17 <managed-bean-class>de.dass_it.vanhelsing.gui.JobScheduleBean</managed-bean-class> 18 <managed-bean-scope>session</managed-bean-scope> 19 </managed-bean> 20 <managed-bean> 21 <description>backend bean of the topology (server) view</description> 22 <managed-bean-name>topologyBean</managed-bean-name> 23 <managed-bean-class>de.dass_it.vanhelsing.gui.TopologyBean</managed-bean-class> 24 <managed-bean-scope>session</managed-bean-scope> 25 </managed-bean> 8 26 9 27 </faces-config> -
vanHelsing/trunk/gui/WebContent/index.jsp
r830 r832 1 1 <html> 2 <head/> 2 <head> 3 </head> 3 4 <body> 4 5 <jsp:forward page="viewConfig.iface" /> -
vanHelsing/trunk/gui/WebContent/viewConfig.jspx
r830 r832 14 14 <html> 15 15 <head> 16 <title>ICEfaces, Ajax for Java EE</title> 17 <link rel="stylesheet" type="text/css" href="./xmlhttp/css/rime/rime.css" /> 16 <title>vanHelsing GUI</title> 18 17 </head> 18 19 19 <body> 20 <ice:outputText value="Welcome to ICEfaces." /> 20 21 <ice:panelGroup style="float:left; width:30%"> 21 22 <ice:form> 22 23 <ice:messages/> 23 <ice:tree id="baum" 24 value="#{configurationBean.tree}" 25 var="item" 26 hideRootNode = "false" 27 hideNavigation ="false"> 28 29 <ice:treeNode id="knoten"> 30 <f:facet name="icon"> 31 </f:facet> 32 <f:facet name="content"> 33 <ice:commandLink actionListener="#{configurationBean.userObjectItemNodeSelected}"> 34 <f:param name="configItemId" value="#{configurationBean.userObject.configItem.id}"/> 35 <ice:outputText id="ConfigItem" value="#{configurationBean.userObject.text}"/> 36 </ice:commandLink> 37 </f:facet> 38 </ice:treeNode> 39 </ice:tree> 24 40 </ice:form> 41 </ice:panelGroup> 42 <ice:panelGroup> 43 <f:subview id="selectedNodeType"> 44 <jsp:include page="#{configurationBean.userObject.getTypePage}" /> 45 </f:subview> 46 </ice:panelGroup> 47 48 49 <ice:form> 50 <ice:messages/> 51 </ice:form> 25 52 </body> 26 53 </html> -
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.