Examples of FieldDefinition


Examples of org.eclipse.persistence.tools.schemaframework.FieldDefinition

    return writer;
  }

  public FieldDefinition convertToFieldDefinition(DBAccessor.DBColumnInfo columnInfo) {
    int length = columnInfo.getLength() != null ? columnInfo.getLength() : 0;
    FieldDefinition fieldDefinition = new FieldDefinition(columnInfo.getName(), columnInfo.getType(), length);
    fieldDefinition.setShouldAllowNull(columnInfo.isNullable());
    return fieldDefinition;
  }
View Full Code Here

Examples of org.pentaho.openformula.ui.FieldDefinition

      final DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel();
      final FieldDefinition[] definitions = getFields();
      for (int i = 0; i < definitions.length; i++)
      {
        final FieldDefinition fieldDefinition = definitions[i];
        comboBoxModel.addElement("=" + FormulaUtil.quoteReference(fieldDefinition.getName()));
      }
      comboBox.setModel(comboBoxModel);
      comboBox.setRenderer(new EmptyValueListCellRenderer());
      comboBox.setEditable(true);
      add(comboBox, BorderLayout.CENTER);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.wizard.model.FieldDefinition

    {
      if (activeField == null)
      {
        return;
      }
      final FieldDefinition fieldDefinition = activeField.getFieldDefinition();
      if (fieldDefinition instanceof DetailFieldDefinition)
      {
        final DetailFieldDefinition definition = (DetailFieldDefinition) fieldDefinition;
        definition.setHorizontalAlignment(ElementAlignment.LEFT);
        updateAlignmentButtons(ElementAlignment.LEFT);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.wizard.model.FieldDefinition

    {
      if (activeField == null)
      {
        return;
      }
      final FieldDefinition fieldDefinition = activeField.getFieldDefinition();

      if (fieldDefinition instanceof DetailFieldDefinition)
      {
        final DetailFieldDefinition definition = (DetailFieldDefinition) fieldDefinition;
        definition.setHorizontalAlignment(ElementAlignment.CENTER);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.wizard.model.FieldDefinition

    {
      if (activeField == null)
      {
        return;
      }
      final FieldDefinition fieldDefinition = activeField.getFieldDefinition();

      if (fieldDefinition instanceof DetailFieldDefinition)
      {
        final DetailFieldDefinition definition = (DetailFieldDefinition) fieldDefinition;
        definition.setHorizontalAlignment(ElementAlignment.RIGHT);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.wizard.model.FieldDefinition

    }

    final Object maybeFieldData = e.getAttribute(AttributeNames.Wizard.NAMESPACE, "CachedWizardFieldData");
    if (maybeFieldData instanceof FieldDefinition)
    {
      final FieldDefinition fieldDefinition = (FieldDefinition) maybeFieldData;

      if (fieldDefinition.getDataFormat() != null)
      {
        e.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.FORMAT_STRING,
            fieldDefinition.getDataFormat());
        retval = true;
      }
      if (fieldDefinition.getNullString() != null)
      {
        e.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.NULL_VALUE, fieldDefinition.getNullString());
        retval = true;
      }

      if ("label".equals(e.getElementTypeName()) && !StringUtils.isEmpty(fieldDefinition.getDisplayName()))
      {
        e.setAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.VALUE, fieldDefinition.getDisplayName());
      }

    }

    return retval;
View Full Code Here

Examples of org.springframework.data.solr.core.schema.SchemaDefinition.FieldDefinition

    entity.doWithProperties(new PropertyHandler<SolrPersistentProperty>() {

      @Override
      public void doWithPersistentProperty(SolrPersistentProperty persistentProperty) {

        FieldDefinition fieldDefinition = createFieldDefinitionForProperty(persistentProperty);
        if (fieldDefinition != null) {
          schemaDefinition.addFieldDefinition(fieldDefinition);
        }
      }
    });
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.