Package org.eurekastreams.web.client.ui.common.form

Examples of org.eurekastreams.web.client.ui.common.form.FormBuilder.addFormElement()


                                "Enter a brief description of your job responsibilities.", false));
                        form.addFormDivider();

                        String skills = DomainFormatUtility.buildCapabilitiesStringFromStrings(person.getInterests());

                        form.addFormElement(new AutoCompleteItemDropDownFormElement("Keywords",
                                PersonModelView.SKILLS_KEY, skills,
                                "Add keywords that describe your work experience, skills, interests, or "
                                        + "hobbies. Separate keywords with a comma. Including tags increases your "
                                        + "chances of being found in a profile search.", false,
                                "/resources/autocomplete/skill/", "itemNames", ElementType.TEXTAREA, ","));
View Full Code Here


                                        + "hobbies. Separate keywords with a comma. Including tags increases your "
                                        + "chances of being found in a profile search.", false,
                                "/resources/autocomplete/skill/", "itemNames", ElementType.TEXTAREA, ","));
                        form.addFormDivider();

                        form.addFormElement(new BasicTextBoxFormElement(MAX_LENGTH, false, "Phone",
                                PersonModelView.WORKPHONE_KEY, person.getWorkPhone(), null, false));
                        form.addFormDivider();
                        form.addFormElement(new BasicTextBoxFormElement(MAX_EMAIL, false, "Email",
                                PersonModelView.EMAIL_KEY, person.getEmail(), "(ex. user@example.com)", true));
View Full Code Here

        {
            form.setSubmitButtonClass(StaticResourceBundle.INSTANCE.coreCss().formUpdateButton());
        }

        form.setOnCancelHistoryToken(Session.getInstance().generateUrl(new CreateUrlRequest(Page.GALLERY, urlParams)));
        form.addFormElement(new ValueOnlyFormElement("id", id));
        form.addWidget(new HTML("<em class='gallery-upload-note'><strong>Please Note:</strong><br />"
                + "Please be sure your XML file includes the required fields. You will not be able to upload the XML "
                + "without the required fields."));
        form.addFormDivider();
View Full Code Here

                        form.addFormDivider();

                        form.addFormElement(new BasicTextBoxFormElement(MAX_LENGTH, false, "Phone",
                                PersonModelView.WORKPHONE_KEY, person.getWorkPhone(), null, false));
                        form.addFormDivider();
                        form.addFormElement(new BasicTextBoxFormElement(MAX_EMAIL, false, "Email",
                                PersonModelView.EMAIL_KEY, person.getEmail(), "(ex. user@example.com)", true));

                        form.addFormDivider();
                        BasicCheckBoxFormElement blockWallPost = new BasicCheckBoxFormElement("Stream Moderation",
                                "streamPostable", " Allow others to post to your stream", false, person
View Full Code Here

        form.addWidget(new HTML("<em class='gallery-upload-note'><strong>Please Note:</strong><br />"
                + "Please be sure your XML file includes the required fields. You will not be able to upload the XML "
                + "without the required fields."));
        form.addFormDivider();

        form
                .addFormElement(new BasicDropDownFormElement("Category", "category", categories, defaultCategory, "",
                        true));

        form.addFormDivider();
View Full Code Here

                        blockWallPost.addStyleName(StaticResourceBundle.INSTANCE.coreCss().streamModeration());
                        blockCommentPost.addStyleName(StaticResourceBundle.INSTANCE.coreCss().streamModeration());
                        blockCommentPost.addStyleName(StaticResourceBundle.INSTANCE.coreCss().commentModeration());

                        form.addFormElement(blockWallPost);
                        form.addFormElement(blockCommentPost);
                        form.addFormDivider();

                        HashMap<String, String> currentPageParams = new HashMap<String, String>();
                        currentPageParams.put("tab", "Basic+Info");
View Full Code Here

                        blockWallPost.addStyleName(StaticResourceBundle.INSTANCE.coreCss().streamModeration());
                        blockCommentPost.addStyleName(StaticResourceBundle.INSTANCE.coreCss().streamModeration());
                        blockCommentPost.addStyleName(StaticResourceBundle.INSTANCE.coreCss().commentModeration());

                        form.addFormElement(blockWallPost);
                        form.addFormElement(blockCommentPost);
                        form.addFormDivider();

                        HashMap<String, String> currentPageParams = new HashMap<String, String>();
                        currentPageParams.put("tab", "Basic+Info");
View Full Code Here

                .addFormElement(new BasicDropDownFormElement("Category", "category", categories, defaultCategory, "",
                        true));

        form.addFormDivider();

        form.addFormElement(new BasicTextBoxFormElement("App XML:", "url", defaultUrl,
                "Enter the link to the xml file", true));

        form.addFormDivider();

        galleryAddOrEditContainer.clear();
View Full Code Here

                Session.getInstance().getEventBus().notifyObservers(
                        new ShowNotificationEvent(new Notification("Your group has been successfully saved")));
            }
        });

        form.addFormElement(new ValueOnlyFormElement(DomainGroupModelView.ID_KEY, Long.toString(entity.getId())));
        form.addFormElement(new ValueOnlyFormElement(DomainGroupModelView.SHORT_NAME_KEY, entity.getShortName()));

        AvatarUploadFormElement avatarFormEl = new AvatarUploadFormElement("Avatar",
                "Select a JPG, PNG or GIF image from your computer. The maxium file size is 4MB",
                "/eurekastreams/groupavatarupload?groupName=" + entity.getShortName(), Session.getInstance()
View Full Code Here

                        new ShowNotificationEvent(new Notification("Your group has been successfully saved")));
            }
        });

        form.addFormElement(new ValueOnlyFormElement(DomainGroupModelView.ID_KEY, Long.toString(entity.getId())));
        form.addFormElement(new ValueOnlyFormElement(DomainGroupModelView.SHORT_NAME_KEY, entity.getShortName()));

        AvatarUploadFormElement avatarFormEl = new AvatarUploadFormElement("Avatar",
                "Select a JPG, PNG or GIF image from your computer. The maxium file size is 4MB",
                "/eurekastreams/groupavatarupload?groupName=" + entity.getShortName(), Session.getInstance()
                        .getActionProcessor(), new AvatarUploadStrategy<DomainGroupModelView>(entity,
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.