nl.imsystems.atag.tags
Class ActionData

java.lang.Object
  extended by nl.imsystems.atag.tags.ActionData

public class ActionData
extends Object

A value object to hold action data entered on a <a:action/> tag.

Author:
kayvan


Constructor Summary
ActionData()
          Default constructor.
ActionData(String event, String url, String content, boolean postForm)
          Constructor populating all members.
 
Method Summary
 String getContent()
          Retunrs the template body of the tag.
 String getEvent()
          Returns the name of event this action is registered for.
 String getUrl()
          Returns the location where events should be posted.
 boolean hasContent()
          Retunrs true if the underlying tag has a template body
 boolean isPostForm()
          Retuns true if the action posts the entire form.
 void setContent(String content)
          Sets the template body of the tag.
 void setEvent(String event)
          Sets the event that should trigger this action.
 void setPostForm(boolean postForm)
          Set true to post entire form as opposed to a single component
 void setUrl(String url)
          Sets the location where events are posted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionData

public ActionData()
Default constructor.


ActionData

public ActionData(String event,
                  String url,
                  String content,
                  boolean postForm)
Constructor populating all members.

Parameters:
event - Name of event (i.e. 'change', 'click', 'focus', etc.)
url - Where to post the event
content - The tag template body
postForm - Flag to determine where the event should post the entire form or just the source component
Method Detail

getContent

public String getContent()
Retunrs the template body of the tag.

Returns:
String containing the template body of the tag.

setContent

public void setContent(String content)
Sets the template body of the tag.

Parameters:
content - The template body

getEvent

public String getEvent()
Returns the name of event this action is registered for.

Returns:
Name of event (i.e. 'change', 'click', 'focus', etc.) this action is tied to

setEvent

public void setEvent(String event)
Sets the event that should trigger this action.

Parameters:
event - Name of event (i.e. 'change', 'click', 'focus', etc.)

getUrl

public String getUrl()
Returns the location where events should be posted.

Returns:
The location where events should be posted.

setUrl

public void setUrl(String url)
Sets the location where events are posted.

Parameters:
url - The location

hasContent

public boolean hasContent()
Retunrs true if the underlying tag has a template body

Returns:
True if the underlying tag has a template body

isPostForm

public boolean isPostForm()
Retuns true if the action posts the entire form.

Returns:
True if the action posts the entire form as opposed to a single component (the event source)

setPostForm

public void setPostForm(boolean postForm)
Set true to post entire form as opposed to a single component

Parameters:
postForm -