Examples of ItemGroup


Examples of com.melitronic.domain.entity.ItemGroup

   * @param parent
   */
  public void itemPositionChanged(com.melitronic.rmapp.model.Item item, AbstractListItem[] list, com.melitronic.rmapp.model.ItemGroup parent) {
      Item domainItem = null;
   
      ItemGroup oldParent = null;
      ItemGroup newParent = null;
      for (AbstractEntity entity : productsItemGroups) {
        for(Item it : ((ItemGroup)entity).getItem()) {
          if (it.getId() != null && item.getId() != null &&
            it.getId().longValue() == item.getId().longValue()) {
            oldParent = (ItemGroup)entity;
View Full Code Here

Examples of com.melitronic.rmapp.model.ItemGroup

      return treeCollection.getColl();
       
    }

    public void init() {
      getUC().setSelectedItemGroup(new ItemGroup());
      selectedItem = Item.newItem();
      getUC().setSelectedIssue(Issue.newIssue());
      setSelectedTask(Task.newTask());
      setResponsiblePerson( Person.getDummyPerson() );
    }
View Full Code Here

Examples of com.melitronic.rmapp.model.ItemGroup

     
      for (AbstractEntity item : sortedColl) {
        com.melitronic.domain.entity.ItemGroup ig =
          (com.melitronic.domain.entity.ItemGroup)item;

        ItemGroup spr = getUC().getItemGroup(ig);
        data.add(spr);
       
        for (AbstractEntity i2 : ig.getItem()) {
          if (i2 instanceof com.melitronic.domain.entity.Issue) {
            com.melitronic.domain.entity.Issue domainII =
              (com.melitronic.domain.entity.Issue)i2;
            Issue it = getUC().getIssue(domainII);
            spr.addChild(it);
          }
          else {
            com.melitronic.domain.entity.Item domainII =
              (com.melitronic.domain.entity.Item)i2;
            Item it = getUC().getItem(domainII);
            spr.addChild(it);
          }
        }
      }
     
      return data;
View Full Code Here

Examples of com.melitronic.rmapp.model.ItemGroup

    getUC().selectedItemGroupUpdate((ItemGroup)getUC().getSelectedItemGroup());
   
  }
 
  public void selectedItemGroupNew() {
    getUC().setSelectedItemGroup(new ItemGroup());
  }
View Full Code Here

Examples of com.scriptographer.adm.ItemGroup

  public PromptDialog(String title, Component[] components) {
    setTitle(title);
    this.components = components;

    // Create row of buttons
    ItemGroup buttons = new ItemGroup(this);
    buttons.setLayout(new FlowLayout(FlowLayout.RIGHT, 0, 0));
    buttons.setMarginTop(8);

    Button cancelButton = new Button(this);
    cancelButton.setText("Cancel");
    cancelButton.setMarginRight(4);
    buttons.addToContent(cancelButton);

    Button okButton = new Button(this);
    okButton.setText("  OK  ");
    buttons.addToContent(okButton);
   
    // Add one more row for the buttons to the layout.
    TableLayout layout =
        AdmPaletteProxy.createLayout(this, components, true, 1, 5);
View Full Code Here

Examples of com.scriptographer.adm.ItemGroup

      // If the ruler has a label, add it to the left of it, using an
      // ItemGroup and a TableLayout. The ItemGroup needs to be created
      // before the frame, otherwise layouting issues arise...
      // Ideally this should be resolved, but as ADM is on its way out,
      // just work around it for now.
      ItemGroup group;
      String label = component.getLabel();
      if (label != null && !label.equals("")) {
        group = new ItemGroup(dialog);
        TextPane labelItem = new TextPane(dialog);
        labelItem.setText(label);
        // Use 3 rows, so the center one with the ruler gets centered,
        // then span the label across all three.
        double[][] sizes = {
          new double[] { TableLayout.PREFERRED, TableLayout.FILL },
          new double[] { TableLayout.FILL, TableLayout.PREFERRED,
              TableLayout.FILL }
        };
        group.setLayout(new TableLayout(sizes));
        group.add(labelItem, "0, 0, 0, 2");
        group.setMarginTop(2);
      } else {
        group = null;
      }
      Frame frame = new Frame(dialog);
      frame.setStyle(FrameStyle.SUNKEN);
      // Margin needs to be set before changing size...
      // TODO: Fix this in UI package?
      int top = label != null ? 2 : 4, bottom = 4;
      frame.setMargin(top, 0, bottom, 0);
      // Margin is included inside size, not added. This is different
      // to how things works with CSS...
      // TODO: Fix this in UI package?
      frame.setHeight(2 + top + bottom);
      // Now finish setting up the layout group and label
      if (group != null) {
        group.add(frame, "1, 1, full, center");
        item = group;
      } else {
        item = frame;
      }
    }
View Full Code Here

Examples of hudson.model.ItemGroup

            if (s.equals(".")) {
                continue;
            }

            if (ctx instanceof ItemGroup) {
                ItemGroup g = (ItemGroup) ctx;
                Item i = g.getItem(s);
                if (i==null || !i.hasPermission(Item.READ)) {
                    ctx=null;    // can't go up further
                    break;
                }
                ctx=i;
View Full Code Here

Examples of hudson.model.ItemGroup

     *      null if either such {@link Item} doesn't exist under the given full name,
     *      or it exists but it's no an instance of the given type.
     */
    public <T extends Item> T getItemByFullName(String fullName, Class<T> type) {
        StringTokenizer tokens = new StringTokenizer(fullName,"/");
        ItemGroup parent = this;

        if(!tokens.hasMoreTokens()) return null;    // for example, empty full name.

        while(true) {
            Item item = parent.getItem(tokens.nextToken());
            if(!tokens.hasMoreTokens()) {
                if(type.isInstance(item))
                    return type.cast(item);
                else
                    return null;
View Full Code Here

Examples of hudson.model.ItemGroup

        DiskUsageProperty property = project.getProperty(DiskUsageProperty.class);
        if(property!=null){
            diskUsage += property.getAllNonSlaveOrCustomWorkspaceSize();
        }
        if(project instanceof ItemGroup){
            ItemGroup group = (ItemGroup) project;
            for(Object i:group.getItems()){
                if(i instanceof AbstractProject){
                    AbstractProject p = (AbstractProject) i;
                    DiskUsageProperty prop = (DiskUsageProperty) p.getProperty(DiskUsageProperty.class);
                    if(prop!=null){
                        diskUsage += prop.getAllNonSlaveOrCustomWorkspaceSize();
View Full Code Here

Examples of hudson.model.ItemGroup

        DiskUsageProperty property = project.getProperty(DiskUsageProperty.class);
        if(property!=null){
            diskUsage += property.getAllWorkspaceSize();
        }
        if(project instanceof ItemGroup){
            ItemGroup group = (ItemGroup) project;
            for(Object i:group.getItems()){
                if(i instanceof AbstractProject){
                    AbstractProject p = (AbstractProject) i;
                    DiskUsageProperty prop = (DiskUsageProperty) p.getProperty(DiskUsageProperty.class);
                    if(prop!=null){
                        diskUsage += prop.getAllWorkspaceSize();
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.