⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 treenodeimpl.java

📁 adf-faces 甲骨文的jsf组件,功能很强.开源免费.
💻 JAVA
字号:
/*
** Copyright (c) Oracle Corporation 2003. All Rights Reserved.
**
**345678901234567890123456789012345678901234567890123456789012345678901234567890
*/
package oracle.adfdemo.view.faces;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * A basic implementation of TreeNode that exposes the extra magic
 * keys that will be requested by the tree renderer.
 * <p>
 * @version $Name:  $ ($Revision: adfrt/faces/adf-faces-demo/src/main/java/oracle/adfdemo/view/faces/TreeNodeImpl.java#1 $) $Date: 16-aug-2005.15:12:29 $
 * @author Adam Winer
 */
public class TreeNodeImpl implements Serializable
{
  public String getText()
  {
    return _text;
  }

  public void setText(String text)
  {
    _text = text;
  }


  public String getIcon()
  {
    return _icon;
  }

  public void setIcon(String icon)
  {
    _icon = icon;
  }

  public String getDestination()
  {
    return _destination;
  }


  public void setDestination(String destination)
  {
    _destination = destination;
  }

  public void setChildren(List nodes)
  {
    // Clone on the way in.
    _nodes = new ArrayList(nodes);
  }

  public List getChildren()
  {
    if (_nodes == null)
      return null;

    return Collections.unmodifiableList(_nodes);
  }


  private String _text = null;
  private String _destination = null;
  private String _icon = null;
  private List   _nodes;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -