public class ScheduleChangeController extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
ScheduleChangeController.NonSelectableTreeSelectionModel
A non-selectable tree selection model but allow first selection
|
Constructor and Description |
---|
ScheduleChangeController() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ScheduleChangeListenerInterface listener)
Add a ScheduleChangeListenerInterface into the controller
|
void |
addSchedule(Schedule schedule)
Handle the event that a new schedule is added
|
void |
complete()
Call this method when the SearchSchedules worker finishes its job
|
void |
completeUploading(java.lang.String KARFileLSID,
java.lang.String KARFilePath,
java.lang.String workflowName,
java.lang.String workflowLSID,
java.lang.String repositoryName)
Call the method when the uploading is done.
|
void |
disableSchedule(Schedule schedule)
Handle the event that a schedule will be disabled
|
void |
disableTreeSelection()
Disable selecting a node from tree
|
void |
enableSchedule(Schedule schedule)
Handle the event that a schedule will be enabled
|
void |
enableTreeSelection()
Enable selecting a node from tree
|
void |
removeListener(ScheduleChangeListenerInterface listener)
Remove a listener from the controller
|
void |
removeSchedule(Schedule schedule)
Handle the event that a schedule is removed
|
void |
setComponentLibraryTab(ComponentLibraryTab tab)
Set the component library tab
|
void |
setShowWarningMessageOnNoReporting(boolean showWarningMessageOnNoReporting)
Set the controller showing the warning message or not if there is no reporting design on the workflow.
|
boolean |
showWarningMessageOnNoReporting()
If the warning message will be shown if there is no reporting design on the workflow.
|
void |
startProgressBar()
Call this method to start progress bar
|
void |
stopProgressBar()
Call this method to stop progress bar
|
void |
update(Schedule[] newSchedules)
Handle the event that new schedules will replace the old one.
|
public ScheduleChangeController()
public void addListener(ScheduleChangeListenerInterface listener)
listener
- public void removeListener(ScheduleChangeListenerInterface listener)
listener
- public void addSchedule(Schedule schedule) throws java.lang.Exception
schedule
- the new schedulejava.lang.Exception
public void removeSchedule(Schedule schedule) throws java.lang.Exception
schedule
- the schedule will be removedjava.lang.Exception
public void enableSchedule(Schedule schedule) throws java.lang.Exception
schedule
- the schedule will be enabledjava.lang.Exception
public void disableSchedule(Schedule schedule) throws java.lang.Exception
schedule
- the schedule will be disabledjava.lang.Exception
public void update(Schedule[] newSchedules) throws java.lang.Exception
newSchedule
- new schedulesjava.lang.Exception
public void complete()
public void startProgressBar()
public void stopProgressBar()
public void setComponentLibraryTab(ComponentLibraryTab tab)
tab
- public void disableTreeSelection()
public void enableTreeSelection()
public void completeUploading(java.lang.String KARFileLSID, java.lang.String KARFilePath, java.lang.String workflowName, java.lang.String workflowLSID, java.lang.String repositoryName)
KARFileLSID
- the lisd of the uploaded kar fileKARFilePath
- the path of the local kar fileworkflowName
- the name of the workflowworkflowLSID
- the lsid of the workflowrepositoryName
- the name of the remote repositorypublic boolean showWarningMessageOnNoReporting()
public void setShowWarningMessageOnNoReporting(boolean showWarningMessageOnNoReporting)
showWarningMessageOnNoReporting
- true to show the warning message.