示例#1
0
  public PropertiesTreeNode(
      T modelItem, ModelItem parentItem, TestPropertyHolder holder, SoapUITreeModel treeModel) {
    super(modelItem, parentItem, treeModel);
    this.holder = holder;

    for (String name : holder.getPropertyNames()) {
      PropertyTreeNode propertyTreeNode =
          new PropertyTreeNode(holder.getProperty(name), getModelItem(), holder, treeModel);
      propertyNodes.add(propertyTreeNode);
      propertyMap.put(name, propertyTreeNode);
      getTreeModel().mapModelItem(propertyTreeNode);
    }

    testPropertyListener = new InternalTestPropertyListener();
    holder.addTestPropertyListener(testPropertyListener);
  }
示例#2
0
 public void updateName() {
   setName("Properties (" + holder.getPropertyNames().length + ")");
 }
示例#3
0
 public PropertiesModelItem(TestPropertyHolder holder) {
   super(
       "Properties (" + holder.getPropertyNames().length + ")",
       UISupport.createImageIcon("/properties_step.gif"));
   this.holder = holder;
 }