| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.dass_it.vanhelsing.gui.BeanUtil
de.dass_it.vanhelsing.gui.TreeNavigation
de.dass_it.vanhelsing.gui.ConfigurationBean
public class ConfigurationBean
List all Bacula configuration components by name.
| Field Summary | |
|---|---|
| private  java.lang.String | selectedId | 
| private  java.util.ArrayList<de.dass_it.vanhelsing.gui.ViewItem> | selectedObject | 
| private  javax.swing.tree.DefaultTreeModel | tree | 
| Constructor Summary | |
|---|---|
| ConfigurationBean() | |
| Method Summary | |
|---|---|
|  void | deleteResourceButtonListener(javax.faces.event.ActionEvent ae) | 
| private  javax.swing.tree.DefaultMutableTreeNode[] | getChildNodes(javax.swing.tree.DefaultTreeModel tree2,
              java.lang.String key)return an array of nodes of a given resource type | 
|  int | getSelectedId()getter method for the resId attribute of the selectedObject i.e. the selected leaf node of the data tree | 
|  java.util.ArrayList<de.dass_it.vanhelsing.gui.ViewItem> | getSelectedObject()gettter method for the selectedObject attribute | 
|  javax.swing.tree.DefaultTreeModel | getTree()getter method for the tree attribute | 
| private  void | init()init() builds the data tree of the configuration view. | 
|  void | newResourceButtonListener(javax.faces.event.ActionEvent ae) | 
|  java.lang.String | newResourceListener(javax.faces.event.ActionEvent ae)**EXPERIMENTAL** returns type of the selected resource. | 
|  void | reloadResourceButtonListener(javax.faces.event.ActionEvent ae)repeat the entire construction process of the data tree | 
|  void | saveButtonListener(javax.faces.event.ActionEvent ae)**EXPERIMENTAL** writes the selected resource to the data tree of the web service. | 
|  void | setSelectedObject(java.util.ArrayList<de.dass_it.vanhelsing.gui.ViewItem> selectedObject)setter method for the selectedObject attribute | 
|  void | setTree(javax.swing.tree.DefaultTreeModel tree)Setter method for the tree attribute | 
|  void | userObjectItemNodeSelected(javax.faces.event.ActionEvent ae)transfers the selected (by attribute resId) dataobject (resource) into an ArrayList of ViewItems Each ViewItem contain the key value pair and the rendering type. | 
|  void | userObjectItemOptionSelected(javax.faces.event.ValueChangeEvent vce) | 
| Methods inherited from class de.dass_it.vanhelsing.gui.TreeNavigation | 
|---|
| addNode, addNode, addNode, createTree, getNode, getNodeObject | 
| Methods inherited from class de.dass_it.vanhelsing.gui.BeanUtil | 
|---|
| getAccessType, getDataType, getFieldProperty, getProperties, getProperty, getRenderer, getRequestParameter, getRequired, setErrorMessage, setInfoMessage | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
private javax.swing.tree.DefaultTreeModel tree
private java.util.ArrayList<de.dass_it.vanhelsing.gui.ViewItem> selectedObject
private java.lang.String selectedId
| Constructor Detail | 
|---|
public ConfigurationBean()
| Method Detail | 
|---|
private void init()
public void userObjectItemNodeSelected(javax.faces.event.ActionEvent ae)
ae - ActionEvent which contains relevant information about the component tree. the variable is not used.
private javax.swing.tree.DefaultMutableTreeNode[] getChildNodes(javax.swing.tree.DefaultTreeModel tree2,
                                                                java.lang.String key)
tree2 - copy of the data treekey - name of the requested resource type
public void newResourceButtonListener(javax.faces.event.ActionEvent ae)
ae - public java.lang.String newResourceListener(javax.faces.event.ActionEvent ae)
ae - ActionEvent contains relevant information about the jsf component tree.
public void userObjectItemOptionSelected(javax.faces.event.ValueChangeEvent vce)
public void reloadResourceButtonListener(javax.faces.event.ActionEvent ae)
ae - public void deleteResourceButtonListener(javax.faces.event.ActionEvent ae)
public void saveButtonListener(javax.faces.event.ActionEvent ae)
ae - ActionEvent contains relevant informationpublic void setTree(javax.swing.tree.DefaultTreeModel tree)
tree - tree contains the DefaultTreeModel for the data treepublic javax.swing.tree.DefaultTreeModel getTree()
public java.util.ArrayList<de.dass_it.vanhelsing.gui.ViewItem> getSelectedObject()
public void setSelectedObject(java.util.ArrayList<de.dass_it.vanhelsing.gui.ViewItem> selectedObject)
selectedObject - selectedObject contains the data object of the selected leaf nodepublic int getSelectedId()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||