Generic Task handling library for JavaFX
implementation group: 'com.legyver', name: 'tuktukfx', version: '2.0.0'
- Separation of tasks from JavaFX with TaskStatusAdapter.
void updateMessage(String message);
void updateProgress(double numerator, double denominator);
void updateTitle(String message);
(You can find a JavaFxAdapter in 'legyver:fenxlib-ext-tuktukfx')
- Event-based notification
addObserver(TaskEventType.CURSOR, new ProgressObserver(task, timingData));
- Business logic contained within TaskProcessor (that you supply)
@Override
public void process(TaskStatusAdapter task) throws CoreExceotion {
int count = 0;
while (!task.isCancelled()) {
processingTask.notifyObservers(new CursorTaskEvent(++count));
- ProtoTaskFlow
addObservers(adapter);
taskProcessor.process(adapter);
updateInstafeed(adapter, "");
updateStatus(adapter, "Done");
updateProgress(adapter, domain, domain);//complete
Release.Breaking.Feature.Fix
- Release: Used for major milestone releases.
- Breaking: Used when the change breaks backward compatibility.
- Feature: Used when introducing features that do not break backward compatability.
- Fix: Used for small bug fixes