de.init.loext.its.dialogs.ui
Class ItsDialogModel.ConcurrentDialogTask

java.lang.Object
  extended by de.init.loext.its.dialogs.ui.ItsDialogModel.ConcurrentDialogTask
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ItsDialogModel

public static class ItsDialogModel.ConcurrentDialogTask
extends java.lang.Object
implements java.lang.Runnable

Wrapper class to circumvent the reception of the same event twice from LibreOffice. THIS IS A HACK AND IS CONSIDERED HARMFUL. REMOVE THIS CLASS; IF THERE IS A WAY TO SUPRESS THE MULTIPLE FIRING OF THE RESPECTIVE LIBREOFFICE EVENT

Author:
mkandora

Method Summary
static void reset()
          resets the internal lock
 void run()
           
static ItsDialogModel.ConcurrentDialogTask setTask(java.lang.Runnable run)
          sets a task for later scheduling
 ItsDialogModel.ConcurrentDialogTask start()
          Starts executing a scheduled task for execution
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setTask

public static ItsDialogModel.ConcurrentDialogTask setTask(java.lang.Runnable run)
sets a task for later scheduling

Parameters:
run -
Returns:

start

public ItsDialogModel.ConcurrentDialogTask start()
Starts executing a scheduled task for execution

Returns:

reset

public static void reset()
resets the internal lock


run

public void run()
Specified by:
run in interface java.lang.Runnable