Examples of PropertyType


Examples of org.projectforge.core.PropertyType

   */
  @Override
  public void putFieldFormat(final ContentProvider sheetProvider, final Field field, final PropertyInfo propInfo,
      final ExportColumn exportColumn)
  {
    final PropertyType type = propInfo.type();
    if (type == PropertyType.DATE) {
      sheetProvider.putFormat(exportColumn, DateFormats.getExcelFormatString(DateFormatType.DATE));
      exportColumn.setWidth(10);
    } else if (type == PropertyType.DATE_TIME) {
      sheetProvider.putFormat(exportColumn, DateFormats.getExcelFormatString(DateFormatType.DATE_TIME_MINUTES));
View Full Code Here

Examples of org.unigrids.services.atomic.types.PropertyType

        //other parameters from the cmdline as key=value
        StorageBackendParameters params=desc.addNewStorageBackendParameters();
        for(int i=1;i<keyValueParams.length;i++){
          String arg=keyValueParams[i];
          String[]sp=arg.split("=",2);
          PropertyType prop=params.addNewProperty();
          prop.setName(sp[0]);
          prop.setValue(sp[1]);
          if(log.isDebugEnabled()) {
            log.debug("Have parameter : "+arg);
          }
        }
      }
View Full Code Here

Examples of org.voltdb.compiler.deploymentfile.PropertyType

            List<PropertyType> configProperties = exportConfig.getProperty();

            for( Object nameObj: m_elConfig.keySet()) {
                String name = String.class.cast(nameObj);

                PropertyType prop = factory.createPropertyType();
                prop.setName(name);
                prop.setValue(m_elConfig.getProperty(name));

                configProperties.add(prop);
            }
            export.setConfiguration(exportConfig);
        }
View Full Code Here

Examples of org.yaac.shared.property.PropertyType

   * @param info
   * @return
   */
  @SuppressWarnings({ "rawtypes", "unchecked" })
  private Object convert(PropertyInfo info, Entity e) {
    PropertyType type = PropertyType.typeOf(info);
   
    switch (type) {
    case BLOB:
      BlobPropertyInfo blobInfo = (BlobPropertyInfo) info;
     
View Full Code Here

Examples of org.yaac.shared.stat.models.PropertyType

    nsTotalsMap.put("", new NSTotal(500L, 3L, new Date()));
    nsTotalsMap.put("namespace_1", new NSTotal(200L, 3L, timestamp));
    nsTotalsMap.put("namespace_2", new NSTotal(300L, 4L, timestamp));

    List<PropertyType> propertyTypes = new LinkedList<PropertyType>();
    propertyTypes.add(new PropertyType(200L, 10L, timestamp, "Date/Time"));
    propertyTypes.add(new PropertyType(200L, 10L, timestamp, "Integer"));
    propertyTypes.add(new PropertyType(200L, 10L, timestamp, "String"));
    propertyTypes.add(new PropertyType(200L, 10L, timestamp, "Float"));
    propertyTypes.add(new PropertyType(200L, 10L, timestamp, "Category"));
   
    List<KindWrapper> kinds = new LinkedList<KindWrapper>();
   
    {
      KindWrapper kind = new KindWrapper();
View Full Code Here

Examples of org.zeroexchange.model.resource.property.PropertyType

        Collection<Property> targetProperties = targetCategory.getProperties();
        for(XProperty sourceProperty: sourceProperties) {
            Property targetProperty = new Property();
            targetProperty.setCategory(targetCategory);
            targetProperty.setName(sourceProperty.getName());
            PropertyType propertyType = (PropertyType) propertyTypeDAO.getById(sourceProperty.getPropertyType());
            if(propertyType == null) {
                throw new BusinessLogicException("Property type is unknown: '" + sourceProperty.getPropertyType() + "'");
            }
            targetProperty.setPropertyType(propertyType);
            targetProperty.setDictionary(sourceProperty.getDictonary());
View Full Code Here

Examples of pt.webdetails.cdf.dd.model.meta.PropertyType

*/
public class CdeRunJsPropertyTypeWriter extends JsWriterAbstract implements IThingWriter
{
  public void write(Object output, IThingWriteContext context, Thing t) throws ThingWriteException
  {
    PropertyType prop = (PropertyType)t;
    StringBuilder out = (StringBuilder)output;
   
    // ------------
   
    writeValuesListInputTypeRenderer(out, prop);
   
    // ------------
   
    // NOTE: property type name cannot have spaces
    // or other special chars, but this is not enforced anywhere.
   
    String camelName = prop.getCamelName();
   
    // camelName is the name by which the property will be registered
    // on the client, by means of PropertiesManager.register(...)
    String fullName = camelName;
   
    ComponentType owner = prop.getOwner();
    if(owner != null)
    {
      String modelId = CdeRunJsHelper.getComponentTypeModelId(owner);
      fullName = modelId + "_" + fullName;
    }
   
    // PropVar still not garanteed unique...
    String propVarName = prop.getName() + "Property";
   
    // TODO: Currently, the Property/Base property is not being taken
    // into account in the generated JS...
    out.append(NEWLINE);
    out.append("var "); out.append(propVarName); out.append(" = BasePropertyType.extend({");
    out.append(NEWLINE);

    // This is the name used by PropertiesManager.register(...) to index the property
    addJsProperty(out, "type", JsonUtils.toJsString(fullName), INDENT1, true);
    addCommaAndLineSep(out);
   
    out.append(INDENT1); out.append("stub: {"); out.append(NEWLINE);
    // The local property type name is the default name used by property instances
    addJsProperty(out, "name",        JsonUtils.toJsString(camelName), INDENT2, true);
    addJsProperty(out, "value",       prop.getDefaultValue(), INDENT2, false);
    addJsProperty(out, "description", JsonUtils.toJsString(prop.getLabel()), INDENT2, false);
    addJsProperty(out, "tooltip",     JsonUtils.toJsString(prop.getTooltip()), INDENT2, false);
   
    // Unfortunately, this «type» attribute is the InputType...
    // This attribute is stored along with name and value attributes in the CDFDE JSON file.
    addJsProperty(out, "type",        JsonUtils.toJsString(prop.getInputType()), INDENT2, false);
    addJsProperty(out, "order",       String.valueOf(prop.getOrder()), INDENT2, false);
   
    // TODO: CDE editor only supports "simple" and "advanced" classTypes.
    String cat = prop.getCategory();
    if(!PropertyType.CAT_ADVANCED.equals(cat))
    {
      cat = "";
    }
   
View Full Code Here

Examples of vn.pyco.tinycms.model.PropertyType

        return vn.pyco.tinycms.web.pages.admin.Index.class;
    }

    @OnEvent(value = EventConstants.SUCCESS, component = "contentPropertiesForm")
    Object submitPropertiesForm() {
        PropertyType propertyTypeObj = _propertyTypeService.getPropertyTypeByName(_propertyTypeName);
        _contentProperty = new ContentProperty();
        _contentProperty.setCode(_code);
        _contentProperty.setName(_name);
        _contentProperty.setConstraints(_constraints);
        _contentProperty.setOrder(_order);
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.