Examples of ComboTree


Examples of br.com.visualmidia.ui.widgets.ComboTree

  private void createBillPlanField() {
    Label billPlanLabel = new Label(components, SWT.NULL);
    billPlanLabel.setText("Selecione a Categoria: ");
    billPlanLabel.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WIDGET_LIGHT_SHADOW));

    billPlanCombo = new ComboTree(components, SWT.NONE);

    GridData data = new GridData(GridData.FILL);
    data.horizontalSpan = 2;
    data.widthHint = 140;
    billPlanCombo.setLayoutData(data);
View Full Code Here

Examples of br.com.visualmidia.ui.widgets.ComboTree

        FormData formData = new FormData();
        formData.top = new FormAttachment(operationsButtonComposite, 20);
        formData.left = new FormAttachment(0, 10);
        billPlanLabel.setLayoutData(formData);

        billPlanComboTree = new ComboTree(accountRegister, SWT.NONE);
        new BillPlanAssembler(billPlanComboTree, "Transfer�ncia entre contas");
        billPlanComboTree.addModifyListener(new ModifyListener() {
            public void modifyText(ModifyEvent arg0) {
              if (!billPlanComboTree.getText().equals("Transfer�ncia entre contas ")) {
                    boolean visible;
View Full Code Here

Examples of br.com.visualmidia.ui.widgets.ComboTree

        data.left = new FormAttachment(0, 10);
        billPlanLabel.setLayoutData(data);
    }
   
    private void createBillPlanCombo() {
        billPlanCombo = new ComboTree(screenComposite, SWT.NONE);
        new BillPlanAssembler(billPlanCombo, (extractBankItem.isCredit()? 0 : 1 ));
        billPlanCombo.setEditable(false);
        billPlanCombo.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
       
        FormData data = new FormData();
View Full Code Here

Examples of br.com.visualmidia.ui.widgets.ComboTree

        courseLabel.setText("Selecione o(s) curso(s) que o aluno concluiu");
    }

    @SuppressWarnings("unchecked")
  private void createComboTree() {
        comboTree = new ComboTree(dialog, SWT.NONE);
       
        GridData data = new GridData();
        data.widthHint = 150;
        comboTree.setLayoutData(data);
       
View Full Code Here

Examples of br.com.visualmidia.ui.widgets.ComboTree

        data.left = new FormAttachment(valueText, 10);
        billPlanLabel.setLayoutData(data);
    }
   
    private void createBillPlanCombo() {
        billPlanCombo = new ComboTree(addTransactionComposite, SWT.NONE);
        new BillPlanAssembler(billPlanCombo);
        billPlanCombo.setEditable(false);
        billPlanCombo.setBackground(Display.getCurrent().getSystemColor(SWT.COLOR_WHITE));
       
        billPlanCombo.addListener(SWT.Selection, new Listener(){
View Full Code Here

Examples of org.jeecgframework.core.common.model.json.ComboTree

  }

  @SuppressWarnings("unchecked")
  public ComboTree tree(TSDepart depart, boolean recursive) {
    ComboTree tree = new ComboTree();
    tree.setId(oConvertUtils.getString(depart.getId()));
    tree.setText(depart.getDepartname());
    List<TSDepart> departsList = findByProperty(TSDepart.class, "TSPDepart.id", depart.getId());
    if (departsList != null && departsList.size() > 0) {
      tree.setState("closed");
      tree.setChecked(false);
      if (recursive) {// 递归查询子节点
        List<TSDepart> departList = new ArrayList<TSDepart>(departsList);
        //Collections.sort(departList, new SetListSort());// 排序
        List<ComboTree> children = new ArrayList<ComboTree>();
        for (TSDepart d : departList) {
          ComboTree t = tree(d, true);
          children.add(t);
        }
        tree.setChildren(children);
      }
    }
View Full Code Here

Examples of org.jeecgframework.core.common.model.json.ComboTree

  }

  // 构建ComboTree
  private ComboTree comboTree(Object obj, ComboTreeModel comboTreeModel, List in, boolean recursive) {
    ComboTree tree = new ComboTree();
    Map<String, Object> attributes = new HashMap<String, Object>();
    ReflectHelper reflectHelper = new ReflectHelper(obj);
    String id = oConvertUtils.getString(reflectHelper.getMethodValue(comboTreeModel.getIdField()));
    tree.setId(id);
    tree.setText(oConvertUtils.getString(reflectHelper.getMethodValue(comboTreeModel.getTextField())));
    if (comboTreeModel.getSrcField() != null) {
      attributes.put("href", oConvertUtils.getString(reflectHelper.getMethodValue(comboTreeModel.getSrcField())));
      tree.setAttributes(attributes);
    }
    if (in == null) {
    } else {
      if (in.size() > 0) {
        for (Object inobj : in) {
          ReflectHelper reflectHelper2 = new ReflectHelper(inobj);
          String inId = oConvertUtils.getString(reflectHelper2.getMethodValue(comboTreeModel.getIdField()));
          if (inId == id) {
            tree.setChecked(true);
          }
        }
      }
    }
    List tsFunctions = (List) reflectHelper.getMethodValue(comboTreeModel.getChildField());
    if (tsFunctions != null && tsFunctions.size() > 0) {
      tree.setState("closed");
      tree.setChecked(false);
      /*
       * if (recursive) {// 递归查询子节点 List<TSFunction> functionList = new ArrayList<TSFunction>(tsFunctions); Collections.sort(functionList, new SetListSort());// 排序 List<ComboTree> children = new ArrayList<ComboTree>(); for (TSFunction f : functionList) { ComboTree t = comboTree(f,comboTreeModel,in, true); children.add(t); } tree.setChildren(children); }
       */
    }
    return tree;
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.