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

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


       if (email != null)
           email.setValue(this.email);
       if (errors.contains("email"))
           email.addError(T_error_not_found);
      
       Item submit = form.addItem();
       submit.addButton("submit").setValue(T_submit);
      
       forgot.addHidden("eperson-continue").setValue(knot.getId());
   }
View Full Code Here


      // the row to upload a new logo
      metadataList.addLabel(T_label_logo);
      metadataList.addItem().addFile("logo");

      // the row displaying an existing logo
      Item item;
      if (thisCommunity.getLogo() != null) {
        metadataList.addLabel(T_label_existing_logo);
        item = metadataList.addItem();
        item.addFigure(contextPath + "/bitstream/id/" + thisCommunity.getLogo().getID() + "/bob.jpg", null, null);
        item.addButton("submit_delete_logo").setValue(T_submit_delete_logo);
      }
     
      Para buttonList = main.addPara();
      buttonList.addButton("submit_save").setValue(T_submit_update);
View Full Code Here

            email.setValue(previousEmail);
            email.addError(T_error_bad_login);
        }
       

        Item item = list.addItem();
        Password password = item.addPassword("login_password");
        password.setRequired();
        password.setLabel(T_password);
        item.addXref(contextPath + "/forgot", T_forgot_link);

        list.addLabel();
        Item submit = list.addItem("login-in", null);
        submit.addButton("submit").setValue(T_submit);
       
        if (ConfigurationManager.getBooleanProperty("xmlui.user.registration", true))
        {
          Division register = login.addDivision("register");
          register.setHead(T_head2);
View Full Code Here

        text.addInstance().setValue("2003");
        text.addInstance().setValue("2004");
        text.addInstance().setValue("2005");
       
        // Buttons one typical finds at the end of forums
        Item actions = list.addItem();
        actions.addButton("submit_save").setValue("Save");
        actions.addButton("submit_cancel").setValue("Cancel");
  }
View Full Code Here

    if (previousUserName != null) {
      email.setValue(previousUserName);
      email.addError(T_error_bad_login);
    }

    Item item = list.addItem();
    Password password = item.addPassword("ldap_password");
    password.setRequired();
    password.setLabel(T_password);

    list.addLabel();
    Item submit = list.addItem("login-in", null);
    submit.addButton("submit").setValue(T_submit);

  }
View Full Code Here

                                    request.getQueryString() == null ? ""
                                            : ("?" + request.getQueryString()));
                    loginURL = location.toString();
                }

                final Item item = list.addItem();
                item.addXref(loginURL, message(authTitle));
            }

    }
  }
View Full Code Here

       if (errors.contains("email"))
       {
           email.addError(T_error_not_found);
       }
      
       Item submit = form.addItem();
       submit.addButton("submit").setValue(T_submit);
      
       forgot.addHidden("eperson-continue").setValue(knot.getId());
   }
