Package org.jitterbit.ui.input

Examples of org.jitterbit.ui.input.InputPanelOverlay


    protected void overlayRemoved() {
        // Default does nothing
    }

    private OverlayDecorator createOverlay(final HttpPropertiesPanel panel) {
        OverlayDecorator decorator = new InputPanelOverlay(panel, getTitle()) {

            @Override
            protected void onOk() {
                updateProperties(panel);
            }

            @Override
            protected void onHidden() {
                overlayRemoved();
            }
        };
        decorator.setFadeIn(AnimationPreference.get());
        decorator.setAlpha(0.8f);
        decorator.setBlocking(true);
        decorator.useOkAndCancel();
        return decorator;
    }
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

            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

            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

            this.container = container;
        }

        @Override
        public void open(final FileFilterOptionsPanel panel) {
            InputPanelOverlay overlay = new InputPanelOverlay(panel, Strings.get("FileFilterOptions.Title")) {

                @Override
                protected void onOk() {
                    updateOptions(panel.getOptions(), true);
                }
            };
            overlay.setFocusReceiverWhenClosed(trigger);
            overlay.setFadeIn(AnimationPreference.get());
            overlay.setAlpha(0.8f);
            overlay.useOkAndCancel();
            overlay.setBlocking(true);
            overlay.show(container, new OverlayRelativePositioner(trigger, new Point(8, 8)));
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.ui.input.InputPanelOverlay

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.