Package bufferings.ktr.wjr.client.ui.widget

Examples of bufferings.ktr.wjr.client.ui.widget.WjrTreeItem


    WjrTree tree = treePanel.getTree();
    tree.removeItems();

    List<WjrClassItem> classStoreItems = store.getClassItems();
    for (WjrClassItem classStoreItem : classStoreItems) {
      WjrTreeItem classTreeItem = createTreeItem(classStoreItem);
      storeItems.add(classStoreItem);
      treeItems.add(classTreeItem);

      List<WjrMethodItem> methodStoreItems =
        store.getMethodItems(classStoreItem.getClassName());
      storeItems.addAll(methodStoreItems);
      for (WjrMethodItem wjrMethodItem : methodStoreItems) {
        WjrTreeItem methodTreeItem = createTreeItem(wjrMethodItem);
        treeItems.add(methodTreeItem);
        classTreeItem.addItem(methodTreeItem);
      }

      tree.addItem(classTreeItem);
View Full Code Here


   * {@inheritDoc}
   */
  public void repaintTreeItemAncestors(WjrStore store, WjrMethodItem methodItem) {
    updateResultPanel(store);

    WjrTreeItem treeItem = treeItems.get(storeItems.indexOf(methodItem));
    repaintTreeItem(treeItem, methodItem);

    WjrTreeItem parentTreeItem = treeItem.getParentItem();
    repaintTreeItem(parentTreeItem, storeItems.get(treeItems
      .indexOf(parentTreeItem)));
  }
View Full Code Here

  /**
   * {@inheritDoc}
   */
  public void onSelection(SelectionEvent<WjrTreeItem> event) {
    WjrTreeItem treeItem = event.getSelectedItem();
    if (!treeItem.isSelected()) {
      treeItem.setSelectedStyle("");
      updateTracePanel(null);
    } else {
      WjrStoreItem storeItem =
        (WjrStoreItem) storeItems.get(treeItems.indexOf(treeItem));
      treeItem.setSelectedStyle(getTreeItemSelectedStyle(storeItem));
      updateTracePanel(storeItem);
    }
  }
View Full Code Here

   * @param storeItem
   *          The test store item.
   * @return The tree item.
   */
  private WjrTreeItem createTreeItem(WjrStoreItem storeItem) {
    WjrTreeItem treeItem = new WjrTreeItem();
    treeItem.addSelectionHandler(this);
    treeItem.addValueChangeHandler(this);
    repaintTreeItem(treeItem, storeItem);
    return treeItem;
  }
View Full Code Here

TOP

Related Classes of bufferings.ktr.wjr.client.ui.widget.WjrTreeItem

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.