Skip to content

Latest commit

 

History

History
49 lines (43 loc) · 1.46 KB

README.md

File metadata and controls

49 lines (43 loc) · 1.46 KB

tuktukfx

Generic Task handling library for JavaFX

implementation group: 'com.legyver', name: 'tuktukfx', version: '2.0.0'

Features

  • 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

Versioning

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

Releases

Licensing

License