Package org.dspace.app.xmlui.wing.element

Examples of org.dspace.app.xmlui.wing.element.Button


        optionsField.addOption("blankLines", "Treat blank lines as paragraph breaks.");
        if (blankLines)
          optionsField.setOptionSelected("blankLines");
       
       
        Button submit = form.addItem().addButton("submit");
        submit.setValue("Test HTML Rendering");
       
        Division test = div.addDivision("html-test-sample");
        test.setHead("Rendered Sample");
       
        test.addSimpleHTMLFragment(blankLines, fragment);
View Full Code Here


        p.addContent(", embedded in a paragraph.");
       
        // Button
        p = suited.addPara();
    p.addContent("This is a 'Button' field, ");
        Button button = p.addButton("button");
        button.setLabel("Button");
        button.setValue("When you touch me I do things, lots of things");
        if (help)
          button.setHelp("Submit buttons allow the user to submit the form.");
        if (error)
          button.addError("This button is in error.");
        p.addContent(", embedded in a paragraph.");
       
       
       
        Division unsuited = body.addDivision("unsuited");
View Full Code Here

           {
               passwordConfirm.addError(T_error_unconfirmed_password);
           }
       }
      
       Button submit = form.addItem().addButton("submit");
       if (registering)
           submit.setValue(T_submit_update);
       else
           submit.setValue(T_submit_create);
      
       profile.addHidden("eperson-continue").setValue(knot.getId());
      
      
      
View Full Code Here

        // Only System Administrators can delete bitstreams
    if (AuthorizeManager.authorizeActionBoolean(context, item, Constants.REMOVE))
      actions.addButton("submit_delete").setValue(T_submit_delete);
    else
    {
      Button button = actions.addButton("submit_delete");
      button.setValue(T_submit_delete);
      button.setDisabled();
     
      main.addPara().addHighlight("fade").addContent(T_no_remove);
    }
    actions.addButton("submit_return").setValue(T_submit_return);
View Full Code Here

    if (bundleCount == 0)
      upload.addItem().addContent(T_no_bundles);
   
    // ITEM: actions
    Item actions = upload.addItem();
    Button button = actions.addButton("submit_upload");
    button.setValue(T_submit_upload);
    if (bundleCount == 0)
      button.setDisabled();
   
    actions.addButton("submit_cancel").setValue(T_submit_cancel);

    div.addHidden("administrative-continue").setValue(knot.getId());
 
View Full Code Here

   * @throws WingException
   * @throws SQLException
   */
  private void addNotAllowedButton(org.dspace.app.xmlui.wing.element.Item item, String buttonName, Message buttonLabel) throws WingException, SQLException
  {
      Button button = item.addButton(buttonName);
      button.setValue(buttonLabel);
    button.setDisabled();
    item.addHighlight("fade").addContent(T_not_allowed);
  }
View Full Code Here

    item.addHighlight("fade").addContent(T_not_allowed);
  }
   
    private void addCollectionAdminOnlyButton(org.dspace.app.xmlui.wing.element.Item item, Collection collection, String buttonName, Message buttonLabel) throws WingException, SQLException
  {
      Button button = item.addButton(buttonName);
      button.setValue(buttonLabel);
       
       
      if (!AuthorizeManager.isAdmin(context, collection))
      {
        // Only admins can create or delete
        button.setDisabled();
        item.addHighlight("fade").addContent(T_collectionadmins_only);
      }
  }
View Full Code Here

        // Non-Field-item
        list.addLabel("Non-Field");
        list.addItem().addContent("This is just text, not a field, but it has a list label.");
       
        // Button
        Button button = list.addItem().addButton("button");
        button.setLabel("Button");
        button.setValue("When you touch me I do things, lots of things");
        if (help)
          button.setHelp("Submit buttons allow the user to submit the form.");
        if (error)
          button.addError("This button is in error.");
       
        // Non-field-unlabeled-item
        list.addItem().addContent("The following fields are all various use cases of composites. Also note that this item is an item inside a list of type form that 1) does not contain a field and 2) does not have a label.");
       
        // Composite
View Full Code Here

    }

    // LIST: actions, confirm or return
    org.dspace.app.xmlui.wing.element.Item actions = main.addList("actions", List.TYPE_FORM).addItem();

    Button confirmButton = actions.addButton("submit_confirm");

    if("delete".equals(confirm))
    {
      confirmButton.setValue(T_submit_delete);
    }
    else if ("reinstate".equals(confirm))
    {
      confirmButton.setValue(T_submit_reinstate);
    }
    else if ("withdraw".equals(confirm))
    {
      confirmButton.setValue(T_submit_withdraw);
    }
    actions.addButton("submit_cancel").setValue(T_submit_cancel);

    main.addHidden("administrative-continue").setValue(knot.getId());
  }
View Full Code Here

    {
        //Only add the button if we have button text and a valid step & page!
        if(buttonText!=null && stepAndPage>0.0)
        {   
            //add a Jump To button for this section
            Button jumpButton = list.addItem("step_" + stepAndPage, renderJumpButton(stepAndPage))
                                    .addButton(AbstractProcessingStep.PROGRESS_BAR_PREFIX + stepAndPage);
            jumpButton.setValue(buttonText);
        }
    }
View Full Code Here

TOP

Related Classes of org.dspace.app.xmlui.wing.element.Button

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.