JAPI 0.9.0
Yet another Java API
API Documentation

net.sf.japi.swing.prefs.keys
Class AbstractSimpleNode<C>

java.lang.Object
  extended by net.sf.japi.swing.prefs.keys.AbstractSimpleNode<C>
Direct Known Subclasses:
KeyStrokeRootNode

public abstract class AbstractSimpleNode<C>
extends Object

Base class for simple nodes.

Author:
Christian Hujer

Constructor Summary
protected AbstractSimpleNode(C[] children)
          Create an AbstractSimpleNode.
 
Method Summary
 C getChild(int index)
          Gets a child with a specific index.
 int getChildCount()
          Get the number of children.
 Object getValueAt(int column)
          Get the value of this node at a certain value index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSimpleNode

protected AbstractSimpleNode(@Nullable
                             C[] children)
Create an AbstractSimpleNode.

Parameters:
children -
Method Detail

getChild

@Nullable
public final C getChild(int index)
Gets a child with a specific index.

Parameters:
index - Index of desired child
Returns:
child with index or null if no such child.

getChildCount

public final int getChildCount()
Get the number of children.

Returns:
number of children

getValueAt

public Object getValueAt(int column)
Get the value of this node at a certain value index.

Parameters:
column - Index of desired value
Returns:
value at index

JAPI
Yet another Java API
API Documentation

© 2005-2006 Christian Hujer. All rights reserved. See copyright