/** * Builds a button row with an "ok" and a "cancel" button.<p> * * @return the button row */ public String dialogButtonsOkCancel() { return dialogButtons(new int[] {BUTTON_OK, BUTTON_CANCEL}, new String[2]); }
/** * Builds the necessary button row.<p> * * @return the button row */ public String dialogLockButtons() { StringBuffer html = new StringBuffer(512); html.append("<div id='butClose' >\n"); html.append(dialogButtonsClose()); html.append("</div>\n"); html.append("<div id='butContinue' class='hide' >\n"); html.append(dialogButtons(new int[] {BUTTON_CONTINUE, BUTTON_CANCEL}, new String[] { " onclick=\"submitAction('" + DIALOG_OK + "', form); form.submit();\"", ""})); html.append("</div>\n"); return html.toString(); }
/** * Builds a button row with a single "ok" button.<p> * * @return the button row */ public String dialogButtonsOk() { return dialogButtons(new int[] {BUTTON_OK}, new String[1]); }
/** * Builds the necessary button row.<p> * * @return the button row */ public String dialogLockButtons() { StringBuffer html = new StringBuffer(512); html.append("<div id='butClose' >\n"); html.append(dialogButtonsClose()); html.append("</div>\n"); html.append("<div id='butContinue' class='hide' >\n"); html.append( dialogButtons( new int[] {BUTTON_CONTINUE, BUTTON_CANCEL}, new String[] {" onclick=\"submitAction('" + DIALOG_OK + "', form); form.submit();\"", ""})); html.append("</div>\n"); return html.toString(); }
/** * Builds a button row with an "ok" and a "cancel" button.<p> * * @param okAttributes additional attributes for the "ok" button * @param cancelAttributes additional attributes for the "cancel" button * * @return the button row */ public String dialogButtonsOkCancel(String okAttributes, String cancelAttributes) { return dialogButtons(new int[] {BUTTON_OK, BUTTON_CANCEL}, new String[] {okAttributes, cancelAttributes}); }
/** * Builds a button row with a single "close" button.<p> * * @return the button row */ public String dialogButtonsClose() { return dialogButtons(new int[] {BUTTON_CLOSE}, new String[1]); }
/** * Builds a button row with a "close" and a "details" button.<p> * * @param closeAttribute additional attributes for the "close" button * @param detailsAttribute additional attributes for the "details" button * * @return the button row */ public String dialogButtonsCloseDetails(String closeAttribute, String detailsAttribute) { return dialogButtons(new int[] {BUTTON_CLOSE, BUTTON_DETAILS}, new String[] {closeAttribute, detailsAttribute}); }
/** * Builds a button row with a single "close" button.<p> * * @return the button row */ public String dialogButtonsClose() { return dialogButtons(new int[] {BUTTON_CLOSE}, new String[1]); }
/** * Builds a button row with a "close" and a "details" button.<p> * * @param closeAttribute additional attributes for the "close" button * @param detailsAttribute additional attributes for the "details" button * * @return the button row */ public String dialogButtonsCloseDetails(String closeAttribute, String detailsAttribute) { return dialogButtons(new int[] {BUTTON_CLOSE, BUTTON_DETAILS}, new String[] {closeAttribute, detailsAttribute}); }
/** * Builds a button row with an "ok" and a "cancel" button.<p> * * @param okAttributes additional attributes for the "ok" button * @param cancelAttributes additional attributes for the "cancel" button * * @return the button row */ public String dialogButtonsOkCancel(String okAttributes, String cancelAttributes) { return dialogButtons(new int[] {BUTTON_OK, BUTTON_CANCEL}, new String[] {okAttributes, cancelAttributes}); }
/** * Builds a button row with a single "close" button.<p> * * @param closeAttribute additional attributes for the "close" button * * @return the button row */ public String dialogButtonsClose(String closeAttribute) { return dialogButtons(new int[] {BUTTON_CLOSE}, new String[] {closeAttribute}); }
/** * Builds a button row with a single "ok" button.<p> * * @return the button row */ public String dialogButtonsOk() { return dialogButtons(new int[] {BUTTON_OK}, new String[1]); }
/** * Builds a button row with a single "ok" button.<p> * * @param okAttribute additional attributes for the "ok" button * * @return the button row */ public String dialogButtonsOk(String okAttribute) { return dialogButtons(new int[] {BUTTON_OK}, new String[] {okAttribute}); }
/** * Builds a button row with a single "close" button.<p> * * @param closeAttribute additional attributes for the "close" button * * @return the button row */ public String dialogButtonsClose(String closeAttribute) { return dialogButtons(new int[] {BUTTON_CLOSE}, new String[] {closeAttribute}); }
/** * Builds a button row with a single "ok" button.<p> * * @param okAttribute additional attributes for the "ok" button * * @return the button row */ public String dialogButtonsOk(String okAttribute) { return dialogButtons(new int[] {BUTTON_OK}, new String[] {okAttribute}); }
/** * Builds a button row with an "ok" and a "cancel" button.<p> * * @return the button row */ public String dialogButtonsOkCancel() { return dialogButtons(new int[] {BUTTON_OK, BUTTON_CANCEL}, new String[2]); }
/** * Builds a button row with a "set", an "ok", and a "cancel" button.<p> * * @param setAttributes additional attributes for the "set" button * @param okAttributes additional attributes for the "ok" button * @param cancelAttributes additional attributes for the "cancel" button * * @return the button row */ public String dialogButtonsSetOkCancel(String setAttributes, String okAttributes, String cancelAttributes) { return dialogButtons( new int[] {BUTTON_SET, BUTTON_OK, BUTTON_CANCEL}, new String[] {setAttributes, okAttributes, cancelAttributes}); }
/** * Builds a button row with a "set", an "ok", and a "cancel" button.<p> * * @param setAttributes additional attributes for the "set" button * @param okAttributes additional attributes for the "ok" button * @param cancelAttributes additional attributes for the "cancel" button * * @return the button row */ public String dialogButtonsSetOkCancel(String setAttributes, String okAttributes, String cancelAttributes) { return dialogButtons(new int[] {BUTTON_SET, BUTTON_OK, BUTTON_CANCEL}, new String[] { setAttributes, okAttributes, cancelAttributes}); }
/** * Builds a button row with an "ok", a "cancel" and an "advanced" button.<p> * * @param okAttributes additional attributes for the "ok" button * @param cancelAttributes additional attributes for the "cancel" button * @param advancedAttributes additional attributes for the "advanced" button * * @return the button row */ public String dialogButtonsOkCancelAdvanced(String okAttributes, String cancelAttributes, String advancedAttributes) { return dialogButtons(new int[] {BUTTON_OK, BUTTON_CANCEL, BUTTON_ADVANCED}, new String[] { okAttributes, cancelAttributes, advancedAttributes}); }
/** * Builds a button row with an "ok", a "cancel" and an "advanced" button.<p> * * @param okAttributes additional attributes for the "ok" button * @param cancelAttributes additional attributes for the "cancel" button * @param advancedAttributes additional attributes for the "advanced" button * * @return the button row */ public String dialogButtonsOkCancelAdvanced( String okAttributes, String cancelAttributes, String advancedAttributes) { return dialogButtons( new int[] {BUTTON_OK, BUTTON_CANCEL, BUTTON_ADVANCED}, new String[] {okAttributes, cancelAttributes, advancedAttributes}); }