dasher
Class CEditContextEvent

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

public class CEditContextEvent
extends CEvent

Event which can be loosely interpreted to mean "I want to know what the context is". It will be issued by the Interface when the internal context buffer is empty, or the current context is most likely no longer valid, but a UI component may know what the context ought to be.

Components should respond by setting the newContext property. When first dispatched this property is empty, so components should be wary of overwriting another's answer unless they are sure they have a better context.

The MaxLength property specifies how much context the Interface is asking for; longer strings should not be supplied.


Field Summary
 int m_iMaxLength
          Maximum length of context desired
 java.lang.String newContext
          Empty string, to be replaced with a context if one is known
 
Fields inherited from class dasher.CEvent
m_iEventType
 
Constructor Summary
CEditContextEvent(int iMaxLength)
          Creates a new event with type 3 (EV_EDIT_CONTEXT) and a specified maxLength.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_iMaxLength

public int m_iMaxLength
Maximum length of context desired


newContext

public java.lang.String newContext
Empty string, to be replaced with a context if one is known

Constructor Detail

CEditContextEvent

public CEditContextEvent(int iMaxLength)
Creates a new event with type 3 (EV_EDIT_CONTEXT) and a specified maxLength.

Parameters:
iMaxLength - Maximum length of context desired