Package com.smartgwt.client.widgets

Examples of com.smartgwt.client.widgets.Label


        this.hlayout.setAlign(Alignment.LEFT);

        if (!this.isReadOnly) {
            // LEFT SIDE
            this.messageLayout = new Label();
            this.messageLayout.setMargin(3);
            this.messageLayout.setAutoHeight();
            addMember(this.messageLayout);
            this.availableFilterForm = getAvailableFilterForm();
            if (this.availableFilterForm != null) {
View Full Code Here


        EnhancedVLayout layout = new EnhancedVLayout();
        layout.setLayoutAlign(Alignment.CENTER);
        layout.setLayoutMargin(10);

        warningLabel = new Label();
        warningLabel.setContents("");
        warningLabel.setAlign(Alignment.CENTER);
        warningLabel.setStyleName("WarnBlock");
        warningLabel.setAutoHeight();
        warningLabel.setWidth100();
View Full Code Here

    @Override
    protected Canvas buildResultsSection(GroupOperationHistory operationHistory) {
        EnhancedVLayout resultsSection = new EnhancedVLayout();

        Label title = new Label("<h4>" + MSG.view_operationHistoryDetails_results() + "</h4>");
        title.setHeight(27);
        resultsSection.addMember(title);

        GroupMemberResourceOperationHistoryListView memberHistoryListView = new GroupMemberResourceOperationHistoryListView(
            this.groupComposite, getOperationHistory().getId());
        memberHistoryListView.setOverflow(Overflow.VISIBLE);
View Full Code Here

    protected Canvas buildResultsSection(ResourceOperationHistory operationHistory) {
        OperationRequestStatus status = operationHistory.getStatus();
        if (status == OperationRequestStatus.SUCCESS || status == OperationRequestStatus.FAILURE) {
            EnhancedVLayout resultsSection = new EnhancedVLayout();

            Label title = new Label("<h4>" + MSG.view_operationHistoryDetails_results() + "</h4>");
            title.setHeight(27);
            resultsSection.addMember(title);

            OperationDefinition operationDefinition = operationHistory.getOperationDefinition();
            ConfigurationDefinition resultsConfigurationDefinition = operationDefinition
                .getResultsConfigurationDefinition();
            if (resultsConfigurationDefinition != null
                && !resultsConfigurationDefinition.getPropertyDefinitions().isEmpty()
                && operationHistory.getResults() != null) {
                ConfigurationEditor editor = new ConfigurationEditor(
                    operationDefinition.getResultsConfigurationDefinition(), operationHistory.getResults());
                editor.setPreserveTextFormatting(true);
                editor.setReadOnly(true);
                resultsSection.addMember(editor);
            } else {
                Label noResultsLabel = new Label(MSG.view_operationHistoryDetails_noResults());
                noResultsLabel.setHeight(17);
                resultsSection.addMember(noResultsLabel);
            }

            return resultsSection;
        } else {
View Full Code Here

        layout.setVPolicy(LayoutPolicy.FILL);

        if (c != null) {
            layout.addMember(c);
        } else {
            layout.addMember(new Label(MSG.view_portlet_help_none()));
        }

        addItem(layout);
    }
View Full Code Here

        DashboardPortlet storedPortlet = portletWindow.getStoredPortlet();

        if (BrowserUtility.isBrowserPreIE9()) {
            removeMembers(getMembers());
            addMember(new Label("<i>" + MSG.chart_ie_not_supported() + "</i>"));

        } else {

            PropertySimple simple = storedPortlet.getConfiguration().getSimple(CFG_RESOURCE_ID);
            if (simple == null || simple.getIntegerValue() == null) {
                removeMembers(getMembers());
                addMember(new Label("<i>" + MSG.view_portlet_configure_needed() + "</i>"));
            } else {
                super.onDraw();
            }
        }
    }
View Full Code Here

        DashboardPortlet storedPortlet = portletWindow.getStoredPortlet();
        PropertySimple simple = storedPortlet.getConfiguration().getSimple(CFG_RESOURCE_ID);

        if (simple == null || simple.getIntegerValue() == null) {
            removeMembers(getMembers());
            addMember(new Label("<i>" + MSG.view_portlet_configure_needed() + "</i>"));
        } else {
            graph.getMetricGraphData().setEntityId(simple.getIntegerValue());
            PropertySimple simpleDefId = storedPortlet.getConfiguration().getSimple(CFG_DEFINITION_ID);
            graph.getMetricGraphData().setDefinitionId(simpleDefId.getIntegerValue());
            Log.debug("Redraw Portlet for entityId: " + simple.getIntegerValue() + "-" + simpleDefId.getIntegerValue());
View Full Code Here

    private void prepareAssignmentsSection(SectionStack stack, PageList<PartitionEventDetails> eventDetails) {
        SectionStackSection section = new SectionStackSection(
            MSG.view_adminTopology_partitionEventsDetail_agentAssignments());
        section.setExpanded(true);
        if (eventDetails == null || eventDetails.size() == 0) {
            Label nothing = new Label(MSG.view_adminTopology_partitionEventsDetail_agentAssignments_nothing());
            nothing.setMargin(10);
            section.setItems(nothing);
        } else {
            // there is no need for datasource, it is a simple table with two columns
            ListGrid assignments = new ListGrid();
            ListGridField agentName = new ListGridField("agentName", MSG.view_adminTopology_agent_agentName());
View Full Code Here

            // The ListGrid has been created and configured
            // Now give subclasses a chance to configure the carousel
            configureCarousel();

            Label carouselInfo = new Label();
            carouselInfo.setWrap(false);
            setCarouselInfo(carouselInfo);

            if (showTitle) {
                drawTitle();
            }
View Full Code Here

        if (def != null) {
            ConfigurationEditor configEditor = new ConfigurationEditor(def, config);
            operationArgumentsCanvasItem.addMember(configEditor);
        } else {
            Label l = new Label(MSG.view_alert_definition_notification_operation_editor_operations_no_parameters());
            l.setWrap(false);
            operationArgumentsCanvasItem.addMember(l);
        }

        markForRedraw();
    }
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.Label

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.