Examples of FormItemIcon


Examples of com.smartgwt.client.widgets.form.fields.FormItemIcon

                    uploadButton.setShowIcons(false);
                }
            }
        });

        FormItemIcon loadingIcon = new FormItemIcon();
        loadingIcon.setSrc("ajax-loader.gif");
        loadingIcon.setWidth(16);
        loadingIcon.setHeight(16);
        uploadButton.setIcons(loadingIcon);
        uploadButton.setShowIcons(false);

        setItems(retrieveField, sessionIdField, textFile, uploadButton);
View Full Code Here

Examples of com.smartgwt.client.widgets.form.fields.FormItemIcon

            } else {
                iconSrc = ImageManager.getAvailabilityIcon(Boolean.FALSE);
                msg = new Message(MSG.view_upload_error_file(), Severity.Error);
            }

            FormItemIcon loadedIcon = new FormItemIcon();
            loadedIcon.setSrc(iconSrc);
            loadedIcon.setWidth(16);
            loadedIcon.setHeight(16);
            uploadButton.setIcons(loadedIcon);
            uploadButton.setShowIcons(true);
            markForRedraw();

            CoreGUI.getMessageCenter().notify(msg);
View Full Code Here

Examples of com.smartgwt.client.widgets.form.fields.FormItemIcon

        this.obfuscate = obfuscate;

        setEncoding(Encoding.MULTIPART);
        setAction(GWT.getModuleBaseURL() + "/FileUploadServlet");

        iconLoading = new FormItemIcon();
        iconLoading.setSrc("ajax-loader.gif");
        iconLoading.setWidth(16);
        iconLoading.setHeight(16);

        iconGreen = new FormItemIcon();
        iconGreen.setSrc(ImageManager.getAvailabilityIcon(Boolean.TRUE));
        iconGreen.setWidth(16);
        iconGreen.setHeight(16);

        iconRed = new FormItemIcon();
        iconRed.setSrc(ImageManager.getAvailabilityIcon(Boolean.FALSE));
        iconRed.setWidth(16);
        iconRed.setHeight(16);

        iconGrey = new FormItemIcon();
        iconGrey.setSrc(ImageManager.getAvailabilityIcon(null));
        iconGrey.setWidth(16);
        iconGrey.setHeight(16);
    }
View Full Code Here

