Examples of StyleType


Examples of com.volantis.mcs.themes.types.StyleType

        List otherControls = new ArrayList();
        otherControls.add(label);
        otherControls.add(divider);

        // Find the pair type component of the supported structure.
        StyleType type = styleProperty.getStandardDetails().getSupportedStructure();
        StylePairType pairType = null;
        if (type instanceof StylePairType) {
            pairType = (StylePairType) type;
        } else if (type instanceof StyleChoiceType) {
            StyleChoiceType choice = (StyleChoiceType) type;
            List types = choice.getTypes();
            Iterator it = types.iterator();
            while (pairType == null && it.hasNext()) {
                StyleType next = (StyleType) it.next();
                if (next instanceof StylePairType) {
                    pairType = (StylePairType) next;
                }
            }
        }
View Full Code Here

Examples of com.volantis.mcs.themes.types.StyleType

        // second is only enabled if representing a StyleFraction. For
        // example, mcs-marquee-speed can be a length, keyword, fraction or
        // inherit. The first editor can display either a length, keyword,
        // inherit or the numerator of the fraction, but the second can
        // only display the denominator of the fraction.
        StyleType type = styleProperty.getStandardDetails().
                getSupportedStructure();
        StyleFractionType fractionType = null;
        if (type instanceof StyleFractionType) {
            fractionType = (StyleFractionType) type;
        } else if (type instanceof StyleChoiceType) {
            StyleChoiceType choice = (StyleChoiceType) type;
            List types = choice.getTypes();
            Iterator it = types.iterator();
            while (fractionType == null && it.hasNext()) {
                StyleType next = (StyleType) it.next();
                if (next instanceof StyleFractionType) {
                    fractionType = (StyleFractionType) next;
                }
            }
        }
View Full Code Here

Examples of com.volantis.mcs.themes.types.StyleType

        GridData data = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
        label.setLayoutData(data);

        StylePropertyBrowseAction browseAction = StylePropertyMetadata.getBrowseAction(styleProperty);

        StyleType supportedStructure = styleProperty.getStandardDetails().
                getSupportedStructure();
        final StyleValueEditor styleEditor = new StyleValueEditor(this,
                SWT.NONE, styleProperty, supportedStructure, true,
                browseAction, context);
View Full Code Here

Examples of com.volantis.mcs.themes.types.StyleType

            // Javadoc inherited
            public void visitStyleChoiceType(StyleChoiceType type) {
                List choices = type.getTypes();
                Iterator it = choices.iterator();
                while (it.hasNext()) {
                    StyleType optionType = (StyleType) it.next();
                    optionType.accept(this);
                }
            }

            // Javadoc inherited
            public void visitStyleOrderedSetType(StyleOrderedSetType type) {
View Full Code Here

Examples of de.lessvoid.nifty.loaderv2.types.StyleType

      e.setInteract(interact.create());
    }
  }

  public StyleType createStyleType(final Attributes styleAttributes) {
    StyleType styleType = new StyleType(styleAttributes);
    if (attributes != null) {
      styleType.setAttributes(new AttributesType(attributes));
    }
    if (effects != null) {
      styleType.setEffect(effects.create());
    }
    if (interact != null) {
      styleType.setInteract(interact.create());
    }
    return styleType;
  }
View Full Code Here

Examples of de.lessvoid.nifty.loaderv2.types.StyleType

  }

  public void build(final Nifty nifty) {
    connectAttributes();

    StyleType style = attributes.createStyleType(styleAttributes);
    nifty.registerStyle(style);
  }
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.