View Full Code Here

            text.addError("The day is in error.");
        }
        text.setSize(4,2);
       
        // Buttons one typical finds at the end of forums
        Item actions = list.addItem();
        actions.addButton("submit_save").setValue("Save");
        actions.addButton("submit_cancel").setValue("Cancel");
       
       
       
       
        /////////////////////////////////////////////////
        /// Multi section
        ////////////////////////////////////////////////
       
        div.addPara("This next test will use form sections. Sections are logical groupings of related fields that together form the entire set.");
       
        list = div.addList("sectionTest",List.TYPE_FORM);
        list.setHead("Multi-Section form");
        List identity = list.addList("identity",List.TYPE_FORM);
        identity.setHead("Identity");
       
        Text name = identity.addItem().addText("name");
        name.setLabel("Username");
        if (help)
        {
            name.setHelp("The username you wish to chooose");
        }
        if (error)
        {
            name.addError("Sorry, that username is already used by another user.");
        }
       
        Composite ssn = identity.addItem().addComposite("ssn");
        ssn.setLabel("SSN");
        if (help)
        {
            ssn.setHelp("Your Social Security Number, really we won't use it for anything bad.... you can trust me.");
        }
        if (error)
        {
            ssn.addError("The SSN you entered is invalid.");
        }
        Text ssn1 = ssn.addText("ssn1");
        ssn1.setSize(4,4);
        Text ssn2 = ssn.addText("ssn2");
        ssn2.setSize(2,2);
        Text ssn3 = ssn.addText("ssn3");
        ssn3.setSize(4,4);
       
        List interests = list.addList("interests",List.TYPE_FORM);
        interests.setHead("Interests");
       
        CheckBox interest = interests.addItem().addCheckBox("interests");
        interest.setLabel("Interests");
        if (help)
        {
            interest.setHelp("Select all topics which are of interest to you.");
        }
        if (error)
        {
            interest.addError("Your interests are in error?");
        }
        interest.addOption("DL","Digital Libraries");
        interest.addOption("HT","Hypertexts");
        interest.addOption("IM","Information Managment");
        interest.addOption("ID","Information Discovery");
        interest.addOption("SI","Social Impact");
       
        List affiliation = list.addList("affiliation",List.TYPE_FORM);
        affiliation.setHead("Affiliation");
       
        Text institution = affiliation.addItem().addText("institution");
        institution.setLabel("Institution");
        if (help)
        {
            name.setHelp("The institution you are affiliated with");
        }
        if (error)
        {
            name.addError("That institution is an invalid option.");
        }
       
        Radio geography = affiliation.addItem().addRadio("geography");
        geography.setLabel("Geography");
        if (help)
        {
            geography.setHelp("Select your institution's geographical region");
        }
        if (error)
        {
            geography.addError("Your entry is invalid.");
        }
        geography.addOption("na","North America");
        geography.addOption("sa","South America");
        geography.addOption("eu","Europe");
        geography.addOption("af","Africa");
        geography.addOption("ai","Asia");
        geography.addOption("pi","Pacific Island")
        geography.addOption("an","Antarctica");
       
        Item buttons = list.addItem();
        buttons.addButton("submit_save2").setValue("Save");
        buttons.addButton("submit_cancel2").setValue("Cancel");
    }
View Full Code Here

            email.setValue(previousEmail);
            email.addError(T_error_bad_login);
        }
       

        Item item = list.addItem();
        Password password = item.addPassword("login_password");
        password.setRequired();
        password.setLabel(T_password);
        item.addXref(contextPath + "/forgot", T_forgot_link);

        list.addLabel();
        Item submit = list.addItem("login-in", null);
        submit.addButton("submit").setValue(T_submit);
       
        if (ConfigurationManager.getBooleanProperty("xmlui.user.registration", true))
        {
          Division register = login.addDivision("register");
          register.setHead(T_head2);
View Full Code Here

          
           form.addLabel(T_reset_password_for);
           form.addItem(this.email);
          
           form.addLabel();
           Item submit = form.addItem();
           submit.addButton("submit_forgot").setValue(T_submit_reset);
          
           exists.addHidden("email").setValue(this.email);
           exists.addHidden("eperson-continue").setValue(knot.getId());
       }
      
      
       Division register = body.addInteractiveDivision("register",
               contextPath+"/register",Division.METHOD_POST,"primary");
      
       register.setHead(T_head2);
      
       EPersonUtils.registrationProgressList(register,1);
      
       register.addPara(T_para2);
      
       List form = register.addList("form",List.TYPE_FORM);
      
       Text email = form.addItem().addText("email");
       email.setRequired();
       email.setAutofocus("autofocus");
       email.setLabel(T_email_address);
       email.setHelp(T_email_address_help);
       email.setValue(this.email);
       if (errors.contains("email"))
       {
           email.addError(T_error_bad_email);
       }
      
       Item submit = form.addItem();
       submit.addButton("submit").setValue(T_submit_register);
      
       register.addHidden("eperson-continue").setValue(knot.getId());
   }
View Full Code Here

TOP

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

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.