Package com.smartgwt.client.widgets.layout

Examples of com.smartgwt.client.widgets.layout.Layout


    private void switchToAlertSender(String newAlertSender) {
        AbstractNotificationSenderForm newCanvas = createNotificationSenderForm(newAlertSender);
        // wipe existing DOM to avoid id conflicts. Use this flag to avoid having getCanvas() general a default
        // Canvas on the first "switch".
        if (senderCanvasInitialized) {
            Layout senderLayout = (Layout) senderCanvasItem.getCanvas();
            EnhancedUtility.destroyMembers(senderLayout);
            senderLayout.destroy();
        }
        senderCanvasInitialized = true;
        senderCanvasItem.setCanvas(newCanvas);
        markForRedraw();
    }
View Full Code Here


    }

    @Override
    protected void onInit() {
        super.onInit();
        Layout layout = new VLayout();
        layout.setPadding(5);
        layout.setMembersMargin(5);
        layout.addMember(getConnectionForm());
        layout.setDefaultLayoutAlign(Alignment.CENTER);
        layout.setLayoutAlign(Alignment.CENTER);

        if (this.showInstallButton) {
            agentConfigXmlUploadForm = createAgentConfigXmlUploadForm();
            layout.addMember(agentConfigXmlUploadForm);
            /* For now, don't allow users to upload and ship their own env script to a remote machine; that might have security implications.
             * If we want to allow this, just uncomment these lines and you are good to go because everything else that is needed
             * is already in place and working as of April 2014.
            rhqAgentEnvUploadForm = createAgentEnvUploadForm();
            layout.addMember(rhqAgentEnvUploadForm);
            */
        }

        HTMLFlow header = new HTMLFlow("");
        header.setStyleName("headerItem");
        header.setExtraSpace(5);
        layout.addMember(header);
        layout.addMember(getButtons());

        addMember(layout);

    }
View Full Code Here

    @Override
    protected void editTemplates(final ResourceType type, ViewPath viewPath) {
        new PermissionsLoader().loadExplicitGlobalPermissions(new PermissionsLoadedListener() {

            public void onPermissionsLoaded(Set<Permission> permissions) {
                Layout metricCanvas = getCanvas();
                TemplateSchedulesView templateSchedulesView = new TemplateSchedulesView(type, permissions);
                prepareSubCanvas(metricCanvas, templateSchedulesView, true);
                switchToCanvas(MetricTemplateTypeView.this, metricCanvas);
            }
        });
View Full Code Here

    protected void editTemplates(final ResourceType type, final ViewPath viewPath) {
        new PermissionsLoader().loadExplicitGlobalPermissions(new PermissionsLoadedListener() {

            public void onPermissionsLoaded(Set<Permission> permissions) {

                Layout templatesCanvas = getCanvas();
                DriftDefinitionTemplatesView view = new DriftDefinitionTemplatesView(type, permissions
                    .contains(Permission.MANAGE_SETTINGS));

                renderTemplateView(templatesCanvas, view, viewPath);
            }
View Full Code Here

    protected void editTemplates(final ResourceType type, final ViewPath viewPath) {

        new PermissionsLoader().loadExplicitGlobalPermissions(new PermissionsLoadedListener() {

            public void onPermissionsLoaded(Set<Permission> permissions) {
                final Layout alertCanvas = getCanvas();
                final TemplateAlertDefinitionsView defsView = new TemplateAlertDefinitionsView(type, permissions);
                renderTemplateAlertView(alertCanvas, defsView, viewPath);
            }
        });
    }
View Full Code Here

        sideNavLayout.addMember(sideNav);
        hLayout.addMember(sideNavLayout);

        mainTabSet = new TabSet();

        Layout paneContainerProperties = new Layout();
        paneContainerProperties.setLayoutMargin(0);
        paneContainerProperties.setLayoutTopMargin(1);
        mainTabSet.setPaneContainerProperties(paneContainerProperties);

        mainTabSet.setWidth100();
        mainTabSet.setHeight100();
        mainTabSet.addTabSelectedHandler(new TabSelectedHandler() {
View Full Code Here

            topBar.addSpacer(new ToolStripSpacer(6));
            addMember(topBar);
        }

        boolean topIntro = isTopIntro();
        Layout layout = topIntro ? new VLayout() : new HLayout();

        layout.setWidth100();
        layout.setMargin(10);
        layout.setMembersMargin(10);

        viewPanel = getViewPanel();
        HLayout wrapper = new HLayout();
        wrapper.setWidth100();
        wrapper.addMember(viewPanel);

        String intro = getIntro();
        if (intro != null) {
            Window introWindow = new Window();
            introWindow.setTitle("Overview");
            introWindow.setHeaderIcon("pieces/16/cube_green.png", 16, 16);
            introWindow.setKeepInParentRect(true);

            String introContents = "<p class='intro-para'>" + intro + "</p>";
            Canvas contents = new Canvas();
            contents.setCanSelectText(true);
            contents.setPadding(10);
            contents.setContents(introContents);
            if (topIntro) {
                contents.setWidth100();
            } else {
                contents.setDefaultWidth(200);
            }

            introWindow.setAutoSize(true);
            introWindow.setAutoHeight();
            introWindow.addItem(contents);

            if (topIntro) {
                layout.addMember(introWindow);
                layout.addMember(wrapper);
            } else {
                layout.addMember(wrapper);
                layout.addMember(introWindow);
            }
        } else {
            addMember(wrapper);
        }
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.layout.Layout

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.