com.sybase.uep.bobclient.actions
Interface IBOBAction

All Superinterfaces:
java.lang.Runnable
All Known Implementing Classes:
Action, ActionList, AlertAction, AlertErrorAction, AlertQuestionAction, BackAction, CloseScreenAction, DisableScreenSaverAction, EnableScreenSaverAction, ExitAction, GoogleMapAction, LockClientAction, LoginAction, LogoutAction, NamedQueryAction, NoOpAction, PersistAction, RefreshAction, RIMPimAppAction, SaveMobileDataContextAction, ScreenAction, SubmitAction, SyncAction, SyncPublicationAction, TabAction

public interface IBOBAction
extends java.lang.Runnable

An interface implementation of an action in BOB Blackberry Client. All actions must implement this interface.

The key method is the run() method which will execute the action. Other methods return status of the running thread.

Author:
bdeng
See Also:
Action, Runnable

Method Summary
 void finish(boolean success)
          This will get called when the action is finished
 boolean hasFailed()
          Check to see if the action failed
 boolean isProcessing()
          Checks to see if the action is still processing
 void setHasFailed(boolean hasFailed)
          Set the action to have succeeded or failed
 void setIsProcessing(boolean isProcessing)
          Set the boolean value of true or value if the action is processing
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

hasFailed

boolean hasFailed()
Check to see if the action failed

Returns:
true if the action failed otherwise false

setHasFailed

void setHasFailed(boolean hasFailed)
Set the action to have succeeded or failed

Parameters:
hasFailed - true if the action failed otherwise false

isProcessing

boolean isProcessing()
Checks to see if the action is still processing

Returns:
true if the action is current being processed otherwise false

setIsProcessing

void setIsProcessing(boolean isProcessing)
Set the boolean value of true or value if the action is processing

Parameters:
isProcessing - true if action is processing else false

finish

void finish(boolean success)
This will get called when the action is finished

Parameters:
success - true if the action succeeded otherwise false
See Also:
Action