Package com.smartgwt.client.widgets.form.fields

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


        recalculationInterval.show();
        markForRedraw();
    }

    private void buildForm() {
        FormItemIcon expressionBuilderIcon = new FormItemIcon();
        expressionBuilderIcon.setSrc("[SKIN]/actions/add.png");
        expressionBuilderIcon.setPrompt(MSG.view_dynagroup_expressionBuilderIconTooltip());
        expressionBuilderIcon.addFormItemClickHandler(new FormItemClickHandler() {
            @Override
            public void onFormItemClick(FormItemIconClickEvent event) {
                showExpressionBuilder();
            }
        });
View Full Code Here


        String port = "port";
        portValue = new StaticTextItem(port, MSG.common_title_port());
        formItems.add(portValue);

        // Agent Status
        agentStatusIcon = new FormItemIcon();
        agentStatusIcon.setSrc(ImageManager.getAvailabilityLargeIcon(null));
        StaticTextItem agentStatus = new StaticTextItem("agent-comm-status",
            MSG.view_inventory_summary_agent_status_title());
        agentStatus.setIcons(agentStatusIcon);
        agentStatus.setWrapTitle(false);
View Full Code Here

            staticItem.setTooltip(MSG.view_groupConfigEdit_tooltip_1());
            Boolean isHomogeneous = isHomogeneous(propertySimple);
            staticItem.setVisible(!isHomogeneous);

            FormItem valueItem = fields.get(2);
            FormItemIcon icon = buildEditMemberValuesIcon(propertyDefinitionSimple, propertySimple, valueItem);
            staticItem.setIcons(icon);

            valueItem.setAttribute(RHQ_STATIC_ITEM_NAME_ATTRIBUTE, staticItem.getName());
            fields.add(3, staticItem);
        }
View Full Code Here

        final FormItem item = super.buildSimpleField(propertyDefinitionSimple, propertySimple);

        boolean isAggregate = isAggregateProperty(propertySimple);
        if (isAggregate) {
            // Add the icon that user can click to edit the member values.
            FormItemIcon icon = buildEditMemberValuesIcon(propertyDefinitionSimple, propertySimple, item);

            item.setIcons(icon);

            item.addChangedHandler(new ChangedHandler() {
                public void onChanged(ChangedEvent changedEvent) {
View Full Code Here

        return item;
    }

    private FormItemIcon buildEditMemberValuesIcon(final PropertyDefinitionSimple propertyDefinitionSimple,
        final PropertySimple propertySimple, final FormItem dynamicItem) {
        FormItemIcon icon = new FormItemIcon();

        icon.setSrc(ImageManager.getEditIcon());
        icon.setName("Edit Member Values");
        icon.setNeverDisable(true);
        icon.addFormItemClickHandler(new FormItemClickHandler() {
            public void onFormItemClick(FormItemIconClickEvent event) {
                // TODO: Pass the actual index, rather than null, if the prop is inside a list.
                displayMemberValuesEditor(propertyDefinitionSimple, propertySimple, null, dynamicItem);
            }
        });
View Full Code Here


        public YesNoMaybeItem() {
            //use default trigger icon here. User can customize.
            //[SKIN]/DynamicForm/default_formItem_icon.gif
            FormItemIcon formItemIcon = new FormItemIcon();
            setIcons(formItemIcon);

            addIconClickHandler(new IconClickHandler() {
                public void onIconClick(IconClickEvent event) {
View Full Code Here

        TextItem caseNumber = new TextItem("case", "Case #");
        caseNumber.setWidth(130);
        caseNumber.setHint("Enter case number");
        caseNumber.setShowHintInField(true);

        FormItemIcon icon = new FormItemIcon();
        icon.setSrc("[SKIN]/actions/help.png");

        final StaticTextItem severityLevel = new StaticTextItem();
        severityLevel.setName("severityLevel");
        severityLevel.setTitle("Severity Level");
        severityLevel.setDefaultValue("Severity 2");
View Full Code Here

    public Canvas getViewPanel() {
     
        final DynamicForm form = new DynamicForm();
        form.setWidth(200);
       
        FormItemIcon icon = new FormItemIcon();
        icon.setSrc("[SKIN]/actions/help.png");
       
        final StaticTextItem severityLevel = new StaticTextItem();
        severityLevel.setName("severityLevel");
        severityLevel.setTitle("Severity Level");
        severityLevel.setDefaultValue("Severity 2");
View Full Code Here

    final DynamicForm form = new DynamicForm();
    form.setWidth100();
    form.setHeight100();

    final StaticTextItem iconButton = new StaticTextItem();
    final FormItemIcon addIcon = new FormItemIcon();
    addIcon.setWidth(12);
    addIcon.setHeight(12);
    addIcon.setSrc(ImageProvider.BUTTON_ADD);
    iconButton.setIcons(addIcon);
    iconButton.setRedrawOnChange(true);

    ButtonItem button = new ButtonItem("Test", "test");
    button.addClickHandler(new ClickHandler() {
View Full Code Here

  public AddressEditForm() {

    super();
    init();
    this.addIcon = new FormItemIcon();
    this.addIcon.setSrc(ImageProvider.BUTTON_ADD);
    this.addIcon.setWidth(12);
    this.addIcon.setHeight(12);
    this.removeIcon = new FormItemIcon();
    this.removeIcon.setSrc(ImageProvider.BUTTON_REMOVE);
    this.removeIcon.setWidth(12);
    this.removeIcon.setHeight(12);

    this.editLayout = new VLayout();
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.form.fields.FormItemIcon

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.