Examples of PropertyValues


Examples of com.volantis.styling.values.PropertyValues

        if (!supportsImageButtons) {
            // Set src to null to force actionStyle to button later
            return null;
        }

        PropertyValues properties = styles.getPropertyValues();

        // Try the mariner-image property first, if that is not set or it's set
        // to none, then try the mariner-form-action-image property.
        StyleValue styleValue = properties.getComputedValue(
                StylePropertyDetails.MCS_IMAGE);

        if (styleValue == null || styleValue == MCSImageKeywords.NONE) {
            styleValue = properties.getComputedValue(
                    StylePropertyDetails.MCS_FORM_ACTION_IMAGE);
            if (styleValue == null) {
                return null;
            }
        }
View Full Code Here

Examples of com.volantis.styling.values.PropertyValues

            // Initialise the action style.
            StyleValue actionStyle;
            if (alwaysCheckForImage) {
                actionStyle = MCSFormActionStyleKeywords.IMAGE;
            } else {
                PropertyValues propertyValues = styles.getPropertyValues();
                actionStyle = propertyValues.getComputedValue(
                        StylePropertyDetails.MCS_FORM_ACTION_STYLE);
            }

            if (actionStyle == MCSFormActionStyleKeywords.DEFAULT
                    || actionStyle == MCSFormActionStyleKeywords.LINK) {
View Full Code Here

Examples of com.volantis.styling.values.PropertyValues

         */
        private void initialise(XFSelectAttributes attributes) {
            this.selectAttributes = attributes;

            Styles styles = attributes.getStyles();
            PropertyValues propertyValues = styles.getPropertyValues();
            StyleValue styleValue;

            styleValue = propertyValues.getComputedValue(
                    StylePropertyDetails.MCS_SELECTION_LIST_OPTION_LAYOUT);
            this.alignCaptionRight =
                    (styleValue == MCSSelectionListOptionLayoutKeywords.CONTROL_FIRST);

            styleValue = propertyValues.getComputedValue(
                    StylePropertyDetails.MCS_MENU_ORIENTATION);
            this.verticalOptions =
                    (styleValue == MCSMenuOrientationKeywords.VERTICAL);

            optionCountByContainer = new HashMap();
View Full Code Here

Examples of com.volantis.styling.values.PropertyValues

     */
    private void addModeAttribute(Element element,
                                    MCSAttributes attributes) {

        Styles styles = attributes.getStyles();
        PropertyValues propertyValues = styles.getPropertyValues();

        // Check whether a no-wrapping whitespace has been specified in a
        // theme or style class.
        StyleValue value = propertyValues.getComputedValue(
                StylePropertyDetails.WHITE_SPACE);
        if (value == WhiteSpaceKeywords.NOWRAP) {
            element.setAttribute("mode", "nowrap");
        }
    }
View Full Code Here

Examples of com.volantis.styling.values.PropertyValues

                h.match(table, t, "cellspacing") &&
                h.match(table, t, "cellpadding") &&
                ((width == null) || "100%".equals(width));

        if (canOptimize) {
            PropertyValues outerProps = null;
            PropertyValues innerProps = null;
            StyleValue styleWidth = null;
            if (t.getStyles() != null) {
                outerProps = t.getStyles().getPropertyValues();
            }
            if (table.getStyles() != null) {
                innerProps = table.getStyles().getPropertyValues();
                styleWidth = innerProps.getComputedValue(
                        StylePropertyDetails.WIDTH);
            }
           
            canOptimize = canOptimize &&
                    (innerProps == null || (styleWidth == null ||
View Full Code Here

Examples of com.volantis.styling.values.PropertyValues

     */
    protected void addBodyAttributes (Element element,
            BodyAttributes attributes) throws ProtocolException {

        Styles styles = attributes.getStyles();
        PropertyValues propertyValues = styles.getPropertyValues();

        // Add the super class attributes.
        super.addBodyAttributes (element, attributes);

        StyleValue value = propertyValues.getComputedValue(
                StylePropertyDetails.BACKGROUND_REPEAT);
        if (value == BackgroundRepeatKeywords.REPEAT_Y) {
            element.setAttribute("nohtilebg", "nohtilebg");
        } else if (value == BackgroundRepeatKeywords.REPEAT_X) {
            element.setAttribute("novtilebg", "novtilebg");
View Full Code Here

Examples of nsf.playground.extension.Endpoints.PropertyValues

  public void loadProperties(DominoDocument d, Category cat, String name) throws NotesException, IOException {
    if(cat==null) {
      return;
    }
    boolean isDefault = StringUtil.isEmpty(name) || StringUtil.equals(name, "0");
    PropertyValues pv = isDefault? null : cat.getPropertyValues(name);
    Property[] allp = cat.getProperties();
    for(int i=0; i<allp.length; i++) {
      Property p = allp[i];
      if(pv==null) {
        String v = p.getDefaultValue();
        d.replaceItemValue(p.getName(), v);
      } else {
        String v = pv.getValues()[i];
        d.replaceItemValue(p.getName(), v);
      }
    }
  }
View Full Code Here

Examples of org.neo4j.cypherdsl.query.PropertyValues

     * @param propertyValues
     * @return
     */
    public Path values( PropertyValue... propertyValues )
    {
        return new Path( node, relationship, new PropertyValues( asList( propertyValues ) ), nodeLabels );
    }
View Full Code Here

Examples of org.springframework.beans.PropertyValues

    return !ClassUtils.hasMethod(superclass, wm.getName(), wm.getParameterTypes());
  }

  protected Map<String, PropertyDescriptor> unsatisfiedNonSimpleProperties(BeanDefinition mbd) {
    Map<String, PropertyDescriptor> properties = CollectUtils.newHashMap();
    PropertyValues pvs = mbd.getPropertyValues();
    Class<?> clazz = null;
    try {
      clazz = Class.forName(mbd.getBeanClassName());
    } catch (ClassNotFoundException e) {
      logger.error("Class " + mbd.getBeanClassName() + "not found", e);
      return properties;
    }
    PropertyDescriptor[] pds = PropertyUtils.getPropertyDescriptors(clazz);
    for (PropertyDescriptor pd : pds) {
      if (pd.getWriteMethod() != null && !isExcludedFromDependencyCheck(pd)
          && !pvs.contains(pd.getName()) && !BeanUtils.isSimpleProperty(pd.getPropertyType())) {
        properties.put(pd.getName(), pd);
      }
    }
    return properties;
  }
View Full Code Here

Examples of org.springframework.beans.PropertyValues

    this.filterConfig = filterConfig;

    // Set bean properties from init parameters.
    try {
      PropertyValues pvs = new FilterConfigPropertyValues(filterConfig, this.requiredProperties);
      BeanWrapper bw = PropertyAccessorFactory.forBeanPropertyAccess(this);
      ResourceLoader resourceLoader = new ServletContextResourceLoader(filterConfig.getServletContext());
      bw.registerCustomEditor(Resource.class, new ResourceEditor(resourceLoader));
      initBeanWrapper(bw);
      bw.setPropertyValues(pvs, true);
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.