Package org.jitterbit.ui.widget.overlay

Examples of org.jitterbit.ui.widget.overlay.OverlayDecorator$OkAction


            overlay = createOverlay();
        }

        private OverlayDecorator createOverlay() {
            JComponent ui = createUi();
            OverlayDecorator overlay = new OverlayDecorator(ui, "Zoom level");
            overlay.setBlocking(true);
            overlay.useCloseOnly();
            overlay.setFadeIn(AnimationPreference.get());
            overlay.setAlpha(0.75f);
            return overlay;
        }
View Full Code Here


        if (this.container != null) {
            // Already showing
            return;
        }
        this.container = container;
        OverlayDecorator decorator = createOverlay();
        decorator.show(container, new OverlayCenterPositioner());
    }
View Full Code Here

        OverlayDecorator decorator = createOverlay();
        decorator.show(container, new OverlayCenterPositioner());
    }

    private OverlayDecorator createOverlay() {
        OverlayDecorator decorator = new InputPanelOverlay(panel, "Operation Options") {

            @Override
            protected void onHidden() {
                panel.dispose();
            }

            @Override
            protected void onOk() {
                receiver.handle(panel.getDefinedOptions());
            }

            @Override
            protected void onCancel() {
                receiver.handle(null);
            }
           
        };
        decorator.setFadeIn(AnimationPreference.get());
        decorator.setBlocking(true);
        decorator.useOkAndCancel();
        return decorator;
    }
View Full Code Here

    }
   
    private OverlayDecorator buildOverlay() {
        JComponent content = BorderLayoutBuilder.fillWith(pwdUi);
        content.setBorder(Empty.border(10, 10, 0, 10));
        OverlayDecorator overlay = new OverlayDecorator(content, null) {

            @Override
            protected void onCancel() {
                dispose(null);
            }

            @Override
            protected void onOk() {
                if (pwdUi.validate()) {
                    char[] pwd = pwdUi.getPassword();
                    dispose(pwd);
                } else {
                    redisplay();
                }
            }
        };
        overlay.useOkAndCancel();
        overlay.setBlocking(true);
        overlay.setFadeIn(AnimationPreference.get());
        overlay.setFocusReceiverWhenClosed(focusReceiverWhenClosed);
        return overlay;
    }
View Full Code Here

        }

        private OverlayDecorator createOverlay() {
            JComponent content = getEditorLayout(textArea);
            content.setBorder(Empty.border(10, 10, 0, 10));
            OverlayDecorator decorator = new OverlayDecorator(content, title) {

                @Override
                protected void onCancel() {
                    receiver.handle(null);
                }

                @Override
                protected void onOk() {
                    receiver.handle(textArea.getText());
                }
            };
            decorator.useOkAndCancel();
            decorator.setBlocking(modal);
            decorator.setFadeIn(AnimationPreference.get());
            return decorator;
        }
View Full Code Here

    protected void run(Object selected, ActionEvent evt) {
        if (result == null) {
            return;
        }
        UiProvider ui = EntityValidationResultDisplayerFactory.newListDisplayer(result);
        OverlayDecorator overlay = new OverlayDecorator(ui, Strings.get("ValidationMessages.Title"));
        overlay.setBlocking(true);
        overlay.setAlpha(0.75f);
        overlay.setFadeIn(AnimationPreference.get());
        overlay.useCloseOnly();
        Point p = graph.getLayout().getBounds(selected).getLocation();
        p.x += 10;
        p.y += 10;
        overlay.show(graph.getOverlayContainer(), new OverlayAbsolutePositioner(p));
    }
View Full Code Here

    private class OverlayPrompt {
       
        private PointInputPanel inputPanel;
       
        public void run(Point currentLocation) {
            OverlayDecorator overlay = createOverlay(currentLocation);
            overlay.show(getContainer(), new OverlayCenterPositioner());
            inputPanel.setInitialFocus();
        }
View Full Code Here

            return controller.getGraph().getOverlayContainer();
        }
       
        private OverlayDecorator createOverlay(Point p) {
            inputPanel = new PointInputPanel(p, null);
            OverlayDecorator overlay = new InputPanelOverlay(inputPanel, "Set New Coordinates") {

                @Override
                protected void onOk() {
                    Point p = inputPanel.isInputValid() ? inputPanel.getNewCoordinates() : null;
                    applyNewPoint(p);
                }
            };
            overlay.setFadeIn(AnimationPreference.get());
            overlay.useOkAndCancel();
            bindOkAction(overlay);
            return overlay;
        }
View Full Code Here

            this.container = container;
        }

        @Override
        public void display() {
            OverlayDecorator overlay = createOverlay();
            overlay.show(container, getPositioner());
        }
View Full Code Here

        }

        private OverlayDecorator createOverlay() {
            BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 10).setBorder(Empty.border(0, 10, 0, 10));
            layoutTable(layout, table);
            OverlayDecorator overlay = new OverlayDecorator(layout, "Invalid Mappings") {

                @Override
                protected void onOk() {
                    applyChanges();
                }
            };
            overlay.setBlocking(true);
            overlay.setFillHorizontally(true);
            overlay.useOkAndCancel();
            return overlay;
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.widget.overlay.OverlayDecorator$OkAction

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.