dasher
Class CLockEvent

java.lang.Object
  extended by dasher.CEvent
      extended by dasher.CLockEvent

public class CLockEvent
extends CEvent

Event which cues the Interface to lock or unlock Dasher, and may optionally give a completion perrcentage of an event necessitating the lock's engagement.

The interface will always honour a cue to lock Dasher; user interface components should, if possible, inform the user that the lock is engaged, and, again if possible, give some indication of the percent completion.

If raising lock events relating to a monolithic operation, or an operation whose duration is unknown, zero percent completion should be indicated until finished.


Field Summary
 boolean m_bLock
          Lock engaged
 int m_iPercent
          Percent completion
 java.lang.String m_strMessage
          Message intended for the user
 
Fields inherited from class dasher.CEvent
m_iEventType
 
Constructor Summary
CLockEvent(java.lang.String strMessage, boolean bLock, int iPercent)
          Creates a new Lock event
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_strMessage

public java.lang.String m_strMessage
Message intended for the user


m_bLock

public boolean m_bLock
Lock engaged


m_iPercent

public int m_iPercent
Percent completion

Constructor Detail

CLockEvent

public CLockEvent(java.lang.String strMessage,
                  boolean bLock,
                  int iPercent)
Creates a new Lock event

Parameters:
strMessage - Message to show the user during lock
bLock - Whether the lock should currently be engaged
iPercent - Percentage completion