Examples of com.smartgwt.client.widgets.form.fields.FormItemIcon

     * @param item item that will get the given icons plus a help icon added to it
     * @param helpText the help text to show the user when the help icon is clicked
     * @param icons other icons to add to the form item - these will appear before the help icon
     */
    public static void addContextualHelp(FormItem item, final String helpText, FormItemIcon... icons) {
        final FormItemIcon helpIcon = new FormItemIcon();
        helpIcon.setSrc(ImageManager.getHelpIcon());

        if (icons == null) {
            item.setIcons(helpIcon);
        } else {
            FormItemIcon[] allIcons = new FormItemIcon[icons.length + 1];
View Full Code Here

Examples of com.smartgwt.client.widgets.form.fields.FormItemIcon

        StaticTextItem title = new StaticTextItem("theMessage", MSG.common_title_message());
        title.setValue(message.conciseMessage);

        StaticTextItem severity = new StaticTextItem("severity", MSG.view_messageCenter_messageSeverity());
        FormItemIcon severityIcon = new FormItemIcon();
        severityIcon.setSrc(getSeverityIcon(message.severity));
        severity.setIcons(severityIcon);
        severity.setValue(message.severity.name());

        StaticTextItem date = new StaticTextItem("time", MSG.view_messageCenter_messageTime());
        date.setValue(TimestampCellFormatter.format(message.fired, TimestampCellFormatter.DATE_TIME_FORMAT_FULL));
View Full Code Here

Examples of com.smartgwt.client.widgets.form.fields.FormItemIcon

        anotherUserPassword = new PasswordItem("password", MSG.common_title_password());
        anotherUserPassword.setAttribute("autocomplete", "off");
        verifyUserButton = new ButtonItem("verify",
            MSG.view_alert_definition_notification_cliScript_editor_verifyAuthentication());

        successIcon = new FormItemIcon();
        successIcon.setSrc(ImageManager.getAvailabilityIcon(Boolean.TRUE));
        successIcon.setWidth(16);
        successIcon.setHeight(16);

        failureIcon = new FormItemIcon();
        failureIcon.setSrc(ImageManager.getAvailabilityIcon(Boolean.FALSE));
        failureIcon.setWidth(16);
        failureIcon.setHeight(16);

        form.setFields(anotherUserName, anotherUserPassword, verifyUserButton);
View Full Code Here

Examples of com.smartgwt.client.widgets.form.fields.FormItemIcon

                        selectedGroupId = (Integer) eventValue;
                    }
                    groupSelectionChanged(selectedGroupId);
                }
            });
            final FormItemIcon newGroupIcon = new FormItemIcon();
            newGroupIcon.setSrc("[SKIN]/actions/add.png");
            this.selector.addIconClickHandler(new IconClickHandler() {
                public void onIconClick(IconClickEvent event) {
                    if (event.getIcon().equals(newGroupIcon)) {
                        new QuickGroupCreateWizard(selector).startWizard();
                    }
View Full Code Here

Examples of com.smartgwt.client.widgets.form.fields.FormItemIcon

            searchTextItem.setName(MSG.common_title_search());
            searchTextItem.setTitle(MSG.view_admin_roles_filterResultsBelow());
            searchTextItem.setWidth("100%");
            searchTextItem.setTooltip(MSG.common_msg_typeToFilterResults());
        }
        final FormItemIcon loadingIcon = new FormItemIcon();
        final FormItemIcon successIcon = new FormItemIcon();
        final FormItemIcon failIcon = new FormItemIcon();
        final FormItemIcon attentionIcon = new FormItemIcon();
        String successIconPath = "[SKIN]/actions/ok.png";
        String failedIconPath = "[SKIN]/actions/exclamation.png";
        String loadingIconPath = "[SKIN]/loading.gif";
        String attentionIconPath = "[SKIN]/Dialog/warn.png";
        loadingIcon.setSrc(loadingIconPath);
        successIcon.setSrc(successIconPath);
        failIcon.setSrc(failedIconPath);
        attentionIcon.setSrc(attentionIconPath);

        final StaticTextItem groupQueryStatus = new StaticTextItem();
        {
            groupQueryStatus.setName("groupQueryStatus");
            groupQueryStatus.setTitle(MSG.common_title_queryProgress());
View Full Code Here

Examples of com.smartgwt.client.widgets.form.fields.FormItemIcon

        cronHelpTabSet.addTab(formatTab);
        cronHelpTabSet.addTab(examplesTab);

        cronHelpTabSet.setVisible(false);

        FormItemIcon helpIcon = new FormItemIcon();
        helpIcon.setSrc("[SKIN]/actions/help.png");
        cronExpressionItem.setIcons(helpIcon);
        cronExpressionItem.addIconClickHandler(new IconClickHandler() {
            public void onIconClick(IconClickEvent event) {
                cronHelpTabSet.show();
            }
View Full Code Here

Examples of com.smartgwt.client.widgets.form.fields.FormItemIcon

        resultsLayout = new EnhancedVLayout();
        resultsLayout.setVisible(false);
        addMember(resultsLayout);

        final FormItemIcon executeButton = new FormItemIcon();
        executeButton.setName("execute");
        executeButton.setSrc(ImageManager.getOperationIcon());
        executeButton.setPrompt(MSG.common_button_execute());

        final SelectItem controlNamesItem = new SortedSelectItem("controlMenu",
            MSG.view_admin_plugins_serverControls_name());
        LinkedHashMap<String, String> controlNames = new LinkedHashMap<String, String>();
        for (ServerPluginControlDefinition def : controlDefinitions) {
            controlNames.put(def.getName(), def.getDisplayName());
        }
        controlNamesItem.setValueMap(controlNames);
        controlNamesItem.setWidth(300);
        controlNamesItem.addChangedHandler(new ChangedHandler() {
            public void onChanged(ChangedEvent event) {
                // determine the control that was selected and remember information about it
                selectedControlName = (String) event.getValue();
                ServerPluginControlDefinition def = getControlDefinition(selectedControlName);
                selectedParamsDef = def.getParameters();
                selectedResultsDef = def.getResults();

                // we changed the control selected, hide any previously shown results
                resultsLayout.destroyMembers();
                resultsLayout.setVisible(false);

                // show the parameters, if there are any
                showParameters();

                // make sure we show our execute button now that a control has been selected
                if (controlNamesItem.getIcon(executeButton.getName()) == null) {
                    controlNamesItem.setIcons(executeButton);
                }
            }
        });
        form.setItems(controlNamesItem);

        // when this is clicked, the user wants to invoke the control
        executeButton.addFormItemClickHandler(new FormItemClickHandler() {
            public void onFormItemClick(FormItemIconClickEvent event) {
                Configuration params;
                try {
                    params = getParameters();
                } catch (IllegalStateException paramsInvalid) {
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.