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

Examples of org.eurekastreams.web.client.ui.common.form.elements.ValueOnlyFormElement


                                    Method.INSERT);

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


            if (query.get("keywords") != null)
            {
                keywords = query.get("keywords").isString().stringValue();
            }

            form.addFormElement(new ValueOnlyFormElement("id", view.getId()));
        }

        form.addFormElement(new BasicTextBoxFormElement(MAX_NAME, false, "Name", "name", name, "", true));

        form.addFormElement(streamLists);
View Full Code Here

                                                "Your profile has been updated.")));
                                        form.onSuccess();
                                    }
                                });

                        form.addFormElement(new ValueOnlyFormElement("accountId", person.getAccountId()));

                        form.addWidget(new AvatarUploadFormElement("Photo", "/eurekastreams/personavatarupload",
                                Session.getInstance().getActionProcessor(), new AvatarUploadStrategy<PersonModelView>(
                                        person, "resizePersonAvatar", EntityType.PERSON)));
                        form.addFormDivider();
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 />"
                + "When users add your tab from the gallery they will be making a copy of the tab. "
                + "Updates you make to the tab will not be reflected for users who have previously add it."));
        form.addFormDivider();
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 "
                + "<a href='http://docs.eurekastreams.org/Technical-Specification/1.1/Theme%20Format.html' "
                + "target='_blank'>required fields</a>. "
                + "You will not be able to upload the XML without the required fields."));
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

        formBuilder.setOnCancelHistoryToken(History.getToken());
        formBuilder.addWidget(new PluginMetaDataDescriptionPanel(metaData));
        formBuilder.addLastFormElement(lastCheckBox);

        formBuilder.addFormElement(new ValueOnlyFormElement("EUREKA:GROUP", Session.getInstance().getUrlViews().get(
                Session.getInstance().getUrlViews().size() - 1)));
        formBuilder.addFormElement(new JSNICommandFormElement("EUREKA:FEEDURL", "getFeedCommand"));
        formBuilder.addFormElement(new ValueOnlyFormElement("EUREKA:PLUGINID", pluginDefinition.getId()));
        formBuilder.addFormElement(new ValueOnlyFormElement("EUREKA:PLUGINTITLE", metaData.getTitle()));

        if (mode.equals(Method.UPDATE))
        {
            formBuilder.addFormElement(new ValueOnlyFormElement("EUREKA:FEEDSUBID", feedSubId));
        }

        this.add(formBuilder);

        formBuilder.addOnCancelCommand(new Command()
View Full Code Here

            required = false;
        }
        else
        {
            required = true;
            formBuilder.addFormElement(new ValueOnlyFormElement("REQUIRED:" + key, requiredText));
        }

        return required;
    }
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()
                        .getActionProcessor(), new AvatarUploadStrategy<DomainGroupModelView>(entity,
View Full Code Here

TOP

Related Classes of org.eurekastreams.web.client.ui.common.form.elements.ValueOnlyFormElement

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.