Examples of ColumnProperty


Examples of ar.com.fdvs.dj.domain.ColumnProperty

   * @param String valueClassName
   * @return ColumnBuilder
   * @deprecated
   */
  public ColumnBuilder addColumnProperty(String propertyName, String valueClassName ){
    ColumnProperty columnProperty = new ColumnProperty(propertyName,valueClassName);
    this.columnProperty = columnProperty;
    return this;
  }
View Full Code Here

Examples of ar.com.fdvs.dj.domain.ColumnProperty

    ColumnProperty columnProperty = new ColumnProperty(propertyName,valueClassName);
    this.columnProperty = columnProperty;
    return this;
  }
  public ColumnBuilder setColumnProperty(String propertyName, String valueClassName ){
    ColumnProperty columnProperty = new ColumnProperty(propertyName,valueClassName);
    this.columnProperty = columnProperty;
    return this;
  }
View Full Code Here

Examples of ar.com.fdvs.dj.domain.ColumnProperty

  public ColumnBuilder setFieldDescription(String fieldDescription){
    this.fieldDescription = fieldDescription;
    return this;
  }
  public ColumnBuilder setColumnProperty(String propertyName, String valueClassName, String fieldDescription ){
    ColumnProperty columnProperty = new ColumnProperty(propertyName,valueClassName);
    this.columnProperty = columnProperty;
    this.fieldDescription = fieldDescription;
    return this;
  }
View Full Code Here

Examples of ar.com.fdvs.dj.domain.ColumnProperty

    this.imageScaleMode = imageScaleMode;
    return this;
  }

  public ColumnBuilder setCommonProperties(String title, String property, String className, int width, boolean fixedWidth) throws ColumnBuilderException, ClassNotFoundException {
    setColumnProperty(new ColumnProperty(property, className));
    setWidth(new Integer(width));
    setTitle(title);
    setFixedWidth(Boolean.valueOf(fixedWidth));
    return this;
  }
View Full Code Here

Examples of ar.com.fdvs.dj.domain.ColumnProperty

        if (entity instanceof ExpressionColumn) {
          //The Custom Expression parameter must be registered
          ExpressionColumn expressionColumn = (ExpressionColumn) entity;
          ArrayList l = new ArrayList(getColumns());
          for (Iterator iter = getDynamicReport().getFields().iterator(); iter.hasNext();) {
            ColumnProperty columnProperty = (ColumnProperty) iter.next();
            SimpleColumn simpleColumn = new SimpleColumn();
            simpleColumn.setColumnProperty(columnProperty);
            l.add(simpleColumn);

          }
View Full Code Here

Examples of ar.com.fdvs.dj.domain.ColumnProperty

* Column created to handle global variables.
*/
public class GlobalGroupColumn extends PropertyColumn {

  public GlobalGroupColumn() {
    ColumnProperty columnProperty = new ColumnProperty("global", String.class.getName());
    setTitle("global");
    setColumnProperty(columnProperty);
  }
View Full Code Here

Examples of com.vaadin.addon.sqlcontainer.ColumnProperty

    }

    protected Map<String, Object> generateColumnToValueMap(RowItem item) {
        Map<String, Object> columnToValueMap = new HashMap<String, Object>();
        for (Object id : item.getItemPropertyIds()) {
            ColumnProperty cp = (ColumnProperty) item.getItemProperty(id);
            /* Prevent "rownum" usage as a column name if MSSQL or ORACLE */
            if ((this instanceof MSSQLGenerator || this instanceof OracleGenerator)
                    && cp.getPropertyId().equalsIgnoreCase("rownum")) {
                continue;
            }
            Object value = cp.getValue() == null ? null : cp.getValue();
            /* Only include properties whose read-only status can be altered */
            if (cp.isReadOnlyChangeAllowed() && !cp.isVersionColumn()) {
                columnToValueMap.put(cp.getPropertyId(), value);
            }
        }
        return columnToValueMap;
    }
View Full Code Here

Examples of com.vaadin.addon.sqlcontainer.ColumnProperty

    }

    protected Map<String, Object> generateRowIdentifiers(RowItem item) {
        Map<String, Object> rowIdentifiers = new HashMap<String, Object>();
        for (Object id : item.getItemPropertyIds()) {
            ColumnProperty cp = (ColumnProperty) item.getItemProperty(id);
            /* Prevent "rownum" usage as a column name if MSSQL or ORACLE */
            if ((this instanceof MSSQLGenerator || this instanceof OracleGenerator)
                    && cp.getPropertyId().equalsIgnoreCase("rownum")) {
                continue;
            }
            Object value = cp.getValue() == null ? null : cp.getValue();
            if (!cp.isReadOnlyChangeAllowed() || cp.isVersionColumn()) {
                rowIdentifiers.put(cp.getPropertyId(), value);
            }
        }
        return rowIdentifiers;
    }
View Full Code Here

Examples of com.vaadin.addon.sqlcontainer.ColumnProperty

        }
        return result;
    }

    private void setVersionColumnFlagInProperty(RowItem row) {
        ColumnProperty versionProperty = (ColumnProperty) row
                .getItemProperty(versionColumn);
        if (versionProperty != null) {
            versionProperty.setVersionColumn(true);
        }
    }
View Full Code Here

Examples of com.vaadin.data.util.sqlcontainer.ColumnProperty

        }
        return result;
    }

    private void setVersionColumnFlagInProperty(RowItem row) {
        ColumnProperty versionProperty = (ColumnProperty) row
                .getItemProperty(versionColumn);
        if (versionProperty != null) {
            versionProperty.setVersionColumn(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.