Examples of OverlayAlert


Examples of org.jitterbit.ui.widget.overlay.OverlayAlert

        }

        private void showMessage() {
            String message = "<html>One or more project items referred to in this formula were renamed or "
                            + "moved to a new folder.<br><br>The script has been updated accordingly.</html>";
            OverlayAlert alert = new OverlayAlert(message, AlertIcons.INFO, "Automatic Change");
            alert.setAlpha(0.75f);
            alert.show(container);
            // TODO: The TransformationPage should ask for attention
        }
View Full Code Here

Examples of org.jitterbit.ui.widget.overlay.OverlayAlert

            this.container = container;
        }

        @Override
        public void display() {
            new OverlayAlert(layout(), "Documentation").show(container, getPositioner());
        }
View Full Code Here

Examples of org.jitterbit.ui.widget.overlay.OverlayAlert

     * @return <code>true</code> if the dialog was displayed
     * @since 3.0.0
     */
    public boolean showAsOverlay(OverlayContainer container) {
        if (pref.get()) {
            OverlayAlert alert = new OverlayAlert(createUi(), title) {

                @Override
                protected void onClosed() {
                    updatePreference();
                }
            };
            alert.show(container);
            return true;
        } else {
            return false;
        }
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.overlay.OverlayAlert

    public void open(final GenericEditor page) {
        if (ShowMappingMessagePreference.skipMessage()) {
            return;
        }
        OverlayAlert alert = new OverlayAlert(layout, title) {

            @Override
            protected void onClosed() {
                updatePreference();
                page.requestFocus();
            }

            private void updatePreference() {
                if (doNotShowAgain.isSelected()) {
                    ShowMappingMessagePreference.INSTANCE.set(false);
                }
            }
        };
        alert.show(page.getOverlayContainer());
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.overlay.OverlayAlert

    }
   
    public void show() {
        String title = "Invalid Data";
        if (container != null) {
            OverlayAlert alert = new OverlayAlert(message, title);
            alert.setTitleIcon(AlertIcons.ERROR);
            alert.show(container);
        } else {
            Alert.error(message, title);
        }
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.overlay.OverlayAlert

        }
        String title = "Non-Admin User";
        String message = "<html>The current user does not have administration privileges on the server " +
            model.getCurrentServer().getName() + ".<br>No changes to the users and groups can be made.</html>";
        if (overlayContainer != null) {
            OverlayAlert alert = new OverlayAlert(message, title);
            alert.setTitleIcon(AlertIcons.WARNING);
            alert.show(overlayContainer);
        } else {
            Alert.warning(message, title);
        }
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.overlay.OverlayAlert

        }
        String title = "Non-Admin User";
        String message = "<html>The current user does not have administration privileges on the server " +
            model.getCurrentServer().getName() + ".<br>Please log in as an administrator to save the changes.</html>";
        if (overlayContainer != null) {
            OverlayAlert alert = new OverlayAlert(message, title);
            alert.setTitleIcon(AlertIcons.ERROR);
            alert.show(overlayContainer);
        } else {
            Alert.error(message, title);
        }
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.overlay.OverlayAlert

            @Override
            public void run() {
                OverlayContainer container = getResultContainer(testedEntity);
                if (container != null) {
                    OverlayAlert alert = createOverlay(message, title);
                    alert.show(container);
                } else {
                    NonBlockingAlert.info(message, title);
                }
            }

            private OverlayAlert createOverlay(final String message, final String title) {
                Icon icon = (Icon) getValue(SMALL_ICON);
                OverlayAlert alert = new OverlayAlert(message, icon, title) {

                    @Override
                    protected void configureOverlay(OverlayDecorator decorator) {
                        super.configureOverlay(decorator);
                        decorator.setAlpha(0.8f);
View Full Code Here

Examples of org.jitterbit.ui.widget.overlay.OverlayAlert

     * @param askForAttention
     *            if <code>true</code> the page will ask for attention, e.g. by flashing its
     *            corresponding tab, in case it is not active at the moment
     */
    public final void showOverlayMessage(String title, String message, boolean askForAttention) {
        OverlayAlert alert = new OverlayAlert(message, AlertIcons.INFO, title);
        alert.setAlpha(0.75f);
        alert.show(getOverlayContainer());
        if (askForAttention) {
            askForAttention();
        }
    }
View Full Code Here

Examples of org.jitterbit.ui.widget.overlay.OverlayAlert

            this.container = container;
        }

        @Override
        public void display(final DependenciesDisplayer ui, final String title) {
            overlay = new OverlayAlert(ui, title) {

                @Override
                protected void configureOverlay(OverlayDecorator decorator) {
                    super.configureOverlay(decorator);
                    if (AnimationPreference.get()) {
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.