summaryrefslogtreecommitdiff
path: root/java/src/IceGridGUI/LiveDeployment/ListTreeNode.java
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2014-10-20 11:40:05 -0230
committerMatthew Newhook <matthew@zeroc.com>2014-10-20 11:40:05 -0230
commitb51469b41167fb86ae2059a15cf0475c53fdda7b (patch)
treefc85d6ca2efd89c67e1e4e7438f437c3e08313f4 /java/src/IceGridGUI/LiveDeployment/ListTreeNode.java
parentFixed (ICE-5695) - IceSSL: misleading exception (diff)
downloadice-b51469b41167fb86ae2059a15cf0475c53fdda7b.tar.bz2
ice-b51469b41167fb86ae2059a15cf0475c53fdda7b.tar.xz
ice-b51469b41167fb86ae2059a15cf0475c53fdda7b.zip
Down with ant. From the gradle to the grave.
Diffstat (limited to 'java/src/IceGridGUI/LiveDeployment/ListTreeNode.java')
-rw-r--r--java/src/IceGridGUI/LiveDeployment/ListTreeNode.java88
1 files changed, 0 insertions, 88 deletions
diff --git a/java/src/IceGridGUI/LiveDeployment/ListTreeNode.java b/java/src/IceGridGUI/LiveDeployment/ListTreeNode.java
deleted file mode 100644
index b28a5824ea2..00000000000
--- a/java/src/IceGridGUI/LiveDeployment/ListTreeNode.java
+++ /dev/null
@@ -1,88 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
-//
-// This copy of Ice is licensed to you under the terms described in the
-// ICE_LICENSE file included in this distribution.
-//
-// **********************************************************************
-
-package IceGridGUI.LiveDeployment;
-
-import java.util.Enumeration;
-
-//
-// An TreeNode that holds a list of children
-//
-abstract class ListTreeNode extends TreeNode
-{
- @Override
- public Enumeration<Object> children()
- {
- return new Enumeration<Object>()
- {
- @Override
- public boolean hasMoreElements()
- {
- return _p.hasNext();
- }
-
- @Override
- public Object nextElement()
- {
- return _p.next();
- }
-
- private java.util.Iterator _p = _children.iterator();
- };
- }
-
- @Override
- public boolean getAllowsChildren()
- {
- return true;
- }
-
- @Override
- public javax.swing.tree.TreeNode getChildAt(int childIndex)
- {
- if(childIndex < 0)
- {
- throw new ArrayIndexOutOfBoundsException(childIndex);
- }
- else if(childIndex < _children.size())
- {
- return _children.get(childIndex);
- }
- else
- {
- throw new ArrayIndexOutOfBoundsException(childIndex);
- }
- }
-
- @Override
- public int getChildCount()
- {
- return _children.size();
- }
-
- @Override
- public int getIndex(javax.swing.tree.TreeNode node)
- {
- return _children.indexOf(node);
- }
-
- @Override
- public boolean isLeaf()
- {
- return _children.isEmpty();
- }
-
- protected ListTreeNode(TreeNode parent, String id)
- {
- super(parent, id);
- }
-
- protected final java.util.List<javax.swing.tree.TreeNode> _children =
- new java.util.LinkedList<javax.swing.tree.TreeNode>();
-}