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

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


    private Button.StyleClass<Button> ButtonStyle() {
        Button.StyleClass<Button> res = new Button.StyleClass<Button>();
        LinearGradient bg = new LinearGradient(0.0, new ColorStop(0.0, Color.FUNKY_BLUE), new ColorStop(1.0, Color.fadeColors(Color.BLACK, Color.FUNKY_BLUE, 0.9)));
        res.getBackground().setValue(new StyleValue<ABackground>(bg));
        res.getPadding().setValue(new StyleValue<Padding>(new Padding(10, 5, 10, 5)));
        res.getBorder().setValue(new StyleValue<Border>(new Border(1, Color.fadeColors(Color.BLACK, Color.FUNKY_BLUE, 0.85), 0)));
        res.getForeColor().setValue(new StyleValue<Color>(Color.WHITE));
        res.getFontSize().setValue(new StyleValue<Integer>(14));
        res.getBold().setValue(new StyleValue<Boolean>(Boolean.TRUE));
        return res;
    }
View Full Code Here


    private ComboBox.StyleClass<ComboBox> ComboBoxStyle() {
        ComboBox.StyleClass<ComboBox> res = new ComboBox.StyleClass<ComboBox>();
        LinearGradient bg = new LinearGradient(0.0, new ColorStop(0.0, Color.WHITE), new ColorStop(1.0, Color.getRgbColor(0xf0f0f0)));
        res.getBackground().setValue(new StyleValue<ABackground>(bg));
        res.getPadding().setValue(new StyleValue<Padding>(new Padding(10, 5, 10, 5)));
        res.getBorder().setValue(new StyleValue<Border>(new Border(1, Color.LIGHT_GRAY, 0)));
        return res;
    }
View Full Code Here

    }

    private TextBox.StyleClass<TextBox> TextBoxStyle() {
        TextBox.StyleClass<TextBox> res = new TextBox.StyleClass<TextBox>();
        res.getPadding().setValue(new StyleValue<Padding>(new Padding(5)));
        res.getBorder().setValue(new StyleValue<Border>(new Border(1, Color.LIGHT_GRAY, 0)));
        return res;
    }
View Full Code Here

        padding.invalidate();
        border.addChangeListener(new IChangeListener() {

            @Override
            public void onChanged(Object sender) {
                Border b = border.get();
                if (b == null) {
                    getElement().getStyle().clearBorderStyle();
                    getElement().getStyle().clearBorderColor();
                    getElement().getStyle().clearBorderWidth();
                    getElement().getStyle().clearProperty("borderRadius");
                } else {
                    b.apply(getElement());
                }
                requestLayout();
            }

        });
View Full Code Here

        this.getChildren().add(ledPanel);

        size.addChangeListener(new IChangeListener() {
            @Override
            public void onChanged(Object sender) {
                borderProperty().set(new Border(1, Color.getRgbColor(0xe0e0e0), (size.get() + 2) / 2));
                ledPanel.borderProperty().set(new Border(1, Color.getRgbColor(0x808080), (size.get() - 4) / 2));
            }
        });
        size.invalidate();

        refreshColors();
View Full Code Here

    private final Label label = new Label();

    public ComboBox() {
        this.paddingProperty().set(new Padding(5));
        this.borderProperty().set(new Border(1, Color.getRgbColor(0xc0c0c0), 0));
        this.backgroundProperty().set(new LinearGradient(0.0,
                new ColorStop(0.0, Color.getRgbColor(0xe0e0e0)),
                new ColorStop(1.0, Color.getRgbColor(0xc0c0c0))
        ));
        this.cursorProperty().set(ECursor.POINTER);
View Full Code Here

        hScrollBar.backgroundProperty().bind(scrollBarBackground);
        vScrollBar.backgroundProperty().bind(scrollBarBackground);
        vScrollBar.widthProperty().set(10);
        hScrollBar.heightProperty().set(10);
        hScrollBar.borderProperty().set(new Border(0, Color.TRANSPARENT, 0));
        vScrollBar.borderProperty().set(new Border(0, Color.TRANSPARENT, 0));

        scrollWidth.initReadonlyBind(contentPanel.boundsWidthProperty());
        scrollHeight.initReadonlyBind(contentPanel.boundsHeightProperty());

        wheelPanel.widthProperty().bind(this.widthProperty());
View Full Code Here

            @Override
            public Border calculate() {
                int quarter = separatorHeight.get() / 4;
                int width = separatorHeight.get() - (quarter * 2);
                return new Border(0, Color.BLACK, width / 2);
            }
        });
        return res;
    }
View Full Code Here

        this.backgroundProperty().set(new ColorBackground(Color.WHITE));

        VBox vb = new VBox();
        root.getChildren().add(vb);
        root.shadowProperty().set(new BoxShadow(2, 2, 10, 0, Color.getRgbColor(0x808080), false));
        root.borderProperty().set(new Border(1, Color.LIGHT_GRAY, 0));
        root.paddingProperty().set(new Padding(5));

        for (AMenuItem item : this.items) {
            if (item == null) {
                throw new NullPointerException("The 'items' parameter can't contains null elements.");
View Full Code Here

                bind(buttonColor);
            }

            @Override
            public Border calculate() {
                return new Border(1, Color.fadeColors(Color.BLACK, buttonColor.get(), 0.6), 8);
            }
        });
        button.translateXProperty().bind(new AExpression<Integer>() {

            {
View Full Code Here

TOP

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

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.