Package com.eagerlogic.cubee.client.components

Examples of com.eagerlogic.cubee.client.components.VBox


        ScrollPanel sp = new ScrollPanel();
        sp.widthProperty().bind(this.clientWidthProperty());
        sp.heightProperty().bind(this.clientHeightProperty());
        this.getChildren().add(sp);
       
        VBox root = new VBox();
        sp.setContent(root);
       
        boolean isFirst = true;
        for (AttributeGroup group : groups) {
            if (isFirst) {
                isFirst = false;
            } else {
                root.addEmptyCell(10);
            }
           
            AttributeGroupView agv = new AttributeGroupView(group);
            agv.widthProperty().bind(this.clientWidthProperty());
            root.getChildren().add(agv);
        }
    }
View Full Code Here


        if (attributeGroup == null) {
            throw new NullPointerException("The attributeGroup parameter can not be null.");
        }
        this.attributeGroup = attributeGroup;
       
        VBox root = new VBox();
        this.getChildren().add(root);
       
        final boolean nameVisible = attributeGroup.getName() != null;
       
        if (nameVisible) {
            // TODO set styleable
            collapseLabel = new CollapseLabel();
            collapseLabel.widthProperty().bind(this.clientWidthProperty());
            collapseLabel.textProperty().set(attributeGroup.getName());
            collapseLabel.collapsedProperty().bidirectionalBind(collapsed);
            root.getChildren().add(collapseLabel);
           
            root.addEmptyCell(2);
           
            Panel pnlSep = new Panel();
            pnlSep.widthProperty().bind(clientWidthProperty());
            // TODO set styleable
            pnlSep.heightProperty().set(1);
            // TODO set styleable
            pnlSep.backgroundProperty().set(new ColorBackground(Color.BLACK));
            root.getChildren().add(pnlSep);
           
            root.addEmptyCell(2);
        }
       
        attributesPanel = new Panel();
        attributesPanel.widthProperty().bind(new AExpression<Integer>() {
           
            {
                bind(clientWidthProperty());
            }

            @Override
            public Integer calculate() {
                return clientWidthProperty().get() - 10;
            }
        });
        attributesPanel.translateXProperty().set(10);
        root.getChildren().add(attributesPanel);
       
        vbAttributes = new VBox();
        attributesPanel.getChildren().add(vbAttributes);
       
        for (AAttribute<?> attribute : attributeGroup.getAttributes()) {
            AttributePanelItem item = new AttributePanelItem(attribute);
            item.widthProperty().bind(attributesPanel.clientWidthProperty());
View Full Code Here

        this.value = value;
       
        selected.initReadonlyBind(selectedWriter);
        leaf.initReadonlyBind(leafWriter);
       
        root = new VBox();
        root.pointerTransparentProperty().set(true);
        super.getChildren().add(root);
       
        rootComponentHolder = new Panel();
        rootComponentHolder.pointerTransparentProperty().set(Boolean.TRUE);
        root.getChildren().add(rootComponentHolder);
       
        childrenPanel = new Panel();
        childrenPanel.transformCenterYProperty().set(0.0);
        childrenPanel.scaleYProperty().set(0.0);
        childrenPanel.pointerTransparentProperty().set(true);
        root.getChildren().add(childrenPanel);
       
        childrenHolder = new VBox();
        childrenHolder.translateXProperty().set(20);
        childrenHolder.pointerTransparentProperty().set(true);
        childrenPanel.getChildren().add(childrenHolder);
       
        expanded.addChangeListener(new IChangeListener() {
View Full Code Here

TOP

Related Classes of com.eagerlogic.cubee.client.components.VBox

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.