/**
  * Creates the submit button on the routing page
  *
  * @return
  */
 protected ExtraButton createSubmitButton() {
   ExtraButton clearButton = new ExtraButton();
   clearButton.setExtraButtonProperty("methodToCall.route");
   clearButton.setExtraButtonSource(
       "${" + KFSConstants.RICE_EXTERNALIZABLE_IMAGES_URL_KEY + "}buttonsmall_submit.gif");
   clearButton.setExtraButtonAltText("Back");
   return clearButton;
 }
 /**
  * Creates the back button on the routing page that points to the vendor page
  *
  * @return
  */
 protected ExtraButton createBackToVendorButton() {
   ExtraButton clearButton = new ExtraButton();
   clearButton.setExtraButtonProperty("methodToCall.continueToVendor");
   clearButton.setExtraButtonSource(
       "${" + KFSConstants.EXTERNALIZABLE_IMAGES_URL_KEY + "}buttonsmall_back.gif");
   clearButton.setExtraButtonAltText("Back");
   return clearButton;
 }
 /**
  * Creates the continue button on the vendor page that points to the routing page
  *
  * @return
  */
 protected ExtraButton createContinueToRoutingButton() {
   ExtraButton printButton = new ExtraButton();
   printButton.setExtraButtonProperty("methodToCall.continueToRouting");
   printButton.setExtraButtonSource(
       "${" + KFSConstants.RICE_EXTERNALIZABLE_IMAGES_URL_KEY + "}buttonsmall_continue.gif");
   printButton.setExtraButtonAltText("Continue");
   return printButton;
 }
Esempio n. 4
0
 @Override
 public ExtraButton configureReturnToParentTopButton() {
   ExtraButton returnToProposalButton = new ExtraButton();
   returnToProposalButton.setExtraButtonProperty(RETURN_TO_PROPOSAL_METHOD_TO_CALL);
   returnToProposalButton.setExtraButtonSource(
       buildExtraButtonSourceURI("tinybutton-retprop.gif"));
   returnToProposalButton.setExtraButtonAltText(RETURN_TO_PROPOSAL_ALT_TEXT);
   return returnToProposalButton;
 }
  /**
   * Adds a new button to the extra buttons collection.
   *
   * @param property - property for button
   * @param source - location of image
   * @param altText - alternate text for button if images don't appear
   *     <p>KRAD Conversion: Performs extra button customization. No data dictionary is involved
   *     here.
   */
  protected void addExtraButton(String property, String source, String altText) {

    ExtraButton newButton = new ExtraButton();

    newButton.setExtraButtonProperty(property);
    newButton.setExtraButtonSource(source);
    newButton.setExtraButtonAltText(altText);

    extraButtons.add(newButton);
  }
 /**
  * Creates the button for creating the requisition. If JavaScript is enabled on the client, then
  * the requisition will be created in a new window/tab instead of the current one.
  *
  * @return
  */
 protected ExtraButton createCreateRequisitionButton() {
   ExtraButton clearButton = new ExtraButton();
   clearButton.setExtraButtonProperty("methodToCall.createRequisition");
   clearButton.setExtraButtonSource(
       "${" + KFSConstants.EXTERNALIZABLE_IMAGES_URL_KEY + "}buttonsmall_create_req.gif");
   clearButton.setExtraButtonAltText("Create Req");
   clearButton.setExtraButtonOnclick(
       "window.open('"
           + ConfigContext.getCurrentContextConfig().getProperty(KRADConstants.APPLICATION_URL_KEY)
           + "/purapRequisition.do?methodToCall=createReqFromIWantDoc&docId="
           + getDocument().getDocumentNumber()
           + "');return false;");
   return clearButton;
 }
 protected ExtraButton createCreateDVButton() {
   ExtraButton clearButton = new ExtraButton();
   clearButton.setExtraButtonProperty("methodToCall.createDV");
   clearButton.setExtraButtonSource(
       "${" + KFSConstants.EXTERNALIZABLE_IMAGES_URL_KEY + "}buttonsmall_create_DV.gif");
   clearButton.setExtraButtonAltText("Create DV");
   clearButton.setExtraButtonOnclick(
       "window.open('"
           + ConfigContext.getCurrentContextConfig().getProperty(KRADConstants.APPLICATION_URL_KEY)
           + "/financialDisbursementVoucher.do?methodToCall=createDVFromIWantDoc&docId="
           + getDocument().getDocumentNumber()
           + "');return false;");
   clearButton.setExtraButtonParams("_blank");
   return clearButton;
 }