Package org.apache.isis.viewer.dnd.view

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


            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


                } else if (fields.get(i).isOneToManyAssociation()) {
                    // clone.setValue((OneToOneAssociation) fields[i], fld.getObject());
                }
            }

            workspace.objectActionResult(clone, new Placement(view));
        }
View Full Code Here

                        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

            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

TOP

Related Classes of org.apache.isis.viewer.dnd.view.Placement

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.