VLab Common 1.2

pl.psnc.vlab.util.thread
Class LongTaskResult

java.lang.Object
  extended by pl.psnc.vlab.util.thread.LongTaskResult

public class LongTaskResult
extends java.lang.Object

LongTaskResult class - used be the DefaultLongTask SwingWorker class to wrap result information from the background threads.

Author:
Dominik Stoklosa (~osa~)
Email address
osa@man.poznan.pl

Constructor Summary
LongTaskResult()
          Creates a new instance of LongTaskResult
LongTaskResult(java.lang.String message)
          Creates a new instance of LongTaskResult with message key defined
LongTaskResult(java.lang.String message, boolean saveStates)
          Creates a new instance of LongTaskResult with message key and flag which indicates whether to save form components states
LongTaskResult(java.lang.String message, boolean saveStates, javax.swing.JComponent focusableComponent)
          Creates a new instance of LongTaskResult with message key, focusable component defined and flag which indicates whether to save form components states
LongTaskResult(java.lang.String message, javax.swing.JComponent focusableComponent)
          Creates a new instance of LongTaskResult with message key, focusable component defined
 
Method Summary
 javax.swing.JComponent getFocusableComponent()
          Get value of focusableComponent
 java.lang.String getMessage()
          Get value of message
 boolean isSaveStates()
          Get value of saveStates
 void setFocusableComponent(javax.swing.JComponent focusableComponent)
          Set value of field focusableComponent
 void setMessage(java.lang.String message)
          Set value of field message
 void setSaveStates(boolean saveStates)
          Set value of field saveStates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LongTaskResult

public LongTaskResult()
Creates a new instance of LongTaskResult


LongTaskResult

public LongTaskResult(java.lang.String message)
Creates a new instance of LongTaskResult with message key defined

Parameters:
message - Stores an instance of localized message key

LongTaskResult

public LongTaskResult(java.lang.String message,
                      boolean saveStates)
Creates a new instance of LongTaskResult with message key and flag which indicates whether to save form components states

Parameters:
message - Stores an instance of localized message key
saveStates - Tells whether to save form components states

LongTaskResult

public LongTaskResult(java.lang.String message,
                      javax.swing.JComponent focusableComponent)
Creates a new instance of LongTaskResult with message key, focusable component defined

Parameters:
message - Stores an instance of localized message key
focusableComponent - Stores an instance of component which should received focus when tasks is over

LongTaskResult

public LongTaskResult(java.lang.String message,
                      boolean saveStates,
                      javax.swing.JComponent focusableComponent)
Creates a new instance of LongTaskResult with message key, focusable component defined and flag which indicates whether to save form components states

Parameters:
message - Stores an instance of localized message key
saveStates - Tells whether to save form components states
focusableComponent - Stores an instance of component which should received focus when tasks is over
Method Detail

getFocusableComponent

public javax.swing.JComponent getFocusableComponent()
Get value of focusableComponent

Returns:
the focusableComponent

setFocusableComponent

public void setFocusableComponent(javax.swing.JComponent focusableComponent)
Set value of field focusableComponent

Parameters:
focusableComponent - the focusableComponent to set

getMessage

public java.lang.String getMessage()
Get value of message

Returns:
the message

setMessage

public void setMessage(java.lang.String message)
Set value of field message

Parameters:
message - the message to set

isSaveStates

public boolean isSaveStates()
Get value of saveStates

Returns:
the saveStates

setSaveStates

public void setSaveStates(boolean saveStates)
Set value of field saveStates

Parameters:
saveStates - the saveStates to set

VLab Common 1.2

Copyright 2004 by VLAB Dominik Stoklosa.