Package org.pentaho.reporting.engine.classic.wizard.ui.xul.util

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


      for (final int i : selectedIndices)
      {
        final SourceFieldDefinition group = getSelectableFields().get(i);
        final GroupDefinition xulGroup = new DefaultGroupDefinition();
        xulGroup.setField(group.getFieldName());
        FieldWrapper wrapper = new FieldWrapper(xulGroup, schema);
        groups.add(wrapper);
        final DefaultGroupDefinition definition = (DefaultGroupDefinition) wrapper.getFieldDefinition();
        new XulGroupDefinition(definition, schema);

      }
      setGroupFields(groups);
    }
View Full Code Here


      for (final int i : selectedIndices)
      {
        final SourceFieldDefinition field = getSelectableFields().get(i);
        final DetailFieldDefinition xulField = new DefaultDetailFieldDefinition();
        xulField.setField(field.getFieldName());
        details.add(new FieldWrapper(xulField, schema));
      }
      setDetailFields(details);
    }
View Full Code Here

      final XulListbox groupList = (XulListbox) getDocument().getElementById(GROUP_FIELDS_LIST_ID);
      final int[] selectedIndices = groupList.getSelectedIndices();
      Arrays.sort(selectedIndices);
      for (final int selectedRow : selectedIndices)
      {
        final FieldWrapper group = groups.remove(selectedRow);
        groups.add(selectedRow - 1, group);
      }
      setGroupFields(groups);

      // update the selection to move with the items
View Full Code Here

      final int[] selectedIndices = groupList.getSelectedIndices();
      Arrays.sort(selectedIndices);
      reverseArray(selectedIndices);
      for (final int selectedRow : selectedIndices)
      {
        final FieldWrapper group = groups.remove(selectedRow);
        groups.add(selectedRow + 1, group);
      }
      setGroupFields(groups);

      // update the selection to move with the items
View Full Code Here

      final XulListbox detailList = (XulListbox) getDocument().getElementById(DETAIL_FIELDS_LIST_ID);
      final int[] selectedIndices = detailList.getSelectedIndices();
      Arrays.sort(selectedIndices);
      for (final int selectedRow : selectedIndices)
      {
        final FieldWrapper detail = details.remove(selectedRow);
        details.add(selectedRow - 1, detail);
      }
      setDetailFields(details);

      // update the selection to move with the items
View Full Code Here

      final int[] selectedIndices = detailList.getSelectedIndices();
      Arrays.sort(selectedIndices);
      reverseArray(selectedIndices);
      for (final int selectedRow : selectedIndices)
      {
        final FieldWrapper detail = details.remove(selectedRow);
        details.add(selectedRow + 1, detail);
      }
      setDetailFields(details);

      // update the selection to move with the items
View Full Code Here

  {
    final ArrayList<FieldWrapper> groups = new ArrayList<FieldWrapper>();
    final DataSchema schema = getEditorModel().getDataSchema().getDataSchema();
    for (final GroupDefinition group : getEditorModel().getReportSpec().getGroupDefinitions())
    {
      groups.add(new FieldWrapper(group, schema));
    }
    return groups;
  }
View Full Code Here

  {
    final List<FieldWrapper> oldGroups = getGroupFields();
    final GroupDefinition[] fields = new GroupDefinition[groupFields.size()];
    for (int i = 0; i < groupFields.size(); i++)
    {
      final FieldWrapper fieldWrapper = groupFields.get(i);
      fields[i] = (GroupDefinition) fieldWrapper.getFieldDefinition();
    }
    getEditorModel().getReportSpec().setGroupDefinitions(fields);

    this.firePropertyChange(GROUP_FIELDS_PROPERTY_NAME, oldGroups, groupFields);
  }
View Full Code Here

  {
    final ArrayList<FieldWrapper> fields = new ArrayList<FieldWrapper>();
    final DataSchema schema = getEditorModel().getDataSchema().getDataSchema();
    for (final DetailFieldDefinition field : getEditorModel().getReportSpec().getDetailFieldDefinitions())
    {
      fields.add(new FieldWrapper(field, schema));
    }
    return fields;
  }
View Full Code Here

  {
    final List<FieldWrapper> oldFields = getDetailFields();
    final DetailFieldDefinition[] fields = new DetailFieldDefinition[detailFields.size()];
    for (int i = 0; i < detailFields.size(); i++)
    {
      final FieldWrapper fieldWrapper = detailFields.get(i);
      fields[i] = (DetailFieldDefinition) fieldWrapper.getFieldDefinition();
    }

    getEditorModel().getReportSpec().setDetailFieldDefinitions(fields);

    this.firePropertyChange(DETAIL_FIELDS_PROPERTY_NAME, oldFields, detailFields);
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.wizard.ui.xul.util.FieldWrapper

Copyright © 2018 www.massapicom. 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.