com.swfm.mica.events
Class MiIFlowEditorEventHandler

java.lang.Object
  extended bycom.swfm.mica.events.MiEventHandler
      extended bycom.swfm.mica.events.MiIFlowEditorEventHandler
All Implemented Interfaces:
MiiCommandNames, MiiEventHandler, MiiEventTypes

public class MiIFlowEditorEventHandler
extends MiEventHandler

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
     
Constructor Summary
MiIFlowEditorEventHandler()
           
MiIFlowEditorEventHandler(MiiFlowEditor textEditor)
           
 
Method Summary
 int getCursorPosition()
           
 boolean getMustDoubleClickToEdit()
           
 boolean getSelectAllUponKeyboardFocus()
           
 boolean getSelectEntireTextAsPartInEditor()
           
 boolean hasKeyboardFocus()
           
 int processEvent(MiEvent event)
          Processes the given event.
 void setCursorPosition(int pos)
           
 void setCursorPosition(MiPoint pt)
           
 void setKeyboardFocus(boolean flag)
           
 void setMustDoubleClickToEdit(boolean flag)
           
 void setSelectAllUponKeyboardFocus(boolean flag)
           
 void setSelectEntireTextAsPartInEditor(boolean flag)
           
 void setTextEditor(MiiFlowEditor textEditor)
           
 void updateCursorPosition()
           
 
Methods inherited from class com.swfm.mica.events.MiEventHandler
addEventToCommandTranslation, addEventToCommandTranslation, addEventToCommandTranslation, copy, getAlwaysConsumeTriggerEvents, getCommand, getEvent, getEventToCommandTranslation, getName, getNameForType, getObject, getRequestedCommands, getRequestedEvents, getTarget, getType, isCommand, isEnabled, isPositionDependent, isSingleton, isType, processCommand, processCommand, removeAllEventToCommandTranslations, removeEventToCommandTranslation, removeEventToCommandTranslation, removeEventToCommandTranslation, removeEventToCommandTranslation, setAlwaysConsumeTriggerEvents, setCommand, setEnabled, setEventToCommandTranslation, setEventToCommandTranslation, setEventToCommandTranslation, setIsSingleton, setName, setObject, setPositionDependent, setPropertyValue, setTarget, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MiIFlowEditorEventHandler

public MiIFlowEditorEventHandler()

MiIFlowEditorEventHandler

public MiIFlowEditorEventHandler(MiiFlowEditor textEditor)
Method Detail

setTextEditor

public void setTextEditor(MiiFlowEditor textEditor)

setSelectAllUponKeyboardFocus

public void setSelectAllUponKeyboardFocus(boolean flag)

getSelectAllUponKeyboardFocus

public boolean getSelectAllUponKeyboardFocus()

setSelectEntireTextAsPartInEditor

public void setSelectEntireTextAsPartInEditor(boolean flag)

getSelectEntireTextAsPartInEditor

public boolean getSelectEntireTextAsPartInEditor()

setMustDoubleClickToEdit

public void setMustDoubleClickToEdit(boolean flag)

getMustDoubleClickToEdit

public boolean getMustDoubleClickToEdit()

setCursorPosition

public void setCursorPosition(MiPoint pt)

updateCursorPosition

public void updateCursorPosition()

setKeyboardFocus

public void setKeyboardFocus(boolean flag)

hasKeyboardFocus

public boolean hasKeyboardFocus()

setCursorPosition

public void setCursorPosition(int pos)

getCursorPosition

public int getCursorPosition()

processEvent

public int processEvent(MiEvent event)
Description copied from class: MiEventHandler
Processes the given event.

Specified by:
processEvent in interface MiiEventHandler
Overrides:
processEvent in class MiEventHandler
Parameters:
event - The event to process
Returns:
Mi_CONSUME_EVENT if no other event handlers should see this event Mi_PROPOGATE_EVENT if other event handlers can also see this event