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
-
blankSelected
- true if the list is empty but the dummy blank entry is selected
This allows selecting empty lists for insertion
-
delete
- Flag for deletion (has priority over insert)
-
fromDelete
- Flag for deletion from fromList
-
fromList
- The ListBox in which entries were selected
-
indices
- An array of indices of the locations of the scans
-
insert
- Flag for insertion
-
insertAfter
- Index to insert After, (-1 = not defined)
only relevant if insert=true
-
insertBefore
- Index to insert Before, (-1 = not defined)
only relevant if insert=true
-
replaceList
- Flag to say if this ChangeList is a total replacement
for fromList
-
scans
- An array of Scans added or removed
-
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.
-
toList
- The ListBox to which entries inserted
-
ChangeList()
- Default Constructor
-
ChangeList(ChangeList)
- Copy Constructor
-
ChangeList(ListBox, boolean)
- Constructor from ListBox
Reads selected entries from a list box and optionally clears them
fromList
public ListBox fromList
- The ListBox in which entries were selected
toList
public ListBox toList
- The ListBox to which entries inserted
scans
public Scan scans[]
- An array of Scans added or removed
indices
public int indices[]
- An array of indices of the locations of the scans
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.
delete
public boolean delete
- Flag for deletion (has priority over insert)
fromDelete
public boolean fromDelete
- Flag for deletion from fromList
insert
public boolean insert
- Flag for insertion
replaceList
public boolean replaceList
- Flag to say if this ChangeList is a total replacement
for fromList
insertAfter
public int insertAfter
- Index to insert After, (-1 = not defined)
only relevant if insert=true
insertBefore
public int insertBefore
- Index to insert Before, (-1 = not defined)
only relevant if insert=true
blankSelected
public boolean blankSelected
- true if the list is empty but the dummy blank entry is selected
This allows selecting empty lists for insertion
ChangeList
public ChangeList()
- Default Constructor
ChangeList
public ChangeList(ChangeList in)
- Copy Constructor
- Parameters:
-
ChangeList
- to copy
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