Examples of Placement


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

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

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

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

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

        @Override
        public void execute(final Workspace workspace, final View view, final Location at) {
            final ObjectAdapter object = view.getContent().getAdapter();
            final ObjectSpecification spec = object.getSpecification();
            final ObjectAdapter instances = IsisContext.getPersistenceSession().findInstances(new QueryFindAllInstances(spec.getFullIdentifier()), QueryCardinality.MULTIPLE);
            workspace.objectActionResult(instances, new Placement(view));
        }
View Full Code Here

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

                    // clone.setValue((OneToOneAssociation) fields[i],
                    // fld.getObject());
                }
            }

            workspace.objectActionResult(clone, new Placement(view));
        }
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

        workspace.clearServiceViews();

        final PerspectiveEntry perspective = perspectiveContent.getPerspective();
        for (final Object object : perspective.getObjects()) {
            final ObjectAdapter adapter = IsisContext.getPersistenceSession().getAdapterManager().adapterFor(object);
            workspace.addIconFor(adapter, new Placement(ApplicationWorkspaceBuilder.UNPLACED));
        }

        for (final Object service : perspective.getServices()) {
            final ObjectAdapter adapter = IsisContext.getPersistenceSession().getAdapterManager().adapterFor(service);
            if (isHidden(adapter)) {
View Full Code Here

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

        ;
        final int x = click.getLocation().getX();
        if (x <= left) {
            final Location location = getAbsoluteLocation();
            location.translate(click.getLocation());
            getWorkspace().objectActionResult(getContent().getAdapter(), new Placement(this));
        } else {
            super.secondClick(click);
        }
    }
View Full Code Here

Examples of org.openpnp.model.Placement

            if (e.getValueIsAdjusting()) {
              return;
            }
            placementSelectionActionGroup
                .setEnabled(getSelectedPlacement() != null);
            Placement placement = getSelectedPlacement();
            CameraView cameraView = MainFrame.cameraPanel.getSelectedCameraView();
            if (cameraView != null) {
                          if (placement != null) {
                                Reticle reticle = new PackageReticle(placement.getPart().getPackage());
                                cameraView.setReticle(JobPanel.this.getClass().getName(), reticle);
                          }
                          else {
                              cameraView.removeReticle(JobPanel.this.getClass().getName());
                          }
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.