Package org.jitterbit.ui.widget.overlay

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


            @Override
            public void run() {
                JComponent content = BorderLayoutBuilder.fillWith(ui);
                content.setBorder(Empty.border(10));
                OverlayDecorator decorator = new OverlayDecorator(content,
                        Strings.get("Connection.MatchingFiles.Title"));
                decorator.setAlpha(0.8f);
                decorator.useCloseOnly();
                decorator.setBlocking(true);
                decorator.show(container, new OverlayCenterPositioner());
            }
        });
    }
View Full Code Here


            }
        }

        private void showInOverlay(UiProvider ui) {
            appWin.getEditorService().openEditor(page);
            OverlayDecorator overlay = createOverlay(ui);
            overlay.show(page.getOverlayContainer(), new OverlayCenterPositioner());
        }
View Full Code Here

            this.container = container;
        }

        @Override
        public void show(NodeRenamerPanel panel) {
            OverlayDecorator overlay = createOverlay(panel);
            overlay.show(container, new OverlayCenterPositioner());
            panel.requestFocus();
        }
View Full Code Here

            overlay.show(container, new OverlayCenterPositioner());
            panel.requestFocus();
        }

        private OverlayDecorator createOverlay(final NodeRenamerPanel panel) {
            OverlayDecorator overlay = new InputPanelOverlay(panel, "Rename Node") {

                @Override
                protected void onOk() {
                    applyNewName(panel.getNewName());
                }
            };
            overlay.setFocusReceiverWhenClosed(node.getTreeMapper());
            overlay.setFadeIn(AnimationPreference.get());
            overlay.setAlpha(0.8f);
            overlay.useOkAndCancel();
            overlay.setBlocking(true);
            bindOkAction(overlay, panel);
            return overlay;
        }
View Full Code Here

            overlay.show(page.getOverlayContainer(), new OverlayCenterPositioner());
        }

        private OverlayDecorator createOverlay(UiProvider ui) {
            JComponent content = new BorderLayoutBuilder(ui).setBorder(Empty.border(10)).container();
            OverlayDecorator overlay = new OverlayDecorator(content, title) {

                @Override
                protected void onHidden() {
                    page.requestFocus();
                }
            };
            overlay.setBlocking(true);
            overlay.useCloseOnly();
            overlay.setFadeIn(AnimationPreference.get());
            overlay.setAlpha(0.8f);
            return overlay;
        }
View Full Code Here

    private void showOverlay(UiProvider ui, String title, Icon icon, final Memento memento) {
        removeOverlay();
        JComponent content = BorderLayoutBuilder.fillWith(ui);
        content.setBorder(Empty.border(10));
        OverlayDecorator overlay = new OverlayDecorator(content, title) {

            @Override
            protected void onCancel() {
                memento.restore();
            }
        };
        overlay.setTitleIcon(icon);
        overlay.useOkAndCancel();
        overlay.setOkAsDefault(true);
        overlay.show(container, new OverlayCenterPositioner());
        ui.requestFocus();
        currentOverlay = overlay;
    }
View Full Code Here

                    super.setValid(valid);
                    updateOkState();
                }
            };
            BorderLayoutBuilder layout = new BorderLayoutBuilder(panel).setBorder(Empty.border(10));
            overlay = new OverlayDecorator(layout, "Mapping Options") {

                @Override
                protected void onOk() {
                    panel.apply();
                }
View Full Code Here

            table.setVisibleRows(16);
        }

        @Override
        public void show(String title, String caption) {
            OverlayDecorator overlay = createOverlay(title, caption);
            overlay.show(container, new OverlayCenterPositioner());
            table.requestFocus();
        }
View Full Code Here

        private OverlayDecorator createOverlay(String title, String caption) {
            BorderLayoutBuilder layout = new BorderLayoutBuilder(0, 5);
            FilterField filterField = new FilterField(table);
            layout.northToSouth(caption, table, filterField).setBorder(Empty.border(10));
            OverlayDecorator decorator = new OverlayDecorator(layout, title) {

                @Override
                protected void onOk() {
                    Set<CROM> selected = Sets.newHashSet(table.getSelectedObjects());
                    applySelection(selected);
                }

                @Override
                protected void onHidden() {
                    giveFocusToTree();
                }
            };
            decorator.setFocusReceiverWhenClosed(owner);
            decorator.setFadeIn(AnimationPreference.get());
            decorator.setAlpha(0.8f);
            decorator.useOkAndCancel();
            decorator.setBlocking(true);
            return decorator;
        }
View Full Code Here

     */
    public static void selectFromOverlay(final Receiver<Date> callback, OverlayContainer container, Date initialDate,
                    OverlayPositioner positioner, String title) {
        final DatePicker picker = new DatePicker(initialDate);
        picker.displayer.setBorder(Empty.border(10));
        OverlayDecorator overlay = new OverlayDecorator(picker, title) {

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

            @Override
            protected void onOk() {
                callback.handle(picker.getSelectedDate());
            }
        };
        overlay.setBlocking(true);
        overlay.useOkAndCancel();
        overlay.show(container, (positioner != null ? positioner : new OverlayCenterPositioner()));
    }
View Full Code Here

TOP

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

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.