Examples of TreeDataModel


Examples of org.apache.myfaces.tobago.model.TreeDataModel

public abstract class AbstractUITreeNode
    extends AbstractUIColumn implements SupportsMarkup, TreeModelBuilder, Configurable {

  @Override
  public void encodeBegin(FacesContext facesContext) throws IOException {
    final TreeDataModel model = ComponentUtils.findAncestor(this, AbstractUIData.class).getTreeDataModel();
    model.setRowClientId(getClientId(facesContext));

    super.encodeBegin(facesContext);
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.model.TreeDataModel

  /**
   * Returns the level of the tree node inside of the virtual tree. The root node has level 0.
   * The children of the root note have level 1, and so on.
   */
  public int getLevel() {
    final TreeDataModel model = ComponentUtils.findAncestor(this, AbstractUIData.class).getTreeDataModel();
    return model.getLevel();
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.model.TreeDataModel

    final TreeDataModel model = ComponentUtils.findAncestor(this, AbstractUIData.class).getTreeDataModel();
    return model.getLevel();
  }

  public List<Boolean> getJunctions() {
    final TreeDataModel model = ComponentUtils.findAncestor(this, AbstractUIData.class).getTreeDataModel();
    return model.getJunctions();
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.model.TreeDataModel

    final TreeDataModel model = ComponentUtils.findAncestor(this, AbstractUIData.class).getTreeDataModel();
    return model.getJunctions();
  }

  public boolean isFolder() {
    final TreeDataModel model = ComponentUtils.findAncestor(this, AbstractUIData.class).getTreeDataModel();
    return model.isFolder();
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.model.TreeDataModel

    final TreeDataModel model = ComponentUtils.findAncestor(this, AbstractUIData.class).getTreeDataModel();
    return model.isFolder();
  }

  public TreePath getPath() {
    final TreeDataModel model = ComponentUtils.findAncestor(this, AbstractUIData.class).getTreeDataModel();
    return model.getPath();
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.model.TreeDataModel

  @Override
  public void encodeBegin(FacesContext facesContext) throws IOException {
    final AbstractUIData data = ComponentUtils.findAncestor(this, AbstractUIData.class);
    DataModel model = data.getDataModel();
    if (model instanceof TreeDataModel) {
      final TreeDataModel treeDataModel = (TreeDataModel) model;
      treeDataModel.setRowClientId(getClientId(facesContext));
    }

    super.encodeBegin(facesContext);
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.model.TreeDataModel

  private void init() {
    if (!initialized) {
      Object value = getValue();
      boolean showRoot = isShowRoot();
      if (value instanceof DefaultMutableTreeNode) {
        dataModel = new TreeDataModel((DefaultMutableTreeNode) value, showRoot, getExpandedState());
      }
      initialized = true;
    }
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.model.TreeDataModel

public abstract class AbstractUITreeNode
    extends UIColumn implements SupportsMarkup, TreeModelBuilder, Configurable {

  @Override
  public void encodeBegin(FacesContext facesContext) throws IOException {
    final TreeDataModel model = ComponentUtils.findAncestor(this, AbstractUIData.class).getTreeDataModel();
    model.setRowClientId(getClientId(facesContext));

    super.encodeBegin(facesContext);
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.model.TreeDataModel

  /**
   * Returns the level of the tree node inside of the virtual tree. The root node has level 0.
   * The children of the root note have level 1, and so on.
   */
  public int getLevel() {
    final TreeDataModel model = ComponentUtils.findAncestor(this, AbstractUIData.class).getTreeDataModel();
    return model.getLevel();
  }
View Full Code Here

Examples of org.apache.myfaces.tobago.model.TreeDataModel

    final TreeDataModel model = ComponentUtils.findAncestor(this, AbstractUIData.class).getTreeDataModel();
    return model.getLevel();
  }

  public List<Boolean> getJunctions() {
    final TreeDataModel model = ComponentUtils.findAncestor(this, AbstractUIData.class).getTreeDataModel();
    return model.getJunctions();
  }
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.