com.swfm.mica.widgets
Class MiTableInteractiveCellCopyTool

java.lang.Object
  extended bycom.swfm.mica.events.MiEventHandler
      extended bycom.swfm.mica.events.MiShortCutHandler
          extended bycom.swfm.mica.widgets.MiTableInteractiveCellCopyTool
All Implemented Interfaces:
MiiActionHandler, MiiActionTypes, MiiCommandNames, MiiEventHandler, MiiEventTypes, MiiTypes

public class MiTableInteractiveCellCopyTool
extends MiShortCutHandler
implements MiiActionHandler, MiiActionTypes, MiiTypes

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

Field Summary
static java.lang.String Mi_END_MULTIPLE_TABLE_CELLS_VALUE_CHANGED_COMMAND
           
static java.lang.String Mi_START_MULTIPLE_TABLE_CELLS_VALUE_CHANGED_COMMAND
           
static java.lang.String Mi_TABLE_CELL_VALUE_CHANGED_COMMAND
           
         
Constructor Summary
MiTableInteractiveCellCopyTool(MiTableCell cell, MiTable table, MiVirtualTable vTable, MiTextField selectedTextField, MiiCommandHandler handler)
          Operates on cell at selected row, column number = 0
MiTableInteractiveCellCopyTool(MiTableCell cell, MiVirtualTable vTable, MiiCommandHandler handler)
           
MiTableInteractiveCellCopyTool(MiTableCell cell, MiVirtualTable vTable, MiPart targetCellAreaGraphicsContainer, MiPart handleGraphics, MiiCommandHandler handler)
           
MiTableInteractiveCellCopyTool(MiTable table, MiiCommandHandler handler)
           
MiTableInteractiveCellCopyTool(MiTable table, MiVirtualTable vTable, MiiCommandHandler handler)
           
MiTableInteractiveCellCopyTool(MiVirtualTable vTable, MiiCommandHandler handler)
           
 
Method Summary
 boolean processAction(MiiAction action)
          Process the given action.
 int processCommand()
           
 int processEvent(MiEvent event)
          Processes the given event.
 void setNewTargetCell(MiTableCell cell)
           
 
Methods inherited from class com.swfm.mica.events.MiShortCutHandler
addShortCut, copy, getRequestedCommands, getRequestedEvents, removeAllShortCuts, toString
 
Methods inherited from class com.swfm.mica.events.MiEventHandler
addEventToCommandTranslation, addEventToCommandTranslation, addEventToCommandTranslation, getAlwaysConsumeTriggerEvents, getCommand, getEvent, getEventToCommandTranslation, getName, getNameForType, getObject, 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Mi_TABLE_CELL_VALUE_CHANGED_COMMAND

public static final java.lang.String Mi_TABLE_CELL_VALUE_CHANGED_COMMAND
See Also:
Constant Field Values

Mi_START_MULTIPLE_TABLE_CELLS_VALUE_CHANGED_COMMAND

public static final java.lang.String Mi_START_MULTIPLE_TABLE_CELLS_VALUE_CHANGED_COMMAND
See Also:
Constant Field Values

Mi_END_MULTIPLE_TABLE_CELLS_VALUE_CHANGED_COMMAND

public static final java.lang.String Mi_END_MULTIPLE_TABLE_CELLS_VALUE_CHANGED_COMMAND
See Also:
Constant Field Values
Constructor Detail

MiTableInteractiveCellCopyTool

public MiTableInteractiveCellCopyTool(MiVirtualTable vTable,
                                      MiiCommandHandler handler)

MiTableInteractiveCellCopyTool

public MiTableInteractiveCellCopyTool(MiTable table,
                                      MiiCommandHandler handler)

MiTableInteractiveCellCopyTool

public MiTableInteractiveCellCopyTool(MiTable table,
                                      MiVirtualTable vTable,
                                      MiiCommandHandler handler)

MiTableInteractiveCellCopyTool

public MiTableInteractiveCellCopyTool(MiTableCell cell,
                                      MiVirtualTable vTable,
                                      MiiCommandHandler handler)

MiTableInteractiveCellCopyTool

public MiTableInteractiveCellCopyTool(MiTableCell cell,
                                      MiTable table,
                                      MiVirtualTable vTable,
                                      MiTextField selectedTextField,
                                      MiiCommandHandler handler)
Operates on cell at selected row, column number = 0

Parameters:
table -
handler - callback

MiTableInteractiveCellCopyTool

public MiTableInteractiveCellCopyTool(MiTableCell cell,
                                      MiVirtualTable vTable,
                                      MiPart targetCellAreaGraphicsContainer,
                                      MiPart handleGraphics,
                                      MiiCommandHandler handler)
Method Detail

setNewTargetCell

public void setNewTargetCell(MiTableCell cell)

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 MiShortCutHandler

processCommand

public int processCommand()
Returns:
Mi_CONSUME_EVENT if no other event handlers should see the event that generated the command Mi_PROPOGATE_EVENT if other event handlers can also see the event that generated the command
See Also:
MiEventHandler.isCommand(java.lang.String), MiEventHandler.setCommand(java.lang.String), MiEventHandler.getCommand()

processAction

public boolean processAction(MiiAction action)
Process the given action.

Specified by:
processAction in interface MiiActionHandler
Parameters:
action - the action to process.
Returns:
true if can propogate the action to other handlers.