All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JObserve.ListBlock

java.lang.Object
   |
   +----JObserve.ListBlock

public final class ListBlock
extends Object
List array class This class manages linked lists of sources, observations etc. *

In the current scheme ,the linkage is done in the Linkage class which has all private members. LabeledLink is derived from Linkage with an added public label. The list is traversed using the Linkage portion of the LabeledList. A data pointer for the associated data is obtained by casting to/from the relevant subclass.

See Also:
LabeledLink

Variable Index

 o CalType
 o editable
Is this list user edit-able?
 o HeadLabel
String for head of list Id
 o ListColumns
 o ListCount
Symbolic values for list related numbers.
 o ListRows
 o myList
Linkage into linked list Called "Queue" in the old c version.
 o myType
Block type
 o ScanType
ListBlock types
 o TitleRows
 o version
Version string from first line of file

Constructor Index

 o ListBlock()
Default constructor Initialized an empty list
 o ListBlock(int)
Constructor from type Initialized an empty list

Method Index

 o CountItems()
Count items in list (not including head/tail Link)
 o LocateItem(int)
Find an entry with a given index (0-rel)
 o LocateItem(String)
Find an entry with a specified label Comparison is case insensitive.

Variables

 o ListCount
 public static final int ListCount
Symbolic values for list related numbers. ListCount, ListColumns, ListRows, TitleRows

 o ListColumns
 public static final int ListColumns
 o ListRows
 public static final int ListRows
 o TitleRows
 public static final int TitleRows
 o HeadLabel
 public static final String HeadLabel
String for head of list Id

 o myList
 public LabeledLink myList
Linkage into linked list Called "Queue" in the old c version.

 o ScanType
 public static final int ScanType
ListBlock types

 o CalType
 public static final int CalType
 o myType
 public int myType
Block type

 o editable
 public boolean editable
Is this list user edit-able?

 o version
 public String version
Version string from first line of file

Constructors

 o ListBlock
 public ListBlock()
Default constructor Initialized an empty list

 o ListBlock
 public ListBlock(int type)
Constructor from type Initialized an empty list

Methods

 o LocateItem
 public LabeledLink LocateItem(String name)
Find an entry with a specified label Comparison is case insensitive.

Parameters:
String - the label of the desired item
Returns:
0f the desired item, null if not found
 o LocateItem
 public LabeledLink LocateItem(int index)
Find an entry with a given index (0-rel)

Parameters:
int - index of the desired item
Returns:
LabeledLinkk 0f the desired item, null if not found
 o CountItems
 public int CountItems()
Count items in list (not including head/tail Link)

Returns:
int the number is actual entries in list

All Packages  Class Hierarchy  This Package  Previous  Next  Index