Examples of Placement


Examples of org.apache.isis.viewer.dnd.view.Placement

                    final AdapterManager adapterManager = getPersistenceSession().getAdapterManager();
                    serviceAdapters.add(adapterManager.adapterFor(servicePojo));
                }
                final ObjectSpecification spec = getSpecificationLoader().loadSpecification(Object.class);
                final FreeStandingList collection = new FreeStandingList(spec, serviceAdapters);
                addWindowFor(getAdapterManager().adapterFor(collection), new Placement(at));
            }

        });

        menuForChangingLook(options);
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Placement

            }
        });
    }

    private void openIcon() {
        getWorkspace().addWindowFor(getContent().getAdapter(), new Placement(getLocation()));
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Placement

    }

    public void showDialog(final MessageContent content) {
        final ViewRequirement requirement = new ViewRequirement(content, ViewRequirement.OPEN);
        final View view = Toolkit.getViewFactory().createView(requirement);
        rootView.getWorkspace().addDialog(view, new Placement(Placement.CENTER));
        scheduleRepaint();
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Placement

     */
    @Override
    public void drop(final ContentDrag drag) {
        final ObjectAdapter result = getContent().drop(drag.getSourceContent());
        if (result != null) {
            objectActionResult(result, new Placement(this));
        }
        getState().clearObjectIdentified();
        getFeedbackManager().showMessagesAndWarnings();

        markDamaged();
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Placement

            click.subtract(subview.getLocation());
            subview.secondClick(click);
        } else {
            final Location location = getAbsoluteLocation();
            location.translate(click.getLocation());
            getWorkspace().addWindowFor(getContent().getAdapter(), new Placement(this));
        }
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Placement

                        if (!(content instanceof FieldContent)) {
                            content = Toolkit.getContentFactory().createRootContent(content.getAdapter());
                        }
                        final View newView = newSpec.createView(content, view.getViewAxes(), -1);
                        LOG.debug("open view " + newView);
                        workspace.addWindow(newView, new Placement(view));
                        workspace.markDamaged();

                        Options viewOptions = Properties.getViewConfigurationOptions(newSpec);
                        newView.saveOptions(viewOptions);
                        viewOptions = Properties.getUserViewSpecificationOptions(newSpec.getName());
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Placement

                    content = new CollectionActionContent(helper);
                } else {
                    throw new UnknownTypeException(target);
                }
                final View dialog = Toolkit.getViewFactory().createDialog(content);
                workspace.addDialog(dialog, new Placement(view));
            }

            @Override
            public String getDescription() {
                return "Preparing action " + getName() + " on  " + view.getContent().getAdapter();
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Placement

                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)));
            }
        });

        options.add(new UserActionAbstract("Log out") {
            @Override
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Placement

    @Override
    public void secondClick(final Click click) {
        final int y = click.getLocation().getY();
        if (y < top) {
            getWorkspace().addWindowFor(getContent().getAdapter(), new Placement(this));
        } else {
            super.secondClick(click);
        }
    }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.view.Placement

        BackgroundWork.runTaskInBackground(view, new BackgroundTask() {
            @Override
            public void execute() {
                ObjectAdapter result;
                result = action.execute(target, null);
                view.objectActionResult(result, new Placement(view));
                view.getViewManager().disposeUnneededViews();
                view.getFeedbackManager().showMessagesAndWarnings();
            }

            @Override
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.