Package org.noos.xing.mydoggy

Examples of org.noos.xing.mydoggy.MultiSplitConstraint


    @Override
    protected void doAddPageComponent(PageComponent pageComponent) {
        Assert.notNull(pageComponent);

        // If we have at least one content, then dock into that one!
        MultiSplitConstraint constraint;
        if (contentAndPageComponentById.values().iterator().hasNext()) {
            constraint = new MultiSplitConstraint(contentAndPageComponentById.values().iterator().next().getKey());
        } else {
            constraint = new MultiSplitConstraint(AggregationPosition.DEFAULT);
        }

        // Create and register a new content to the mydoggy layout manager
        Content c = contentManager.addContent(
                pageComponent.getId(),
View Full Code Here


        this.multiSplitContainer = multiSplitContainer;
    }

    public void setConstraints(Object... constraints) {
        if (constraints.length > 0 && constraints[0] instanceof MultiSplitConstraint) {
            MultiSplitConstraint multiSplitConstraint = (MultiSplitConstraint) constraints[0];

            multiSplitContainer.setConstraints(content,
                                               content.getComponent(),
                                               multiSplitConstraint.getAggregationContent(),
                                               multiSplitConstraint.getAggregationIndexLocation(),
                                               multiSplitConstraint.getAggregationPosition());
        }
    }
View Full Code Here

        this.showAlwaysTab = true;
    }

    public void setConstraints(Object... constraints) {
        if (constraints.length > 0 && constraints[0] instanceof MultiSplitConstraint) {
            MultiSplitConstraint multiSplitConstraint = (MultiSplitConstraint) constraints[0];

            multiSplitContainer.setConstraints(content,
                                               content.getComponent(),
                                               multiSplitConstraint.getAggregationContent(),
                                               multiSplitConstraint.getAggregationIndexLocation(),
                                               multiSplitConstraint.getAggregationPosition());
        }
    }
View Full Code Here

    }


    public void setConstraints(Object... constraints) {
        if (constraints.length > 0 && constraints[0] instanceof MultiSplitConstraint) {
            MultiSplitConstraint multiSplitConstraint = (MultiSplitConstraint) constraints[0];

            multiSplitContainer.setConstraints(content,
                                               content.getComponent(),
                                               multiSplitConstraint.getOnContent(),
                                               multiSplitConstraint.getOnIndex(),
                                               multiSplitConstraint.getOnPosition());
        }
    }
View Full Code Here

        this.showAlwaysTab = true;
    }

    public void setConstraints(Object... constraints) {
        if (constraints.length > 0 && constraints[0] instanceof MultiSplitConstraint) {
            MultiSplitConstraint multiSplitConstraint = (MultiSplitConstraint) constraints[0];

            multiSplitContainer.setConstraints(content,
                                               content.getComponent(),
                                               multiSplitConstraint.getAggregationContent(),
                                               multiSplitConstraint.getAggregationIndexLocation(),
                                               multiSplitConstraint.getAggregationPosition());
        }
    }
View Full Code Here

    @Override
    protected void doAddPageComponent(PageComponent pageComponent) {
        Assert.notNull(pageComponent);

        // If we have at least one content, then dock into that one!
        MultiSplitConstraint constraint;
        final Iterator<Entry<Dockable, PageComponent>> iterator = contentAndPageComponentById.values().iterator();
        if (iterator.hasNext()) {
            Dockable dock = iterator.next().getKey();
            if (dock instanceof Content) {
                constraint = new MultiSplitConstraint((Content) dock);
            }
            else {
                constraint = new MultiSplitConstraint(AggregationPosition.DEFAULT);
            }
        }
        else {
            constraint = new MultiSplitConstraint(AggregationPosition.DEFAULT);
        }
        final Dockable dockable;

        ViewDescriptor viewDescriptor = getViewDescriptor(pageComponent.getId());
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.MultiSplitConstraint

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.