Class FWProgressViewModel
java.lang.Object
net.simplace.pipe.progress.FWProgressViewModel
Model of the progress view: the progress tasks, sorted by their number in range.
- Author:
- Andreas Enders
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty model.FWProgressViewModel(int aCount) FWProgressViewModel(Vector<FWProgressTask> aTaskVector) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProgressTask(String aProgressID, String aX, String aY, String aSystemID) Creates a task and adds it as the last one.voidaddProgressTask(FWProgressTask aTask) Adds a task and numbers it as the last one.protected booleanintgetCount()
-
Constructor Details
-
FWProgressViewModel
public FWProgressViewModel(int aCount) - Parameters:
aCount- initial count; added tasks are numbered fromaCount + 1
-
FWProgressViewModel
- Parameters:
aTaskVector- the tasks; they are numbered in the order of the vector (before, tasks with equal numbers, e.g. all unnumbered ones, were dropped and the image flag was not set)
-
FWProgressViewModel
public FWProgressViewModel()Creates an empty model.
-
-
Method Details
-
addProgressTask
Adds a task and numbers it as the last one.- Parameters:
aTask- the task;nullis ignored
-
addProgressTask
Creates a task and adds it as the last one.- Parameters:
aProgressID- progress id of the taskaX- x position of the task's image, ornullaY- y position of the task's image, ornullaSystemID- id of the system, ornull
-
getProgressTasks
- Returns:
- the tasks sorted by number in range, or
nullif none was added
-
getCount
public int getCount()- Returns:
- number of tasks
-
areImagesUsed
protected boolean areImagesUsed()- Returns:
trueif a task added withaddProgressTask(FWProgressTask)has an image
-