Package org.apache.isis.viewer.dnd.help

Examples of org.apache.isis.viewer.dnd.help.AboutView


    @Override
    public void menuOptions(final UserActionSet options) {
        options.add(new UserActionAbstract("About...") {
            @Override
            public void execute(final Workspace workspace, final View view, final Location at) {
                final AboutView dialogView = new AboutView();
                final Size windowSize = dialogView.getRequiredSize(new Size());
                final Size workspaceSize = workspace.getSize();
                final int x = workspaceSize.getWidth() / 2 - windowSize.getWidth() / 2;
                final int y = workspaceSize.getHeight() / 2 - windowSize.getHeight() / 2;
                workspace.addDialog(dialogView, new Placement(new Location(x, y)));
            }
View Full Code Here

TOP

Related Classes of org.apache.isis.viewer.dnd.help.AboutView

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.