Examples of HTMLFlow


Examples of com.smartgwt.client.widgets.HTMLFlow

                    endDateItem,
                    endTimeHours, endTimeMinutes,
                new RowSpacerItem());
            addItem(form);
           
            final HTMLFlow startBeforeEndLabel = new HTMLFlow();
            startBeforeEndLabel.setMargin(15);
            startBeforeEndLabel.setHeight(30);
            startBeforeEndLabel.setExtraSpace(0);
            addItem(startBeforeEndLabel);

            HLayout buttonHLayout = new HLayout();
            buttonHLayout.setMargin(35);
            buttonHLayout.setMembersMargin(20);
            IButton cancelButton = new EnhancedIButton(MSG.common_buttonbar_custom_cancel());
            cancelButton.addClickHandler(new ClickHandler() {
                @Override
                public void onClick(ClickEvent clickEvent) {
                    CustomDateRangeWindow.this.destroy();
                }
            });
            buttonHLayout.addMember(cancelButton);

            IButton saveButton = new EnhancedIButton(MSG.common_buttonbar_custom_save(), ButtonColor.BLUE);
            saveButton.addClickHandler(new ClickHandler() {
                @Override
                public void onClick(ClickEvent clickEvent) {
                    //@todo: eventually get rid of deprecated calls but not in 3.2.1 minor release
                    Date newStartDate = new Date(startDateItem.getValueAsDate().getYear(), startDateItem
                        .getValueAsDate().getMonth(), startDateItem.getValueAsDate().getDate(),
                        (Integer) startTimeHours.getValue(), (Integer) startTimeMinutes.getValue());
                    Date newEndDate = new Date(endDateItem.getValueAsDate().getYear(), endDateItem.getValueAsDate()
                        .getMonth(), endDateItem.getValueAsDate().getDate(), (Integer) endTimeHours.getValue(),
                        (Integer) endTimeMinutes.getValue());
                    if (newStartDate.before(newEndDate)) {
                        startBeforeEndLabel.setContents("");
                        buttonBarDateTimeRangeEditor.saveDateRange(newStartDate.getTime(), newEndDate.getTime());
                        redrawGraphs();
                        showUserFriendlyTimeRange(newStartDate.getTime(), newEndDate.getTime());
                        CustomDateRangeWindow.this.destroy();
                    } else {
                        startBeforeEndLabel.setContents("<img src='images/resources/availability_red_24.png'/> &nbsp;"
                            + MSG.view_measureTable_startBeforeEnd());
                    }
                }
            });
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLFlow

            topExtraWidgets.setMembersMargin(15);
            topExtraWidgets.hide();
            contents.addMember(topExtraWidgets);

            // Title
            this.titleCanvas = new HTMLFlow();
            updateTitleCanvas(this.titleString);

            if (showHeader) {
                // titleLayout not really needed now as TitleBar has a VLayout
                titleLayout = new EnhancedVLayout();
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLFlow

     */
    protected void initializeUi() {
        setPadding(5);
        setMembersMargin(5);
        //dividers definition
        HTMLFlow divider1 = new HTMLFlow("<hr/>");
        HTMLFlow divider2 = new HTMLFlow("<hr/>");
        HTMLFlow divider3 = new HTMLFlow("<hr/>");
        HTMLFlow divider4 = new HTMLFlow("<hr/>");
        HTMLFlow divider5 = new HTMLFlow("<hr/>");
        divider1.setWidth("50%");
        divider2.setWidth("50%");
        divider3.setWidth("50%");
        divider4.setWidth("50%");
        divider5.setWidth("50%");

        //leftPane
        leftPane.setWidth("50%");
        leftPane.setPadding(5);
        leftPane.setMembersMargin(5);
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLFlow

        //call out to 3rd party javascript lib
        BrowserUtility.graphSparkLines();
    }

    private void enableBundleArea() {
        HTMLFlow divider6 = new HTMLFlow("<hr/>");
        divider6.setWidth("50%");

        if (firstRightPanePortletLoaded) {
            rightPane.addMember(divider6);
        }
        rightPane.addMember(recentBundleDeployTitle);
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLFlow

            addMemberPropertyDefinitionsToDynamicPropertyMap(propertyDefinitionMapClone, propertyMap);
            propertyDefinitionMap = propertyDefinitionMapClone;
        }
        EnhancedVLayout layout = new EnhancedVLayout();

        HTMLFlow description = new HTMLFlow(propertyDefinitionMap.getDescription());
        layout.addMember(description);

        final PropertyDefinitionMap propertyDefinitionMapFinal = propertyDefinitionMap;
        DynamicForm valuesCanvas = buildPropertiesForm(propertyDefinitionMapFinal.getOrderedPropertyDefinitions(),
            propertyMap);
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLFlow

        return canvasItem;
    }

    private Canvas buildListOfMapsGridErrorPanel(int listMin, int listMax) {
        Label errorLabel = buildListOfMapsGridErrorLabelForBounds(listMin, listMax);
        final HTMLFlow errorPanel = new HTMLFlow();
        errorPanel.setWidth100();
        errorPanel.addChild(errorLabel);
        return errorPanel;
    }
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLFlow

                        final Window popup = createPopup(MSG.view_configEdit_addItem(), 400, 150);

                        VLayout vLayout = new VLayout();
                        vLayout.setMargin(10);

                        HTMLFlow description = new HTMLFlow(propertyDefinitionList.getDescription());
                        vLayout.addMember(description);

                        final DynamicForm form = new DynamicForm();

                        PropertyDefinitionSimple memberPropertyDefinitionSimple = (PropertyDefinitionSimple) propertyDefinitionList
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLFlow

        }
        this.readOnly = readOnly;
        this.callback = callback;

        // create the following widgets once and re-use as needed
        tagTitleLabel = new HTMLFlow("<nobr><b>" + MSG.view_tags_tags() + ":</b></nobr>");
        tagTitleLabel.setAutoWidth();

        if (!this.readOnly) {
            tagInputDialog = new TagInputDialog();
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLFlow

        for (final Tag tag : tags) {
            EnhancedHLayout tagLayout = new EnhancedHLayout();
            tagLayout.setHeight(20);

            HTMLFlow tagString = new HTMLFlow("<nobr><a href=\"" + LinkManager.getTagLink(tag.toString()) + "\">"
                + tag.toString() + "</a></nobr>");
            tagString.setAutoWidth();
            tagLayout.addMember(tagString);

            if (!readOnly) {
                final LayoutSpacer spacer = new LayoutSpacer();
                spacer.setHeight(16);
View Full Code Here

Examples of com.smartgwt.client.widgets.HTMLFlow

    public class TitleWithIcon extends HLayout {

        public TitleWithIcon(String imageUrl, String title) {
            super();
            Img titleImage = new Img(imageUrl, 24, 24);
            HTMLFlow titleElement = new HTMLFlow();
            titleElement.setWidth("*");
            titleElement.setContents(title);
            titleElement.setStyleName("HeaderLabel");
            addMember(titleImage);
            addMember(titleElement);
            setMembersMargin(10);
        }
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.