All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JObserve.GUI.ChangeList

java.lang.Object
   |
   +----JObserve.GUI.ChangeList

public class ChangeList
extends Object
Set of changes to a JObserve scheduling list This is basically a work order for changes to be made to a ListBox


Variable Index

 o blankSelected
true if the list is empty but the dummy blank entry is selected This allows selecting empty lists for insertion
 o delete
Flag for deletion (has priority over insert)
 o fromDelete
Flag for deletion from fromList
 o fromList
The ListBox in which entries were selected
 o indices
An array of indices of the locations of the scans
 o insert
Flag for insertion
 o insertAfter
Index to insert After, (-1 = not defined) only relevant if insert=true
 o insertBefore
Index to insert Before, (-1 = not defined) only relevant if insert=true
 o replaceList
Flag to say if this ChangeList is a total replacement for fromList
 o scans
An array of Scans added or removed
 o swap
Flag for swap (has priority over delete, insert) If this is set the the scans in this.scans are swapped with the scans at the corresponding indices (this.indices) in the fromList.
 o toList
The ListBox to which entries inserted

Constructor Index

 o ChangeList()
Default Constructor
 o ChangeList(ChangeList)
Copy Constructor
 o ChangeList(ListBox, boolean)
Constructor from ListBox Reads selected entries from a list box and optionally clears them

Variables

 o fromList
 public ListBox fromList
The ListBox in which entries were selected

 o toList
 public ListBox toList
The ListBox to which entries inserted

 o scans
 public Scan scans[]
An array of Scans added or removed

 o indices
 public int indices[]
An array of indices of the locations of the scans

 o swap
 public boolean swap
Flag for swap (has priority over delete, insert) If this is set the the scans in this.scans are swapped with the scans at the corresponding indices (this.indices) in the fromList. This operation is it's own reverse.

 o delete
 public boolean delete
Flag for deletion (has priority over insert)

 o fromDelete
 public boolean fromDelete
Flag for deletion from fromList

 o insert
 public boolean insert
Flag for insertion

 o replaceList
 public boolean replaceList
Flag to say if this ChangeList is a total replacement for fromList

 o insertAfter
 public int insertAfter
Index to insert After, (-1 = not defined) only relevant if insert=true

 o insertBefore
 public int insertBefore
Index to insert Before, (-1 = not defined) only relevant if insert=true

 o blankSelected
 public boolean blankSelected
true if the list is empty but the dummy blank entry is selected This allows selecting empty lists for insertion

Constructors

 o ChangeList
 public ChangeList()
Default Constructor

 o ChangeList
 public ChangeList(ChangeList in)
Copy Constructor

Parameters:
ChangeList - to copy
 o ChangeList
 public ChangeList(ListBox inListBox,
                   boolean clear)
Constructor from ListBox Reads selected entries from a list box and optionally clears them

Parameters:
ListBox - to use
boolean - if true clear selections when done.

All Packages  Class Hierarchy  This Package  Previous  Next  Index