jsynoptic.ui
Class LongAction

java.lang.Object
  extended by jsynoptic.ui.LongAction
All Implemented Interfaces:
java.lang.Runnable

public abstract class LongAction
extends java.lang.Object
implements java.lang.Runnable

Starts a long action. The user can continue to use jsynoptic, possibly with reduced feature.

Version:
1.0 2002
Author:
Nicolas Brodu

Field Summary
protected  boolean background
           
static long LONG_ACTION_FILE_IO
           
static long LONG_ACTION_FILE_OPEN
          Long action masks
static long LONG_ACTION_FILE_SAVE
           
static long LONG_ACTION_PRINT
           
static long LONG_ACTION_SHAPE
           
static long LONG_ACTION_SOURCE
           
protected  long mask
           
protected  java.lang.Object param
           
protected  java.lang.Object target
           
protected  boolean useSwing
           
 
Constructor Summary
LongAction()
           
LongAction(long mask)
           
LongAction(long mask, java.lang.Object param)
           
LongAction(long mask, java.lang.Object param, java.lang.Object target)
           
 
Method Summary
protected abstract  void doAction()
           
 void run()
           
 void start()
           
 void start(boolean background)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LONG_ACTION_FILE_OPEN

public static final long LONG_ACTION_FILE_OPEN
Long action masks

See Also:
Constant Field Values

LONG_ACTION_FILE_SAVE

public static final long LONG_ACTION_FILE_SAVE
See Also:
Constant Field Values

LONG_ACTION_FILE_IO

public static final long LONG_ACTION_FILE_IO
See Also:
Constant Field Values

LONG_ACTION_PRINT

public static final long LONG_ACTION_PRINT
See Also:
Constant Field Values

LONG_ACTION_SOURCE

public static final long LONG_ACTION_SOURCE
See Also:
Constant Field Values

LONG_ACTION_SHAPE

public static final long LONG_ACTION_SHAPE
See Also:
Constant Field Values

mask

protected long mask

param

protected java.lang.Object param

target

protected java.lang.Object target

useSwing

protected boolean useSwing

background

protected boolean background
Constructor Detail

LongAction

public LongAction()
Parameters:
actionMask - Those actions are not available while the long action is beeing execute.
param - User parameter. null by default

LongAction

public LongAction(long mask)

LongAction

public LongAction(long mask,
                  java.lang.Object param)

LongAction

public LongAction(long mask,
                  java.lang.Object param,
                  java.lang.Object target)
Method Detail

run

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

doAction

protected abstract void doAction()

start

public void start()

start

public void start(boolean background)