Hi Lukas,
But I believe I use TaskAdapter. My code:
public void setNewTag(long id, String path) {
GetAvailableCollaboratorsTask contacttask = new
GetAvailableCollaboratorsTask(
id, path);
TaskListener<List<Collaborator>> taskListener = new
TaskListener<List<Collaborator>>() {
@Override
public void taskExecuted(
Task<List<Collaborator>> task) {
cardPane.setSelectedIndex(1);
activityIndicator.setActive(false);
if (task.getResult() != null) {
collaborators = task.getResult();
submitButton.setEnabled(true);
}
}
@Override
public void executeFailed(
Task<List<Collaborator>> task) {
cardPane.setSelectedIndex(1);
submitButton.setEnabled(false);
activityIndicator.setActive(false);
errorLabel.setText("Failed to load
collaborators! "
+ task.getFault());
System.err.println(task.getFault());
}
};
contacttask
.execute(new TaskAdapter<List<Collaborator>>(
taskListener));
}
Do you agree?
Brendan
--
View this message in context:
http://apache-pivot-users.399431.n3.nabble.com/Thread-issue-tp3819808p3821224.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.