Package com.eagerlogic.cubee.client.components

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


        this.heightProperty().set(25);
       
        HBox root = new HBox();
        this.getChildren().add(root);
       
        pnlName = new Panel();
        pnlName.widthProperty().bind(new AExpression<Integer>() {
           
            {
                bind(clientWidthProperty());
            }

            @Override
            public Integer calculate() {
                return (clientWidthProperty().get() - 10) / 2;
            }
        });
        pnlName.heightProperty().bind(heightProperty());
        root.getChildren().add(pnlName);
       
        // TODO make styleable
        Label lblName = new Label();
        lblName.textProperty().set(attribute.getName());
        lblName.widthProperty().bind(pnlName.clientWidthProperty());
        lblName.maxWidthProperty().bind(pnlName.clientWidthProperty());
        lblName.translateYProperty().bind(new AlignMiddleExp(pnlName, lblName));
        lblName.textOverflowProperty().set(ETextOverflow.ELLIPSIS);
        pnlName.getChildren().add(lblName);
       
        root.addEmptyCell(10);
       
        pnlValue = new Panel();
        pnlValue.widthProperty().bind(pnlName.widthProperty());
        pnlValue.heightProperty().bind(heightProperty());
        if (!attribute.isReadonly()) {
            pnlValue.cursorProperty().set(ECursor.POINTER);
            pnlValue.onClickEvent().addListener(new IEventListener<ClickEventArgs>() {
View Full Code Here


            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());
            }
View Full Code Here

    }

    public SimpleTreeViewItem(T value, ValueConverter<T> valueConverter) {
        super(value);
        this.valueConverter = valueConverter;
        Panel rootPanel = new Panel();
        rootPanel.cursorProperty().set(ECursor.POINTER);
        this.setRootComponent(rootPanel);
       
        root = new HBox();
        root.pointerTransparentProperty().set(true);
        rootPanel.getChildren().add(root);
        this.onChildrenChangedEvent().addListener(onChildrenChangedEventListener);
       
        rootPanel.onClickEvent().addListener(new IEventListener<ClickEventArgs>() {

            @Override
            public void onFired(ClickEventArgs args) {
                fireItemClickedEvent(SimpleTreeViewItem.this);
            }
        });
       
        rootPanel.backgroundProperty().bind(new AExpression<ABackground>() {
           
            {
                bind(selectedProperty());
            }
View Full Code Here

       
        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);
       
View Full Code Here

        this.heightProperty().set(9);
        this.borderProperty().set(new Border(1, Color.GRAY, 0));
        LinearGradient lg = new LinearGradient(0.0, new ColorStop(0.0, Color.WHITE), new ColorStop(1.0, Color.getRgbColor(0xf0f0f0)));
        this.backgroundProperty().set(lg);
       
        horizontalLine = new Panel();
        horizontalLine.widthProperty().set(5);
        horizontalLine.heightProperty().set(1);
        horizontalLine.translateXProperty().set(2);
        horizontalLine.translateYProperty().set(4);
        horizontalLine.backgroundProperty().set(new ColorBackground(Color.GRAY));
        horizontalLine.handlePointerProperty().set(false);
        this.getChildren().add(horizontalLine);
       
        verticalLine = new Panel();
        verticalLine.widthProperty().set(1);
        verticalLine.heightProperty().set(5);
        verticalLine.translateXProperty().set(4);
        verticalLine.translateYProperty().set(2);
        verticalLine.backgroundProperty().set(new ColorBackground(Color.GRAY));
View Full Code Here

TOP

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

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.