Package com.smartgwt.client.widgets

Examples of com.smartgwt.client.widgets.Window


        detail.setTitleVAlign(VerticalAlignment.TOP);
        detail.setValue(message.detailedMessage);

        form.setItems(title, severity, date, rootCause, detail);

        final Window dialogWin = new Window();
        dialogWin.setTitle(MSG.common_title_message());
        dialogWin.setWidth(600);
        dialogWin.setHeight(400);
        dialogWin.setIsModal(true);
        dialogWin.setShowModalMask(true);
        dialogWin.setCanDragResize(true);
        dialogWin.setShowMaximizeButton(true);
        dialogWin.setShowMinimizeButton(false);
        dialogWin.centerInPage();
        dialogWin.addItem(form);
        dialogWin.show();
        dialogWin.addCloseClickHandler(new CloseClickHandler() {
            @Override
            public void onCloseClick(CloseClickEvent event) {
                dialogWin.destroy();
            }
        });
    }
View Full Code Here


                            CoreGUI.getErrorHandler().handleError("Failed to generate diff.", caught);
                        }

                        public void onSuccess(FileDiffReport diffReport) {
                            String diffContents = DiffUtility.formatAsHtml(diffReport.getDiff(), 1, 2);
                            Window window = DiffUtility.createDiffViewerWindow(diffContents, path, 1, 2);
                            window.show();
                        }
                    });
            }

            public boolean isEnabled() {
View Full Code Here

                                for (DriftDefinitionTemplate template : type.getDriftDefinitionTemplates()) {
                                    resourceType.addDriftDefinitionTemplate(template);
                                }
                            }
                        }
                        final Window winModal = new Window();
                        winModal.setTitle(existingCondition == null ? MSG
                            .view_alert_common_tab_conditions_modal_title() : MSG
                            .view_alert_common_tab_conditions_modalEdit_title());
                        winModal.setOverflow(Overflow.VISIBLE);
                        winModal.setShowMinimizeButton(false);
                        winModal.setIsModal(true);
                        winModal.setShowModalMask(true);
                        winModal.setAutoSize(true);
                        winModal.setAutoCenter(true);
                        winModal.centerInPage();
                        winModal.addCloseClickHandler(new CloseClickHandler() {
                            @Override
                            public void onCloseClick(CloseClickEvent event) {
                                winModal.markForDestroy();
                                refreshTableInfo();
                            }
                        });

                        final int numConditions = conditions.size();
                        final ConditionEditor newConditionEditor = new ConditionEditor(conditions, modifiedConditions,
                            ConditionsEditor.this.conditionExpression, ConditionsEditor.this.resourceType,
                            existingCondition, new Runnable() {
                                @Override
                                public void run() {
                                    updated = updated || numConditions != conditions.size()
                                        || isConditionInternallyUpdated();
                                    winModal.markForDestroy();
                                    refresh();
                                }
                            });
                        winModal.addItem(newConditionEditor);
                        winModal.show();
                    }
                });
        }
View Full Code Here

        //define tool tip
        pluginErrors.setPrompt(MSG.view_resource_title_component_errors_tooltip());
        pluginErrors.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                final Window winModal = new Window();
                winModal.setShowMinimizeButton(false);
                winModal.setShowModalMask(true);
                winModal.setShowCloseButton(true);
                winModal.setWidth("70%");
                winModal.setHeight("70%");
                winModal.setIsModal(true);
                winModal.setShowResizer(true);
                winModal.setCanDragResize(true);
                winModal.centerInPage();
                winModal.setTitle(MSG.common_title_componentErrors());

                Label disposalReminder = new Label();
                disposalReminder.setHeight(12);
                disposalReminder.setPadding(4);
                disposalReminder.setAlign(Alignment.CENTER);
                disposalReminder.setValign(VerticalAlignment.CENTER);
                disposalReminder.setContents(MSG.view_resource_title_component_errors_cleanup());

                EnhancedVLayout form = new EnhancedVLayout();
                form.setAlign(VerticalAlignment.CENTER);
                form.setLayoutMargin(10);
                form.setWidth100();
                form.setHeight100();

                Resource resource = resourceComposite.getResource();
                ResourceErrorsDataSource errors = new ResourceErrorsDataSource(resource.getId());

                ResourceErrorsView errorsGrid = new ResourceErrorsView(null, ResourceTitleBar.this);

                errorsGrid.setDataSource(errors);

                form.addMember(errorsGrid);
                winModal.addItem(disposalReminder);
                winModal.addItem(form);
                winModal.setPadding(2);

                winModal.show();
            }
        });

        //loading = new Img(LOADING_ICON, 24, 24);
        // loading.setVisible(false);
