Package es.java.otro.model

Examples of es.java.otro.model.Root


      }
    });
  }
 
  protected Object getInitialInput() {
    Root root = Root.getInstance();
    root.setName("Feeds");
    return root;
  }
View Full Code Here


   * Object)
   */
  @Override
  public Object[] getChildren(Object parentElement) {
    if (parentElement instanceof Root) {
      Root root = (Root) parentElement;
      return root.getFeeds().toArray();
    } else if (parentElement instanceof Feed) {
      Feed feed = (Feed) parentElement;
      return feed.getEntries().toArray();
    } else {
      return new Object[0];
View Full Code Here

   * Object)
   */
  @Override
  public boolean hasChildren(Object element) {
    if (element instanceof Root) {
      Root root = (Root) element;
      return !root.getFeeds().isEmpty();
    } else if (element instanceof Feed) {
      Feed feed = (Feed) element;
      return !feed.getEntries().isEmpty();
    } else
      return false;
View Full Code Here

TOP

Related Classes of es.java.otro.model.Root

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.