Package org.jitterbit.application.ui.view

Examples of org.jitterbit.application.ui.view.View


    private final class ViewListener extends ViewManagerAdapter {

        @Override
        public void viewIsDisplayed(ViewManagerEvent evt) {
            View view = evt.getView();
            appWin.displayView(view);
        }
View Full Code Here


    }

    @Override
    public void removeView(String viewID) {
        if (visibleViews.contains(viewID)) {
            View view = viewMap.get(viewID);
            removeViewImpl(view);
        }
    }
View Full Code Here

            } catch (InterruptedException ex) {
                Thread.currentThread().interrupt();
                throw new RuntimeException("The thread was interrupted before necessary initialization was completed.");
            }
            // First we check if this view has been initialized:
            View view = viewMap.get(viewID);
            if (view == null) {
                // The view has not been initialized. Make an attempt to initialize the view now.
                view = initializeView(viewID);
                if (view == null) {
                    throw new RuntimeException("Unknown view ID: " + viewID);
View Full Code Here

            return view;
        }

        private View initializeView(String viewID) {
            ViewShell shell = viewIdToShell.get(viewID);
            View view = null;
            if (shell != null) {
                view = UiThreadSupplier.call(new ViewSupplier(shell.getID()));
                viewMap.put(viewID, view);
            }
            return view;
View Full Code Here

    private final class Listener extends ViewManagerAdapter {

        @Override
        public void viewIsDisplayed(ViewManagerEvent evt) {
            View view = evt.getView();
            if (view.getID().equals(viewId)) {
                encapsulatedAction = createAction(actionId, view);
                transferActionProperties();
                listenToActionChanges();
            }
        }
View Full Code Here

            }
        }

        @Override
        public void viewWasRemoved(ViewManagerEvent evt) {
            View view = evt.getView();
            if (view.getID().equals(viewId)) {
                stopListeningToActionChanges();
                encapsulatedAction = null;
                setEnabled(false);
            }
        }
View Full Code Here

        // Not applicable.
    }

    @Override
    public void viewIsDisplayed(ViewManagerEvent evt) {
        View view = evt.getView();
        if (view.getID().equals(AdministrationView.VIEW_ID)) {
            transferActionProperties();
            ActionEvent pendingActionEvt = getPendingActionEvent();
            if (pendingActionEvt != null) {
                setPendingActionEvent(null);
                encapsulatedAction.actionPerformed(pendingActionEvt);
View Full Code Here

        }
    }

    @Override
    public void viewWasRemoved(ViewManagerEvent evt) {
        View view = evt.getView();
        if (view.getID().equals(AdministrationView.VIEW_ID)) {
            encapsulatedAction = null;
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.application.ui.view.View

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.