View Full Code Here

        super.refresh();
        this.titleBar.refreshResourceErrors();
    }

    private void popupDetails(String details) {
        final Window winModal = new Window();
        winModal.setTitle(MSG.common_title_componentErrors());
        winModal.setOverflow(Overflow.VISIBLE);
        winModal.setShowMinimizeButton(false);
        winModal.setShowMaximizeButton(true);
        winModal.setIsModal(true);
        winModal.setShowModalMask(true);
        winModal.setAutoSize(true);
        winModal.setAutoCenter(true);
        winModal.setShowResizer(true);
        winModal.setCanDragResize(true);
        winModal.centerInPage();
        winModal.addCloseClickHandler(new CloseClickHandler() {
            public void onCloseClick(CloseClickEvent event) {
                winModal.markForDestroy();
                titleBar.refreshResourceErrors();
            }
        });

        HTMLPane htmlPane = new HTMLPane();
        htmlPane.setMargin(10);
        htmlPane.setDefaultWidth(700);
        htmlPane.setDefaultHeight(500);
        htmlPane.setContents("<pre>" + details + "</pre>");
        winModal.addItem(htmlPane);
        winModal.show();
    }
View Full Code Here

    protected String getItemIcon() {
        return IconEnum.AGENT.getIcon16x16Path();
    }

    public static void show(final Integer affinityGroupId, final TableSection<?> parrent) {
        modalWindow = new Window();
        modalWindow.addCloseClickHandler(new CloseClickHandler() {
            public void onCloseClick(CloseClickEvent event) {
                closeAndRefresh(parrent, false);
            }
        });
View Full Code Here

            public void onRecordClick(RecordClickEvent event) {
                Record record = event.getRecord();
                String statusStr = record.getAttribute(Field.STATUS);
                OperationRequestStatus status = OperationRequestStatus.valueOf(statusStr);
                if (status == OperationRequestStatus.FAILURE) {
                    final Window winModal = new Window();
                    winModal.setTitle(MSG.common_title_details());
                    winModal.setOverflow(Overflow.VISIBLE);
                    winModal.setShowMinimizeButton(false);
                    winModal.setShowMaximizeButton(true);
                    winModal.setIsModal(true);
                    winModal.setShowModalMask(true);
                    winModal.setAutoSize(true);
                    winModal.setAutoCenter(true);
                    winModal.setShowResizer(true);
                    winModal.setCanDragResize(true);
                    winModal.centerInPage();
                    winModal.addCloseClickHandler(new CloseClickHandler() {
                        @Override
                        public void onCloseClick(CloseClickEvent event) {
                            winModal.markForDestroy();
                        }
                    });

                    HTMLPane htmlPane = new HTMLPane();
                    htmlPane.setMargin(10);
                    htmlPane.setDefaultWidth(500);
                    htmlPane.setDefaultHeight(400);
                    String errorMsg = record.getAttribute(Field.ERROR_MESSAGE);
                    if (errorMsg == null) {
                        errorMsg = MSG.common_status_failed();
                    }
                    htmlPane.setContents("<pre>" + errorMsg + "</pre>");
                    winModal.addItem(htmlPane);
                    winModal.show();
                }
            }
        });

        return statusField;
View Full Code Here

        });

        form.setItems(timestamp, action, category, user, status, info, message, detail);
        form.editRecord(record);

        Window win = new ErrorMessageWindow(MSG.view_bundle_deploy_installDetails(), form);
        win.setWidth(500);
        win.show();
    }
View Full Code Here

        if (canModifyMembers) {
            addTableAction(MSG.view_groupInventoryMembers_button_updateMembership(), ButtonColor.BLUE,
                new AbstractTableAction(                TableActionEnablement.ALWAYS) {
                @Override
                public void executeAction(ListGridRecord[] selection, Object actionValue) {
                    final Window winModal = new Window();
                    winModal.setTitle(MSG.view_groupInventoryMembers_title_updateMembership());
                    winModal.setOverflow(Overflow.VISIBLE);
                    winModal.setShowMinimizeButton(false);
                    winModal.setIsModal(true);
                    winModal.setShowModalMask(true);
                    winModal.setWidth(700);
                    winModal.setHeight(450);
                    winModal.setAutoCenter(true);
                    winModal.setShowResizer(true);
                    winModal.setCanDragResize(true);
                    winModal.centerInPage();
                    winModal.addCloseClickHandler(new CloseClickHandler() {
                        @Override
                        public void onCloseClick(CloseClickEvent event) {
                            winModal.markForDestroy();
                            MembersView.this.refreshTableInfo();
                        }
                    });

                    ResourceGroupMembershipView membershipView = new ResourceGroupMembershipView(
                        MembersView.this.groupId);

                    membershipView.setSaveButtonHandler(new ClickHandler() {

                        public void onClick(ClickEvent event) {
                            winModal.markForDestroy();
                            MembersView.this.refreshTableInfo();
                            CoreGUI.refresh();
                        }
                    });

                    membershipView.setCancelButtonHandler(new ClickHandler() {

                        public void onClick(ClickEvent event) {
                            winModal.destroy();
                            MembersView.this.refreshTableInfo();
                        }
                    });

                    winModal.addItem(membershipView);
                    winModal.show();
                }
            });
        }
    }
View Full Code Here

    protected String getItemIcon() {
        return IconEnum.SERVERS.getIcon16x16Path();
    }

    public static void show(final Integer affinityGroupId, final TableSection<?> parrent) {
        modalWindow = new Window();
        modalWindow.addCloseClickHandler(new CloseClickHandler() {
            public void onCloseClick(CloseClickEvent event) {
                closeAndRefresh(parrent, false);
            }
        });
View Full Code Here

TOP

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

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.