org.radrails.db.internal.ui
Class Column

java.lang.Object
  extended byorg.radrails.db.internal.ui.Column
All Implemented Interfaces:
IDatabaseElement

public class Column
extends java.lang.Object
implements IDatabaseElement

Represents a Column in the DataNavigator.

Version:
0.3.1
Author:
Kyle

Constructor Summary
Column(java.lang.String columnName, Table table)
          Creates a new Column.
 
Method Summary
 java.lang.Object[] getChildren()
          Gets all of the children of this element.
 java.lang.String getName()
          Gets the name of the element.
 IDatabaseElement getParent()
          Gets the parent of this element.
 boolean hasChildren()
          Checks if this object has any children.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Column

public Column(java.lang.String columnName,
              Table table)
Creates a new Column.

Parameters:
columnName - The name of the column.
table - The table to this column belongs in.
Method Detail

getParent

public IDatabaseElement getParent()
Description copied from interface: IDatabaseElement
Gets the parent of this element.

Specified by:
getParent in interface IDatabaseElement
Returns:
The IDatabaseElement that contains this element.
See Also:
IDatabaseElement.getParent()

getName

public java.lang.String getName()
Description copied from interface: IDatabaseElement
Gets the name of the element.

Specified by:
getName in interface IDatabaseElement
Returns:
The name of the element.
See Also:
IDatabaseElement.getName()

getChildren

public java.lang.Object[] getChildren()
Description copied from interface: IDatabaseElement
Gets all of the children of this element.

Specified by:
getChildren in interface IDatabaseElement
Returns:
An Object[] of the children belonging to this element.
See Also:
IDatabaseElement.getChildren()

hasChildren

public boolean hasChildren()
Description copied from interface: IDatabaseElement
Checks if this object has any children.

Specified by:
hasChildren in interface IDatabaseElement
Returns:
true if this element has children, false otherwise.
See Also:
IDatabaseElement.hasChildren()