Package com.eagerlogic.cubee.client.style.styles

Examples of com.eagerlogic.cubee.client.style.styles.ColorBackground


    public Button() {
        this.paddingProperty().set(new Padding(5));
        this.cursorProperty().set(ECursor.POINTER);
        this.borderProperty().set(new Border(1, Color.getRgbColor(0xc0c0c0), 0));
        this.backgroundProperty().set(new ColorBackground(Color.getRgbColor(0xf0f0f0)));

        label = new Label();
        label.textOverflowProperty().set(ETextOverflow.ELLIPSIS);
        label.widthProperty().bind(new AExpression<Integer>() {
View Full Code Here


    }

    @Override
    public ABackground animate(double pos, ABackground startValue, ABackground endValue) {
        if (startValue == null) {
            startValue = new ColorBackground(Color.TRANSPARENT);
        }
        if (endValue == null) {
            endValue = new ColorBackground(Color.TRANSPARENT);
        }

        if ((startValue instanceof ColorBackground) && (endValue instanceof ColorBackground)) {
            return new ColorBackground(Color.fadeColors(((ColorBackground) startValue).getColor(), ((ColorBackground) endValue).getColor(), pos));
        } else {
            // TODO implementálni
            return super.animate(pos, startValue, endValue);
        }
    }
View Full Code Here

TOP

Related Classes of com.eagerlogic.cubee.client.style.styles.ColorBackground

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.