com.partnersoft.v3x.gui
Class ActionBureau

java.lang.Object
  extended by com.partnersoft.v3x.gui.ActionBureau

public class ActionBureau
extends java.lang.Object

A bureau and dispatcher for named actions. Simply subclass this and add no-arg methods without return values; each of these are then available as named actions.

Also has some added fun: if you prefix your action with "App-", it tries to run the named (everything after the "App-") app via com.partnersoft.v3x.util.AppLauncher.


Constructor Summary
ActionBureau()
           
ActionBureau(java.lang.String name)
           
 
Method Summary
 void addBusyToggleListener(ToggleListener nosey)
           
 void doAction(java.lang.String actionName)
           
 void doRegularActionImp(java.lang.String actionName)
           
 java.lang.String getName()
           
 boolean isBusy()
           
 boolean isIgnoringRequestsWhileBusy()
           
 boolean isSynchronizingAllActions()
           
 boolean isUsingSeparateThread()
           
 void removeBusyToggleListener(ToggleListener nosey)
           
 void setIgnoringRequestsWhileBusy(boolean tizit)
          Set this to true if you want the bureau to ignore requests for actions while it's busy doing another action.
 void setName(java.lang.String newName)
          This is the name used for threads and such.
 void setSynchronizingAllActions(boolean tizit)
          Set this to true if you want all actions to be synchronized.
 void setUsingSeparateThread(boolean newUsingSeparateThread)
          Set to true if you want it to be multithreaded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionBureau

public ActionBureau()

ActionBureau

public ActionBureau(java.lang.String name)
Method Detail

doAction

public void doAction(java.lang.String actionName)

isSynchronizingAllActions

public boolean isSynchronizingAllActions()

setSynchronizingAllActions

public void setSynchronizingAllActions(boolean tizit)
Set this to true if you want all actions to be synchronized.


isIgnoringRequestsWhileBusy

public boolean isIgnoringRequestsWhileBusy()

setIgnoringRequestsWhileBusy

public void setIgnoringRequestsWhileBusy(boolean tizit)
Set this to true if you want the bureau to ignore requests for actions while it's busy doing another action. This is useful for GUIs, when you don't want things to pile up just because a user hit the "Go" button a half-dozen times.


getName

public java.lang.String getName()

addBusyToggleListener

public void addBusyToggleListener(ToggleListener nosey)

removeBusyToggleListener

public void removeBusyToggleListener(ToggleListener nosey)

isBusy

public boolean isBusy()

setName

public void setName(java.lang.String newName)
This is the name used for threads and such.


isUsingSeparateThread

public boolean isUsingSeparateThread()

setUsingSeparateThread

public void setUsingSeparateThread(boolean newUsingSeparateThread)
Set to true if you want it to be multithreaded.


doRegularActionImp

public void doRegularActionImp(java.lang.String actionName)