Examples of TreeDataModel


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

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

  @Override
  public void encodeBegin(final 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.richfaces.model.TreeDataModel

  }

  private ExtendedDataModel createDataModel(boolean allowCached) {
    Object value = this.getValue();
    if (value != null) {
      TreeDataModel treeDataModel = new TreeDataModel();
      treeDataModel.setWrappedData(this.getValue());
     
      if (allowCached && PRESERVE_MODEL_REQUEST.equals(getPreserveModel())) {
        treeDataModel = new CacheableTreeDataModel(treeDataModel);
      }
View Full Code Here

Examples of org.richfaces.model.TreeDataModel

  }

  private ExtendedDataModel createDataModel(boolean allowCached) {
    Object value = this.getValue();
    if (value != null) {
      TreeDataModel treeDataModel = new TreeDataModel();
      treeDataModel.setWrappedData(this.getValue());
     
      if (allowCached && PRESERVE_MODEL_REQUEST.equals(getPreserveModel())) {
        treeDataModel = new CacheableTreeDataModel(treeDataModel);
      }
View Full Code Here

Examples of org.richfaces.model.TreeDataModel

  }

  private ExtendedDataModel createDataModel(boolean allowCached) {
    Object value = this.getValue();
    if (value != null) {
      TreeDataModel treeDataModel = new TreeDataModel();
      treeDataModel.setWrappedData(this.getValue());
     
      if (allowCached && PRESERVE_MODEL_REQUEST.equals(getPreserveModel())) {
        treeDataModel = new CacheableTreeDataModel(treeDataModel);
      }
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.