public final class

CheckboxTagSupport

extends Object
java.lang.Object
   ↳ com.atlassian.jira.web.util.CheckboxTagSupport

Class Overview

Support for communication between Webwork actions and checkbox tags. Encapsulates two boolean flags for getting and setting pre- and post-action values of the checkbox.

Summary

Public Constructors
CheckboxTagSupport(boolean preAction)
Constructor accepting pre-action value of the checkbox.
Public Methods
boolean hasChanged()
Provides information, if the actual value of checkbox was changed.
boolean postAction()
Post-action value set from the request.
void postAction(boolean postAction)
Post-action value coming from the reqest.
boolean preAction()
Getter for pre-action value of the checkbox.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CheckboxTagSupport (boolean preAction)

Constructor accepting pre-action value of the checkbox. Actions should handle retrieval of this value from appropriate source (e.g. application properties).

Public Methods

public boolean hasChanged ()

Provides information, if the actual value of checkbox was changed. Invoked it only after the actual request was run (i.e. postAction(boolean) was invoked).

Returns
  • true, if the value of checkbox was changed by the last request.

public boolean postAction ()

Post-action value set from the request. Use it in the business logic in action's #execute methods.

Returns
  • post-action checkbox value from the request

public void postAction (boolean postAction)

Post-action value coming from the reqest. This should be invoked in the action setter.

Parameters
postAction post-action checkbox value from the request

public boolean preAction ()

Getter for pre-action value of the checkbox. This should be invoked in the action getter to provide value for the checkbox tag via WebWork stack.

Returns
  • pre-action checkbox value from JIRA