Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.TableItem


  public void addPortItem(final AbstractPortItem portItem) {
    synchronized(items) {
      items.add(portItem);
      shell.getDisplay().syncExec(new Runnable() {
        public void run() {
          new TableItem(table, SWT.NONE);
          update(items.size() - 1, portItem);
                    checkAvailable();
        }
      });
    }
View Full Code Here


    }

    for (int i =0; i < listOfParams.size(); i++) {
      HashMap h = (HashMap)listOfParams.get(i);               
      if (h.get("name") != null) {
        TableItem item = existsParams(h.get("name").toString(), table, (h.get("default_value") != null? h.get("default_value").toString(): ""));
        if(!refreshTable && item != null) {         
          if(h.get("required") != null && h.get("required").equals("true"))
            item.setBackground(Options.getRequiredColor());

          //existParam = true;
        } else {
          String pname = h.get("name").toString();
          String pvalue = (h.get("default_value") != null ? h.get("default_value").toString() : "");
View Full Code Here

    if (_environments != null) {
      Iterator it = _environments.iterator();
      while (it.hasNext()) {
        Object o = it.next();
        if (o instanceof Element) {         
          TableItem item = new TableItem(table, SWT.NONE);
          item.setText(0, ((Element) o).getAttributeValue("name"));
          item.setText(1, (((Element) o).getAttributeValue("value") != null ? ((Element) o).getAttributeValue("value") : ""));         
        }
      }           
    }       

  }
View Full Code Here

    if (_includeParams != null) {
      Iterator it = _includeParams.iterator();
      while (it.hasNext()) {
        Object o = it.next();
        if (o instanceof Element) {         
          TableItem item = new TableItem(table, SWT.NONE);
          Element elem = (Element) o;
          if(elem.getAttribute("file") != null) {
            item.setText(0, Utils.getAttributeValue("file", elem));
            item.setText(2, "file");
          } else {
            item.setText(0, Utils.getAttributeValue("live_file", elem));
            item.setText(2, "live_file");
          }
          item.setText(1, (((Element) o).getAttributeValue("node") != null ? ((Element) o).getAttributeValue("node") : ""));

        }
      }           
    }       
  }
View Full Code Here

    if (_params == null)
      initParams();
    _params.add(e);

    TableItem item = new TableItem(table, SWT.NONE);
    item.setText(new String[] { name, value });

    if(parameterDescription_de!=null && parameterDescription_de.trim().length()>0) {
      item.setData("parameter_description_de", parameterDescription_de);
      parameterDescription.put( "parameter_description_de_"+ name, parameterDescription_de);
    }
    if(parameterDescription_en!=null && parameterDescription_en.trim().length()>0) {
      item.setData("parameter_description_en", parameterDescription_en);
      parameterDescription.put( "parameter_description_en_"+ name, parameterDescription_de);
    }


    if(required) {
      item.setBackground(Options.getRequiredColor());
    }
    _dom.setChanged(true);
   
    //if(type == Editor.JOB) _dom.setChangedForDirectory("job", Utils.getAttributeValue("name",_parent), SchedulerDom.MODIFY);
    //Utils.setChangedForDirectory(_parent, _dom);
View Full Code Here

      if (_includeParams == null)
        initParams();

      _includeParams.add(e);

      TableItem item = new TableItem(table, SWT.NONE);
      item.setText(new String[] { file, node, (isLive ? "live_file" : "file")});


    }     
  }
View Full Code Here

      if (_params == null)
        initParams();
      if (_params != null)
        _params.add(e);

      TableItem item = new TableItem(table, SWT.NONE);
      item.setText(new String[] { name, value });
     
     
    }
    ////Utils.setChangedForDirectory(_parent, _dom);
   
View Full Code Here

        }
      }
    });
    tCommands.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(final SelectionEvent e) {
        TableItem item = (TableItem) e.item;
        if (item == null)
          return;
        bRemoveExitcode.setEnabled(tCommands.getSelectionCount() > 0);
        cExitcode.setFocus();
View Full Code Here

    Element e = null;
    //if (index == -1) {

      e = new Element("start_job");       
      e.setAttribute("job", "job" + tCommands.getItemCount());
      TableItem item = new TableItem(tCommands, SWT.NONE);
      item.setText(new String[] { "start_job", "job"+tCommands.getItemCount(), "", "" });

      listener.addCommand(e);

//    }
View Full Code Here

    //if (index == -1) {

      e = new Element("order");     
      e.setAttribute("job_chain", "job_chain" + tCommands.getItemCount());   
      e.setAttribute("replace", "yes");
      TableItem item = new TableItem(tCommands, SWT.NONE);
      item.setText(new String[] { "order", "", "job_chain_" + tCommands.getItemCount(), "" });
      listener.addCommand(e);

//    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.TableItem

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.