Examples of XGroup


Examples of com.sun.star.report.XGroup

            SectionObject aSO = null;
            if (nGroups == 0)
            {
                // Spezial case, there is no Group.
                final XGroups xGroups = getReportDefinition().getGroups();
                final XGroup xGroup = xGroups.createGroup();
                xGroup.setHeaderOn(true);

                xGroups.insertByIndex(xGroups.getCount(), xGroup);
                xSection = xGroup.getHeader();
                copyGroupProperties(0);
                aSO = getDesignTemplate().getDetailLabel();
                aSO.setFontToBold();
            }
            else
            {
                final XGroups xGroups = getReportDefinition().getGroups();
                // we insert the titles in the last group
                final Object aGroup = xGroups.getByIndex(nGroups - 1);
                final XGroup xGroup = (XGroup) UnoRuntime.queryInterface(XGroup.class, aGroup);
                xSection = xGroup.getHeader();

                // We don't need to copy the GroupProperties, because this is done in the insertGroup() member function
                // copyGroupProperties(0);
                aSO = getDesignTemplate().getGroupLabel(nGroups - 1);
            }
View Full Code Here

Examples of com.sun.star.report.XGroup

        for (int nGroup = 0; nGroup < nGroupCount; nGroup++)
        {
            try
            {
                Object aGroup = xGroups.getByIndex(nGroup);
                XGroup xGroup = (XGroup) UnoRuntime.queryInterface(XGroup.class, aGroup);
                XSection xGroupSection = xGroup.getHeader();

                final int nCount = xGroupSection.getCount();
                for (int i = 0; i < nCount; i++)
                {
                    try
View Full Code Here

Examples of com.sun.star.report.XGroup

            try
            {
                final XGroups xForeignGroups = getDesignTemplate().getGroups();
                int nGroups = xForeignGroups.getCount();
                Object aForeignGroup = xForeignGroups.getByIndex(_nGroup);
                XGroup xForeignGroup = (XGroup) UnoRuntime.queryInterface(XGroup.class, aForeignGroup);
                XSection xForeignGroupSection = xForeignGroup.getHeader();

                if (xForeignGroupSection != null)
                {
                    final XGroups xGroups = getReportDefinition().getGroups();
                    Object aGroup = xGroups.getByIndex(_nGroup);
                    XGroup xGroup = (XGroup) UnoRuntime.queryInterface(XGroup.class, aGroup);
                    XSection xGroupSection = xGroup.getHeader();

                    // copy Properties
                    copyProperties(xForeignGroupSection, xGroupSection);
                }
            }
View Full Code Here

Examples of com.sun.star.report.XGroup

        final int nLabelWidth = getMaxLabelWidth(); // 3000;
        final int nUsablePageWidth = getPageWidth() - getLeftPageIndent() - getRightPageIndent() - getLeftGroupIndent(getCountOfGroups());
        final int nFieldWidth = nUsablePageWidth - nLabelWidth;

        // after done with all groups, we need access to the last group, for set property 'KeepTogether' so we remember it.
        XGroup aLastGroup = null;

        for (int i = 0; i < m_aGroupNames.length; i++)
        {
            final XGroup xGroup = xGroups.createGroup();
            aLastGroup = xGroup;

            // TODO: debug what the m_aGroupNames are, "field:[...]" or the "fieldname"
            xGroup.setExpression(m_aGroupNames[i]);
            xGroup.setHeaderOn(true);
            // we don't want any group footer (default off)
            // xGroup.setFooterOn(true);

            try
            {
                // we need to append by hand
                // TODO: documentation is unclear here, that we have to insert by hand
                int nCount = xGroups.getCount();
                xGroups.insertByIndex(nCount, xGroup);

                final XSection xGroupSection = xGroup.getHeader();
                copyGroupProperties(nCount);

                Rectangle aRect = new Rectangle();
                aRect.X = nLeftPageIndent + getLeftGroupIndent(i);
                SectionObject aSO = getDesignTemplate().getGroupLabel(i);
View Full Code Here

Examples of com.sun.star.report.XGroup

            SectionObject aSO = null;
            if (nGroups == 0)
            {
                // Spezial case, there is no Group.
                final XGroups xGroups = getReportDefinition().getGroups();
                final XGroup xGroup = xGroups.createGroup();
                xGroup.setHeaderOn(true);

                xGroups.insertByIndex(xGroups.getCount(), xGroup);
                xSection = xGroup.getHeader();
                copyGroupProperties(0);
                aSO = getDesignTemplate().getDetailLabel();
                aSO.setFontToBold();
            }
            else
            {
                final XGroups xGroups = getReportDefinition().getGroups();
                // we insert the titles in the last group
                final Object aGroup = xGroups.getByIndex(nGroups - 1);
                final XGroup xGroup = (XGroup) UnoRuntime.queryInterface(XGroup.class, aGroup);
                xSection = xGroup.getHeader();

                // We don't need to copy the GroupProperties, because this is done in the insertGroup() member function
                // copyGroupProperties(0);
                aSO = getDesignTemplate().getGroupLabel(nGroups - 1);
            }
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.admin.XGroup

        new GroupRolesTab(this) };
  }

  public String getTitle(XObject input) {
    if (input instanceof XGroup) {
      XGroup group = (XGroup) input;
      String name = group.getName();
      if (name != null && !name.equals(""))
        return messages.group(name);
    }
    return constants.newGroup();
  }
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.admin.XGroup

    add(createPropertiesContent());
  }

  public final boolean save(XObject input) {
    if (input instanceof XGroup) {
      XGroup group = (XGroup) input;
      group.setName(name.getValue());
      group.setDescription(description.getValue());
    }
    return true;
  }
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.admin.XGroup

    return s;
  }
 
  public void set(XObject input) {
    if (input instanceof XGroup) {
      XGroup group = (XGroup) input;
      name.setValue(group.getName());
      description.setValue(translateDescription(group.getDescription()));
      if (group != null && group.getName() != null && (group.getName().equals("admin") ||
          group.getName().equals("editor") ||
          group.getName().equals("creator") ||
          group.getName().equals("viewer") ||
          group.getName().equals("poweruser") ||
          group.getName().equals("publisher"))) {
          name.setEnabled(false);
          description.setEnabled(false);
        } else {
          name.setEnabled(true);
          description.setEnabled(true);
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.admin.XGroup

    add(membersTable);
  }

  public final boolean save(XObject input) {
    if (input instanceof XGroup) {
      XGroup group = (XGroup) input;
      group.clearUsers();
      if (group.getId() == null) {
        ((GroupEditor) editor).needsUpdate = true;
        return true;
     
      for(XUser user : getAllUsers()) {
        if (isSelected(user)) {
          group.addUserID(user.getId());
          user.addGroupID(group.getId());
        } else {
          group.removeUserID(user.getId());
          user.removeGroupID(group.getId());
        }
        ((GroupEditor) editor).adminController.updateUser(user);
      }
    }
    return true;
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.admin.XGroup

  public void saveAs(String name, XObject input) {   
  }

  public void set(XObject input) {
    if (input instanceof XGroup) {
      XGroup group = (XGroup) input;
      membersTable.removeAll();
      List<String> userIDs = Arrays.asList(group.getUserIDs());
      setUsers(userIDs);
    }
  }
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.