From: <rp...@hy...> - 2008-08-11 23:42:47
|
Author: rpack Date: 2008-08-11 16:42:43 -0700 (Mon, 11 Aug 2008) New Revision: 10619 URL: http://svn.hyperic.org/?view=rev&root=Hyperic+HQ&revision=10619 Added: trunk/src/org/hyperic/ui/tapestry/components/dialog/ trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.html trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.java trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.jwc trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.properties trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.script trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.html trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.java trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.jwc trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.properties trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.script trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.html trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.java trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.jwc trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.properties trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.script Log: CBG Dialog Components Added: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.html =================================================================== --- trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.html (rev 0) +++ trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.html 2008-08-11 23:42:43 UTC (rev 10619) @@ -0,0 +1,45 @@ +<div id ="create_cbg_dialog" style="display:none;"> + <form jwcid="cbgAddForm@Form" async="true" updateComponents="ongl:updateComponents" > + <label for="group_name"><span key="groupName"/></label><input type="text" name="group_name" id="group_name"> + <fieldset><legend><span key="searchCriteria"/></legend> + <span key="groupResources"/> + <span jwcid="@RadioGroup" selected="ognl:isAny"> + <span jwcid="@Radio" value="ognl:isAny"/> + <span key="any"> + <span jwcid="@Radio" value="ognl:!isAny"/> + <span key="all"/></span> + <span key="selectPost"/><br> + <table id="criteria_dialog_table"> + <tbody> + <span jwcid="@For" source="ognl:critterList" value="ognl:critter" index="ognl:critterIndex"> + <tr> + <select jwcid="critterType@PropertySelection" model="ognl:critterTypeList" value="ognl:critter.type"/> + <td> + </td> + is + <td> + <input jwcid="@TextField" value="ognl:critter.value"/> + </td> + <td> + <if jwcid="@If" condition="critterIndex > 0"> + <div jwcid="@LinkSubmit" listener="listener:deleteRow" + parameter="ognl:critterIndex" updateComponents="cbgAddForm">+</div> + </if> + </td> + <td> + <if jwcid="@If" condition="ognl:critterIndex == critterList.size()"> + <div jwcid="@LinkSubmit" listener="listener:addRow" updateComponents="cbgAddForm">-</div> + </if> + </td> + </tr> + </span> + </tbody> + </table> + </fieldset> + <a jwcid="createCancelButton@Button" listener="listener:onCancelListener" + type="@org.hyperic.ui.tapestry.components.form.Button@BUTTON_GRAY" + label="message:cancelButton" submitType="@org.hyperic.ui.tapestry.components.form.Button@SUBMIT_TYPE_CANCEL"/> + <a jwcid="createButton@Button" listener="listener:onCreateListener" + label="message:createButton" submitType="@org.hyperic.ui.tapestry.components.form.Button@SUBMIT_TYPE_CANCEL"/> + </form> +</div> \ No newline at end of file Property changes on: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.html ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.java =================================================================== --- trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.java (rev 0) +++ trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.java 2008-08-11 23:42:43 UTC (rev 10619) @@ -0,0 +1,99 @@ +package org.hyperic.ui.tapestry.components.dialog; + +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.tapestry.IActionListener; +import org.apache.tapestry.IMarkupWriter; +import org.apache.tapestry.IRequestCycle; +import org.apache.tapestry.IScript; +import org.apache.tapestry.PageRenderSupport; +import org.apache.tapestry.TapestryUtils; +import org.apache.tapestry.annotations.InjectScript; +import org.apache.tapestry.annotations.Parameter; +import org.apache.tapestry.form.IPropertySelectionModel; +import org.hyperic.hq.grouping.CritterType; +import org.hyperic.ui.tapestry.components.BaseComponent; + +public abstract class CBGAddDialog extends BaseComponent { + + public abstract Integer getCritterIndex(); + public abstract void setCritterIndex(Integer index); + + public abstract CritterType getSelectedCritterType(); + public abstract void setSelectedCritterType(CritterType type); + + /** + * @return Is this an Any or All condition + */ + @Parameter(name = "isAny", defaultValue = "ognl:true") + public abstract String getIsAny(); + public abstract void setIsAny(String value); + + /** + * @return The List of critters created + */ + @Parameter(name = "critterList", required = true) + public abstract List getCritterList(); + public abstract void setCritterList(List critters); + + /** + * @return the selection model for the avail CritterPropTypes + */ + @Parameter(name = "critterPropTypeModel", required = true) + public abstract IPropertySelectionModel getCritterTypeList(); + public abstract void setCritterTypeList(IPropertySelectionModel list); + + @Parameter(name = "createListener") + public abstract IActionListener getCreateListener(); + public abstract void setCreateListener(IActionListener listener); + + @InjectScript("CBGAddDialog.script") + public abstract IScript getScript(); + + /** + * row has been deleted + * @param index + */ + public void onDeleteRow(Integer index) { + getCritterList().remove(index); + } + + /** + * Add a row to the end of the List + * @param cycle + */ + public void onAddRow(IRequestCycle cycle) { + //add an item to the cbg list + getCritterList().add(null); + } + + /** + * Ok button has been clicked in the dialog - update the selected list + * @param cycle + */ + public void onCreateListener(IRequestCycle cycle) { + + } + + /** + * Cancel button has been clicked, clear the selected criteria list + * @param cycle + */ + public void onCancelListener(IRequestCycle cycle) { + //TODO clear out the current list + setCritterList(Collections.EMPTY_LIST); + } + + public void renderComponent(IMarkupWriter writer, IRequestCycle cycle) { + super.renderComponent(writer, cycle); + if (!cycle.isRewinding()) { + Map<String, Object> map = new HashMap<String, Object>(); + PageRenderSupport pageRenderSupport = TapestryUtils.getPageRenderSupport(cycle, this); + getScript().execute(this, cycle, pageRenderSupport, map); + } + } + +} Property changes on: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.java ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.jwc =================================================================== --- trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.jwc (rev 0) +++ trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.jwc 2008-08-11 23:42:43 UTC (rev 10619) @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!DOCTYPE component-specification PUBLIC + "-//Apache Software Foundation//Tapestry Specification 4.1//EN" + "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_1.dtd"> + +<component-specification allow-body="no" allow-informal-parameters="no" + class="org.hyperic.ui.tapestry.components.dialog.CBGAddDialog"> + <property name="critterIndex"/> + <property name="critter"/> + <property name="selectedCritter"/> +</component-specification> Property changes on: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.jwc ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.properties =================================================================== --- trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.properties (rev 0) +++ trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.properties 2008-08-11 23:42:43 UTC (rev 10619) @@ -0,0 +1,8 @@ +groupName=Group Name: +searchCriteria=Search Criteria +groupResoruces=Group the resources that match +any=Any +all=All +selectPost=of the following: +cancelButton=Cancel +createButton=Create \ No newline at end of file Property changes on: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.properties ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.script =================================================================== --- trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.script (rev 0) +++ trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.script 2008-08-11 23:42:43 UTC (rev 10619) @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE script PUBLIC + "-//Apache Software Foundation//Tapestry Script Specification 3.0//EN" + "http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd"> + +<script> +<body> +<unique> + dojo11.require("dojo.parser"); + dojo11.require("dijit.dijit"); + dojo11.require("dijit.form.Button"); + dojo11.require("dijit.form.DateTextBox"); + dojo11.require("dijit.form.TimeTextBox"); + dojo11.require("dijit.Dialog"); +</unique> +var cbgCreateDialog; +dojo.addOnLoad(function(){ + cbgCreateDialog = dojo11.byId('create_cbg_dialog'); + cbgCreateDialog.style.width = "450px"; + that.dialog = new dijit11.Dialog({ + id: "create_cbg_dialog", + refocus: true, + autofocus: false, + title: "Create Group", + },cbgCreateDialog); + dojo11.connect(dojo.byId('createCancelButton'), "onclick", cbgCreateDialog.dialog, "hide"); + dojo11.connect(dojo.byId('createButton'), "onclick", cbgCreateDialog.dialog, "hide"); +}); + +</body> +</script> \ No newline at end of file Property changes on: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGAddDialog.script ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.html =================================================================== --- trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.html (rev 0) +++ trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.html 2008-08-11 23:42:43 UTC (rev 10619) @@ -0,0 +1,16 @@ +<div id ="delete_cbg_dialog" style="display:none;"> + <strong><span key="deleteConfirmMsg"/> <span jwcid="@Insert" value="ognl:groupName"/></strong>. + <br /> + <div class="dialogButtonBox"> + <div class="button"> + <a jwcid="@DirectLink" listener="ognl:deleteListener" class="buttonGreen" id="deleteButton" async="true"> + <span><span key="deleteButton"/></span> + </a> + </div> + <div class="button"> + <a href="javascript:void(0)" class="buttonGray" id="cancelButton"> + <span><span key="cancelButton"/></span> + </a> + </div> + </div> +</div> \ No newline at end of file Property changes on: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.html ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.java =================================================================== --- trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.java (rev 0) +++ trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.java 2008-08-11 23:42:43 UTC (rev 10619) @@ -0,0 +1,37 @@ +package org.hyperic.ui.tapestry.components.dialog; + +import java.util.HashMap; +import java.util.Map; + +import org.apache.tapestry.IActionListener; +import org.apache.tapestry.IMarkupWriter; +import org.apache.tapestry.IRequestCycle; +import org.apache.tapestry.IScript; +import org.apache.tapestry.PageRenderSupport; +import org.apache.tapestry.TapestryUtils; +import org.apache.tapestry.annotations.InjectScript; +import org.apache.tapestry.annotations.Parameter; +import org.hyperic.ui.tapestry.components.BaseComponent; + +public abstract class CBGDeleteDialog extends BaseComponent { + + @Parameter(name = "deleteListener", required = true) + public abstract IActionListener getDeleteListener(); + public abstract void setDeleteListener(IActionListener listener); + + @Parameter(name = "groupName") + public abstract String getGroupName(); + public abstract void setGroupName(String name); + + @InjectScript("CBGDeleteDialog.script") + public abstract IScript getScript(); + + public void renderComponent(IMarkupWriter writer, IRequestCycle cycle) { + super.renderComponent(writer, cycle); + if (!cycle.isRewinding()) { + Map<String, Object> map = new HashMap<String, Object>(); + PageRenderSupport pageRenderSupport = TapestryUtils.getPageRenderSupport(cycle, this); + getScript().execute(this, cycle, pageRenderSupport, map); + } + } +} Property changes on: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.java ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.jwc =================================================================== --- trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.jwc (rev 0) +++ trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.jwc 2008-08-11 23:42:43 UTC (rev 10619) @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!DOCTYPE component-specification PUBLIC + "-//Apache Software Foundation//Tapestry Specification 4.1//EN" + "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_1.dtd"> + +<component-specification allow-body="no" allow-informal-parameters="no" + class="org.hyperic.ui.tapestry.components.dialog.CBGDeleteDialog"> +</component-specification> Property changes on: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.jwc ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.properties =================================================================== --- trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.properties (rev 0) +++ trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.properties 2008-08-11 23:42:43 UTC (rev 10619) @@ -0,0 +1,3 @@ +deleteConfirmMsg=You are about to delete the group +cancelButton=Cancel +deleteButton=Delete \ No newline at end of file Property changes on: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.properties ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.script =================================================================== --- trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.script (rev 0) +++ trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.script 2008-08-11 23:42:43 UTC (rev 10619) @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE script PUBLIC + "-//Apache Software Foundation//Tapestry Script Specification 3.0//EN" + "http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd"> + +<script> +<body> +<unique> + dojo11.require("dojo.parser"); + dojo11.require("dijit.dijit"); + dojo11.require("dijit.form.Button"); + dojo11.require("dijit.form.DateTextBox"); + dojo11.require("dijit.form.TimeTextBox"); + dojo11.require("dijit.Dialog"); +</unique> +var cbgDeleteDialog; +dojo.addOnLoad(function(){ + cbgDeleteDialog = dojo11.byId('delete_cbg_dialog'); + cbgDeleteDialog.style.width = "350px"; + cbgDeleteDialog.dialog = new dijit11.Dialog({ + id: "delete_cbg_dialog", + refocus: true, + autofocus: false, + title: "Delete Group", + },cbgDeleteDialog); + dojo11.connect(dojo.byId('cancelButton'), "onclick", cbgDeleteDialog.dialog, "hide"); + dojo11.connect(dojo.byId('deleteButton'), "onclick", cbgDeleteDialog.dialog, "hide"); +}); +</body> +</script> \ No newline at end of file Property changes on: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGDeleteDialog.script ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.html =================================================================== --- trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.html (rev 0) +++ trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.html 2008-08-11 23:42:43 UTC (rev 10619) @@ -0,0 +1,33 @@ +<div id ="update_cbg_dialog" style="display:none;"> + <div class="modifyDialogInstructions"><span key="whatIsThisBeg"/> <span jwcid="@Insert" value="ognl:groupName"/> <span key="whatIsThisEnd"/></div> + <form jwcid="@Form" async="true"> + <fieldset><legend><span key="additions"/></legend> + <div jwcid="propAdd@Block"><span key="propAdditions"/></div> + <div jwcid="toAdd@Block"><span key="toAdd"/></div> + <select jwcid="@contrib:Palette" rows="12" selected="ognl:selectedAddItems" model="ognl:availableAddItems" + selectedTitleBlock="component:propAdd" availableTitleBlock="component:toAdd" + sort="@org.apache.tapestry.contrib.palette.SortMode@LABEL"/> + + </fieldset> + <fieldset><legend><span key="toRemove"/></legend> + <div jwcid="propRem@Block"><span key="propRemovals"/></div> + <div jwcid="toRem@Block"><span key="removals"/></div> + <select jwcid="@contrib:Palette" rows="12" selected="ognl:selectedRemoveItems" model="ognl:availableRemoveItems" + selectedTitleBlock="component:propRem" availableTitleBlock="component:toRem" + sort="@org.apache.tapestry.contrib.palette.SortMode@LABEL"/> + + </fieldset> + <div class="dialogButtonBox"> + <div class="button"> + <a jwcid="@DirectLink" listener="ognl:modifyListener" class="buttonGreen" id="modifyButton" async="true"> + <span><span key="modifyButton"/></span> + </a> + </div> + <div class="button"> + <a href="javascript:void(0)" class="buttonGray" id="cancelModifyButton"> + <span><span key="cancelButton"/></span> + </a> + </div> + </div> + </form> +</div> Property changes on: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.html ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.java =================================================================== --- trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.java (rev 0) +++ trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.java 2008-08-11 23:42:43 UTC (rev 10619) @@ -0,0 +1,56 @@ +package org.hyperic.ui.tapestry.components.dialog; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.apache.tapestry.IActionListener; +import org.apache.tapestry.IMarkupWriter; +import org.apache.tapestry.IRequestCycle; +import org.apache.tapestry.IScript; +import org.apache.tapestry.PageRenderSupport; +import org.apache.tapestry.TapestryUtils; +import org.apache.tapestry.annotations.InjectScript; +import org.apache.tapestry.annotations.Parameter; +import org.apache.tapestry.form.IPropertySelectionModel; +import org.hyperic.ui.tapestry.components.BaseComponent; + +public abstract class CBGModifyDialog extends BaseComponent { + + + @Parameter(name ="groupName", defaultValue="", required=true) + public abstract String getGroupName(); + public abstract void setGroupName(String name); + + @Parameter(name = "modifyListener", required = true) + public abstract IActionListener getModifyListener(); + public abstract void setModifyListener(IActionListener listener); + + @Parameter(name = "selectedAddItems", required = true) + public abstract void setSelectedAddItems(List items); + public abstract List getSelectedAddItems(); + + @Parameter(name = "selectedRemoveItems", required = true) + public abstract void setSelectedRemoveItems(List items); + public abstract List getSelectedRemoveItems(); + + @Parameter(name = "availableAddItems", required = true) + public abstract void setAvailableAddItems(IPropertySelectionModel model); + public abstract IPropertySelectionModel getAvailableAddItems(); + + @Parameter(name = "availableRemoveItems", required = true) + public abstract void setAvailableRemoveItems(IPropertySelectionModel model); + public abstract IPropertySelectionModel getAvailableRemoveItems(); + + @InjectScript("CBGModifyDialog.script") + public abstract IScript getScript(); + + public void renderComponent(IMarkupWriter writer, IRequestCycle cycle) { + super.renderComponent(writer, cycle); + if (!cycle.isRewinding()) { + Map<String, Object> map = new HashMap<String, Object>(); + PageRenderSupport pageRenderSupport = TapestryUtils.getPageRenderSupport(cycle, this); + getScript().execute(this, cycle, pageRenderSupport, map); + } + } +} Property changes on: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.java ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.jwc =================================================================== --- trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.jwc (rev 0) +++ trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.jwc 2008-08-11 23:42:43 UTC (rev 10619) @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!DOCTYPE component-specification PUBLIC + "-//Apache Software Foundation//Tapestry Specification 4.1//EN" + "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_1.dtd"> + +<component-specification allow-body="no" allow-informal-parameters="no" + class="org.hyperic.ui.tapestry.components.dialog.CBGModifyDialog"> +</component-specification> Property changes on: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.jwc ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.properties =================================================================== --- trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.properties (rev 0) +++ trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.properties 2008-08-11 23:42:43 UTC (rev 10619) @@ -0,0 +1,10 @@ +additions=Additions to Group +propAdditions=Proposed Additions +toAdd=Resources available to Add +toRemove=Removals from Group +propRemovals=Proposed Removals +removals=Resources available to Remove +whatIsThisBeg=The Group +whatIsThisEnd=has resources that qualify under the specified criteria that haven't been added to or removed from the group. Make changes to the group membership below. +cancelButton=Cancel +modifyButton=Modify \ No newline at end of file Property changes on: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.properties ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.script =================================================================== --- trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.script (rev 0) +++ trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.script 2008-08-11 23:42:43 UTC (rev 10619) @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE script PUBLIC + "-//Apache Software Foundation//Tapestry Script Specification 3.0//EN" + "http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd"> + +<script> +<body> +<unique> + dojo11.require("dojo.parser"); + dojo11.require("dijit.dijit"); + dojo11.require("dijit.form.Button"); + dojo11.require("dijit.form.DateTextBox"); + dojo11.require("dijit.form.TimeTextBox"); + dojo11.require("dijit.Dialog"); +</unique> +var cbgModifyDialog; +dojo.addOnLoad(function(){ + cbgModifyDialog = dojo11.byId("update_cbg_dialog"); + cbgModifyDialog.style.width = "750px"; + cbgModifyDialog.dialog = new dijit11.Dialog({ + id: "update_cbg_dialog", + refocus: true, + autofocus: false, + title: "Modify Group Membership", + },cbgModifyDialog); + dojo11.connect(dojo.byId("modifyButton"), "onclick", cbgModifyDialog.dialog, "hide"); + dojo11.connect(dojo.byId("cancelModifyButton"), "onclick", cbgModifyDialog.dialog, "hide"); +}); +</body> +</script> \ No newline at end of file Property changes on: trunk/src/org/hyperic/ui/tapestry/components/dialog/CBGModifyDialog.script ___________________________________________________________________ Name: svn:eol-style + native |