Ontimize 5.2071EN

com.ontimize.gui
Class BasicInteractionManagerAction

java.lang.Object
  extended bycom.ontimize.gui.BasicInteractionManagerAction
All Implemented Interfaces:
InteractionManagerAction

public class BasicInteractionManagerAction
extends java.lang.Object
implements InteractionManagerAction

Handles the actions to change the form status in the available modes.

Default implementation of InteractionManagerAction handler.

Since:
Ontimize 5.2059EN
Author:
Imatia Innovation S.L.
See Also:
InteractionManagerAction

Nested Class Summary
static class BasicInteractionManagerAction.BasicListener
           
static class BasicInteractionManagerAction.BasicListenerItem
           
static class BasicInteractionManagerAction.BasicMode
          Handles the action to change the form status in a mode.
static class BasicInteractionManagerAction.BasicModeAction
          Stores a action to change the form fields behaviour.
 
Nested classes inherited from class com.ontimize.gui.InteractionManagerAction
InteractionManagerAction.Listener, InteractionManagerAction.ListenerItem, InteractionManagerAction.Mode, InteractionManagerAction.ModeAction
 
Field Summary
protected static java.util.Properties DEFAULT_MODES
           
static java.lang.String DEFAULT_MODES_LOCATION
           
static java.lang.String DEFAULT_MODES_LOCATION_SYSTEM_PROPERTY_KEY
           
protected  InteractionManagerAction.Listener listener
           
protected  java.util.Map modes
          Stores the current modes.
protected static java.lang.String SET_PREFFIX
           
 
Constructor Summary
BasicInteractionManagerAction()
           
 
Method Summary
 void add(InteractionManagerAction.Mode mode)
           
 void clear()
           
protected static java.lang.Object convertMode(java.lang.Object modeId)
           
protected static void error(java.lang.Object[] message)
           
protected static void error(java.lang.Throwable t)
           
 java.util.List getActionList(java.lang.Object modeId)
           
 InteractionManagerAction.Listener getListener()
          Return the available listener handler.
 InteractionManagerAction.Mode getMode(java.lang.Object modeId)
           
 boolean isEmpty()
           
 InteractionManagerAction.Mode removeMode(java.lang.Object modeId)
           
 void setListener(InteractionManagerAction.Listener listener)
          Set the InteractionManagerAction listener handler.
 void setMode(Form form, int modeId)
          Execute the available actions for the given mode in the given form.
 void setMode(Form form, java.lang.String modeId)
          Execute the available actions for the given mode in the given form.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_MODES_LOCATION_SYSTEM_PROPERTY_KEY

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

DEFAULT_MODES_LOCATION

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

DEFAULT_MODES

protected static java.util.Properties DEFAULT_MODES

SET_PREFFIX

protected static final java.lang.String SET_PREFFIX
See Also:
Constant Field Values

modes

protected java.util.Map modes

Stores the current modes.


listener

protected InteractionManagerAction.Listener listener
Constructor Detail

BasicInteractionManagerAction

public BasicInteractionManagerAction()
Method Detail

convertMode

protected static java.lang.Object convertMode(java.lang.Object modeId)

error

protected static void error(java.lang.Throwable t)

error

protected static void error(java.lang.Object[] message)

add

public void add(InteractionManagerAction.Mode mode)
Specified by:
add in interface InteractionManagerAction

getMode

public InteractionManagerAction.Mode getMode(java.lang.Object modeId)
Specified by:
getMode in interface InteractionManagerAction

getActionList

public java.util.List getActionList(java.lang.Object modeId)
Specified by:
getActionList in interface InteractionManagerAction

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface InteractionManagerAction

removeMode

public InteractionManagerAction.Mode removeMode(java.lang.Object modeId)
Specified by:
removeMode in interface InteractionManagerAction

clear

public void clear()
Specified by:
clear in interface InteractionManagerAction

setMode

public void setMode(Form form,
                    int modeId)
Description copied from interface: InteractionManagerAction

Execute the available actions for the given mode in the given form.

Specified by:
setMode in interface InteractionManagerAction
Parameters:
form - Destination form.

setMode

public void setMode(Form form,
                    java.lang.String modeId)
Description copied from interface: InteractionManagerAction

Execute the available actions for the given mode in the given form.

Specified by:
setMode in interface InteractionManagerAction
Parameters:
form - Destination form.

getListener

public InteractionManagerAction.Listener getListener()
Description copied from interface: InteractionManagerAction

Return the available listener handler.

Specified by:
getListener in interface InteractionManagerAction
Returns:
InteractionManagerAction.Listener handler.

setListener

public void setListener(InteractionManagerAction.Listener listener)
Description copied from interface: InteractionManagerAction

Set the InteractionManagerAction listener handler.

Specified by:
setListener in interface InteractionManagerAction
Parameters:
listener - InteractionManagerAction.Listener handler.

toString

public java.lang.String toString()

Ontimize