Examples of StyleValue


Examples of com.volantis.mcs.themes.StyleValue

         *
         * @param propertyValue The property value to render
         * @return The string representation of the specified value
         */
        private String propertyValueToString(PropertyValue propertyValue) {
            StyleValue value = propertyValue.getValue();
            StyleProperty property = propertyValue.getProperty();

            StringWriter writer = new StringWriter();
            String rendered = "";
            RendererContext context = new RendererContext(
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

    private String styleValueToString(StyleValue value) {
        return value.getStandardCSS();
    }

    public void setPropertyValue(PropertyValue newPropertyValue) {
        StyleValue newValue;
        boolean important;
        if (newPropertyValue == null) {
            newValue = null;
            important = false;
        } else {
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

                // the editable combo associated with it is edited).
                if (!"".equals(text)) {
                    EditorPropertyParser parser = new EditorPropertyParser();
                    PropertyValue propertyValue = parser.parsePropertyValue(
                            property, text, isImportant());
                    StyleValue value = propertyValue.getValue();
                    if (!(value instanceof StyleKeyword ||
                            value instanceof StyleInherit)) {
                        unitsCombo.setEnabled(b);
                    }
                }
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

     * @param index     The index of the argument.
     * @return The value as an integer.
     */
    protected int getArgumentAsInt(
            String functionName, List arguments, int index) {
        StyleValue value = (StyleValue) arguments.get(index);
        StyleValue cast = CASTER.cast(value, StyleValueType.INTEGER);
        if (cast == null) {
            unexpectedType(functionName, index, StyleValueType.INTEGER, value);
        }

        StyleInteger styleInteger = (StyleInteger) cast;
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

     */
    protected StyleKeyword getArgumentAsKeyword(
            String functionName, List arguments, int index,
            AllowableKeywords allowableKeywords) {

        StyleValue value = (StyleValue) arguments.get(index);
        StyleKeyword keyword = null;
        if (value instanceof StyleKeyword) {
            keyword = (StyleKeyword) value;
        } else {
            unexpectedType(functionName, index, StyleValueType.KEYWORD, value);
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

     * @param index     The index of the argument.
     * @return The value as a identifier.
     */
    protected StyleIdentifier getArgumentAsIdentifier(
            String functionName, List arguments, int index) {
        StyleValue value = (StyleValue) arguments.get(index);
        StyleIdentifier identifier = null;
        if (value instanceof StyleIdentifier) {
            identifier = (StyleIdentifier) value;
        } else {
            unexpectedType(functionName, index, StyleValueType.IDENTIFIER,
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

     * @param index     The index of the argument.
     * @return The value as a string.
     */
    protected String getArgumentAsString(
            String functionName, List arguments, int index) {
        StyleValue value = (StyleValue) arguments.get(index);
        StyleString string = null;
        if (value instanceof StyleString) {
            string = (StyleString) value;
        } else {
            unexpectedType(functionName, index, StyleValueType.STRING,
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

     * Tests that the color style value is rendered correctly
     * when it is specified as a hexadecimal value.
     */
    public void testRenderWhenColorRepresentedUsingRBGValues() {

        StyleValue color = StyleValueFactory.getDefaultInstance().
                getColorByRGB(null, COLOR_ORANGE);
       
        String expectedRendering = "border-top-color:#ffa500;";
        testRender(color, "border-top-color", expectedRendering);
    }
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

                borderLeftColorRenderer);

        Element tdElement = createElement("td");


        StyleValue width = StyleValueFactory.getDefaultInstance()
                .getLength(null, 15, LengthUnit.PX);

        MutablePropertyValues propertyValues = createPropertyValues();
        propertyValues.setComputedValue(StylePropertyDetails.BORDER_LEFT_WIDTH,
                width);
View Full Code Here

Examples of com.volantis.mcs.themes.StyleValue

                borderRightWidthRenderer);


        Element tdElement = createElement("td");

        StyleValue width = StyleValueFactory.getDefaultInstance()
                .getLength(null, 15, LengthUnit.PX);

        MutablePropertyValues propertyValues = createPropertyValues();
        propertyValues.setComputedValue(
                StylePropertyDetails.BORDER_RIGHT_WIDTH,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.