Examples of XulDetailFieldDefinition


Examples of org.pentaho.reporting.engine.classic.wizard.ui.xul.util.XulDetailFieldDefinition

    }

    if (activeTree.getId().equals(FORMAT_DETAILS_LIST_ID))
    { // We need to update the bindings for the detail list
      activeField = getDetailFields().get(selectedIndices[0]);
      final XulDetailFieldDefinition fieldDef = new XulDetailFieldDefinition
          ((DefaultDetailFieldDefinition) activeField.getFieldDefinition(), getEditorModel().getDataSchema().getDataSchema());
      activeXulWrapper = fieldDef;

      // Set the bindings on this field definition
      getBindingFactory().setBindingType(Type.ONE_WAY);
      fieldAndGroupBindings.add(getBindingFactory().createBinding(FORMAT_DETAIL_WIDTH_SCALE_ID, VALUE_PROPERTY_NAME, FORMAT_DETAIL_WIDTH_LABEL_ID, VALUE_PROPERTY_NAME, new IntegerToStringBindingConvertor()));
      fieldAndGroupBindings.add(getBindingFactory().createBinding(FORMAT_DETAIL_AUTO_WIDTH_CB_ID, CHECKED_PROPERTY_NAME, FORMAT_DETAIL_WIDTH_SCALE_ID, DISABLED_PROPERTY_ID));

      getBindingFactory().setBindingType(Type.BI_DIRECTIONAL);
      fieldAndGroupBindings.add(getBindingFactory().createBinding(fieldDef, ONLY_SHOW_CHANGING_VALUES_PROPERTY_NAME, FORMAT_DETAIL_DISTINCT_CB_ID, CHECKED_PROPERTY_NAME, new BooleanBindingConvertor()));
      fieldAndGroupBindings.add(getBindingFactory().createBinding(fieldDef, WIDTH_PROPERTY_NAME, FORMAT_DETAIL_WIDTH_SCALE_ID, VALUE_PROPERTY_NAME, new LengthToIntegerBindingConverter()));
      fieldAndGroupBindings.add(getBindingFactory().createBinding(fieldDef, DISPLAY_NAME_PROPERTY_NAME, FORMAT_DETAIL_DISPLAY_NAME_TB_ID, VALUE_PROPERTY_NAME));
      fieldAndGroupBindings.add(getBindingFactory().createBinding(fieldDef, DATA_FORMAT_PROPERTY_NAME, FORMAT_DETAIL_DATA_ML_ID, SELECTED_ITEM_PROPERTY_NAME, new DataFormatBindingConvertor()));
      fieldAndGroupBindings.add(getBindingFactory().createBinding(fieldDef, AGGREGATION_FUNCTION_PROPERTY_NAME, FORMAT_DETAIL_AGGREGATION_ML_ID, SELECTED_INDEX_PROPERTY_NAME, new AggregationBindingConverter()));
      fieldAndGroupBindings.add(getBindingFactory().createBinding(fieldDef, WIDTH_PROPERTY_NAME, FORMAT_DETAIL_AUTO_WIDTH_CB_ID, CHECKED_PROPERTY_NAME, new AutoWidthBindingConverter(fieldDef.getWidth())));
      updateAlignmentButtons(fieldDef.getHorizontalAlignment());
    }
    else if (activeTree.getId().equals(FORMAT_GROUPS_LIST_ID))
    { // We need to update the bindings for the groups list
      if (getGroupFields().size() > 0) {
        activeField = getGroupFields().get(selectedIndices[0]);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.wizard.ui.xul.util.XulDetailFieldDefinition

    }

    if (activeTree.getId().equals(FORMAT_DETAILS_LIST_ID))
    { // We need to update the bindings for the detail list
      activeField = getDetailFields().get(selectedIndices[0]);
      final XulDetailFieldDefinition fieldDef = new XulDetailFieldDefinition
          ((DefaultDetailFieldDefinition) activeField.getFieldDefinition(), getEditorModel().getDataSchema().getDataSchema());
      activeXulWrapper = fieldDef;

      // Set the bindings on this field definition
      getBindingFactory().setBindingType(Type.ONE_WAY);
      fieldAndGroupBindings.add(getBindingFactory().createBinding(FORMAT_DETAIL_WIDTH_SCALE_ID, VALUE_PROPERTY_NAME, FORMAT_DETAIL_WIDTH_LABEL_ID, VALUE_PROPERTY_NAME, new IntegerToStringBindingConvertor()));
      fieldAndGroupBindings.add(getBindingFactory().createBinding(FORMAT_DETAIL_AUTO_WIDTH_CB_ID, CHECKED_PROPERTY_NAME, FORMAT_DETAIL_WIDTH_SCALE_ID, DISABLED_PROPERTY_ID));

      getBindingFactory().setBindingType(Type.BI_DIRECTIONAL);
      fieldAndGroupBindings.add(getBindingFactory().createBinding(fieldDef, ONLY_SHOW_CHANGING_VALUES_PROPERTY_NAME, FORMAT_DETAIL_DISTINCT_CB_ID, CHECKED_PROPERTY_NAME, new BooleanBindingConvertor()));
      fieldAndGroupBindings.add(getBindingFactory().createBinding(fieldDef, WIDTH_PROPERTY_NAME, FORMAT_DETAIL_WIDTH_SCALE_ID, VALUE_PROPERTY_NAME, new LengthToIntegerBindingConverter()));
      fieldAndGroupBindings.add(getBindingFactory().createBinding(fieldDef, DISPLAY_NAME_PROPERTY_NAME, FORMAT_DETAIL_DISPLAY_NAME_TB_ID, VALUE_PROPERTY_NAME));
      fieldAndGroupBindings.add(getBindingFactory().createBinding(fieldDef, DATA_FORMAT_PROPERTY_NAME, FORMAT_DETAIL_DATA_ML_ID, SELECTED_ITEM_PROPERTY_NAME, new DataFormatBindingConvertor()));
      fieldAndGroupBindings.add(getBindingFactory().createBinding(fieldDef, AGGREGATION_FUNCTION_PROPERTY_NAME, FORMAT_DETAIL_AGGREGATION_ML_ID, SELECTED_INDEX_PROPERTY_NAME, new AggregationBindingConverter()));
      fieldAndGroupBindings.add(getBindingFactory().createBinding(fieldDef, WIDTH_PROPERTY_NAME, FORMAT_DETAIL_AUTO_WIDTH_CB_ID, CHECKED_PROPERTY_NAME, new AutoWidthBindingConverter(fieldDef.getWidth())));
      updateAlignmentButtons(fieldDef.getHorizontalAlignment());
    }
    else if (activeTree.getId().equals(FORMAT_GROUPS_LIST_ID))
    { // We need to update the bindings for the groups list
      if (getGroupFields().size() > 0) {
        activeField = getGroupFields().get(selectedIndices[0]);
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.