com.ideo.sweetdevria.taglib.control
Interface ActionInterface

All Known Implementing Classes:
ControlTag

public interface ActionInterface

This interface define and must be overridden by any class accepting and handling actions

Author:
Julien Maupoux

Field Summary
static int DISABLE_ACTION
          Action disabling a form element
static int ENABLE_ACTION
          Action enabling a form element
static int HANDLER_ACTION
          Action triggering a JavaScript function
static int HIDE_ACTION
          Action hiding an element (Form, HTML or some SweetDEV RIA)
static int LOADDATA_ACTION
          Action loading some data for a select (or Suggest) element
static int RESET_ACTION
          Action reseting a form element
static int SETVALUE_ACTION
          Action setting a value in a form element
static int SHOW_ACTION
          Action showing an element (Form, HTML or some SweetDEV RIA)
 
Method Summary
 void addAction(int type, java.lang.String targetIds, java.lang.String condition, java.lang.String param)
          Adds an action
 void addActionElse(int type, java.lang.String targetIds, java.lang.String condition, java.lang.String param)
          Adds an action
 

Field Detail

SHOW_ACTION

static final int SHOW_ACTION
Action showing an element (Form, HTML or some SweetDEV RIA)

See Also:
Constant Field Values

HIDE_ACTION

static final int HIDE_ACTION
Action hiding an element (Form, HTML or some SweetDEV RIA)

See Also:
Constant Field Values

DISABLE_ACTION

static final int DISABLE_ACTION
Action disabling a form element

See Also:
Constant Field Values

ENABLE_ACTION

static final int ENABLE_ACTION
Action enabling a form element

See Also:
Constant Field Values

LOADDATA_ACTION

static final int LOADDATA_ACTION
Action loading some data for a select (or Suggest) element

See Also:
Constant Field Values

RESET_ACTION

static final int RESET_ACTION
Action reseting a form element

See Also:
Constant Field Values

SETVALUE_ACTION

static final int SETVALUE_ACTION
Action setting a value in a form element

See Also:
Constant Field Values

HANDLER_ACTION

static final int HANDLER_ACTION
Action triggering a JavaScript function

See Also:
Constant Field Values
Method Detail

addAction

void addAction(int type,
               java.lang.String targetIds,
               java.lang.String condition,
               java.lang.String param)
Adds an action

Parameters:
type - the type of the action
targetIds - the target id of the component this action acts on
condition - an optional condition having to be successfully validated before triggering this action
param - an optional parameter for this action

addActionElse

void addActionElse(int type,
                   java.lang.String targetIds,
                   java.lang.String condition,
                   java.lang.String param)
Adds an action

Parameters:
type - the type of the action
targetIds - the target id of the component this action acts on
condition - an optional condition having to be successfully validated before triggering this action
param - an optional parameter for this action


Copyright © 2010 Ideo Technologies. All Rights Reserved.