Package com.eagerlogic.cubee.client.components

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


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


   
    private void showValue() {
        pnlValue.getChildren().clear();
       
        // TODO make styleable
        Label lblValue = new Label();
        lblValue.textProperty().set(attribute.getStringValue());
        lblValue.widthProperty().bind(pnlName.clientWidthProperty());
        lblValue.maxWidthProperty().bind(pnlName.clientWidthProperty());
        lblValue.translateYProperty().bind(new AlignMiddleExp(pnlValue, lblValue));
        lblValue.textOverflowProperty().set(ETextOverflow.ELLIPSIS);
        lblValue.handlePointerProperty().set(false);
        pnlValue.getChildren().add(lblValue);
    }
View Full Code Here

public final class LabelMenuItem extends AMenuItem {

    private final Label label;

    public LabelMenuItem() {
        label = new Label();
        label.handlePointerProperty().set(false);
        label.fontSizeProperty().set(14);
        this.getChildren().add(label);

        this.cursorProperty().set(ECursor.POINTER);
View Full Code Here

            root.getChildren().add(gliph);
            root.setLastCellVAlign(EVAlign.MIDDLE);
            root.addEmptyCell(5);
        }

        Label lbl = new Label();
        lbl.handlePointerProperty().set(false);
        if (valueConverter != null) {
            lbl.textProperty().set(valueConverter.convert(getValue()));
        } else {
            lbl.textProperty().set(getValue() == null ? "<NULL>" : getValue().toString());
        }
        lbl.foreColorProperty().bind(textForeColor);
        lbl.fontSizeProperty().bind(fontSize);
        lbl.fontFamilyProperty().bind(fontFamily);
        root.getChildren().add(lbl);
        root.setLastCellVAlign(EVAlign.MIDDLE);
    }
View Full Code Here

TOP

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

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.