org.nuiton.web.struts2
Class BaseAction

java.lang.Object
  extended by com.opensymphony.xwork2.ActionSupport
      extended by org.nuiton.web.struts2.BaseAction
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, com.opensymphony.xwork2.ValidationAware, Serializable

public class BaseAction
extends com.opensymphony.xwork2.ActionSupport

Base action to use for a better usage of I18n.

Since:
1.1
Author:
tchemit
See Also:
Serialized Form

Field Summary
static String UNTRANSLATED_MARKER
           
 
Fields inherited from class com.opensymphony.xwork2.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
BaseAction()
           
 
Method Summary
 String _(String aTextName)
           
 String _(String key, Object... args)
           
protected  String getSafeText(String key, String value)
           
 String getText(String aTextName)
           
 String getText(String aTextName, List<?> args)
           
 String getText(String aTextName, String defaultValue)
           
 String getText(String key, String[] args)
           
 String getText(String aTextName, String defaultValue, List<?> args)
           
 String getText(String key, String defaultValue, List<?> args, com.opensymphony.xwork2.util.ValueStack stack)
           
 String getText(String aTextName, String defaultValue, String obj)
           
 String getText(String key, String defaultValue, String[] args)
           
 String getText(String key, String defaultValue, String[] args, com.opensymphony.xwork2.util.ValueStack stack)
           
 
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNTRANSLATED_MARKER

public static final String UNTRANSLATED_MARKER
See Also:
Constant Field Values
Constructor Detail

BaseAction

public BaseAction()
Method Detail

_

public String _(String aTextName)

_

public String _(String key,
                Object... args)

getText

public String getText(String aTextName)
Specified by:
getText in interface com.opensymphony.xwork2.TextProvider
Overrides:
getText in class com.opensymphony.xwork2.ActionSupport

getText

public String getText(String aTextName,
                      String defaultValue)
Specified by:
getText in interface com.opensymphony.xwork2.TextProvider
Overrides:
getText in class com.opensymphony.xwork2.ActionSupport

getText

public String getText(String aTextName,
                      String defaultValue,
                      String obj)
Specified by:
getText in interface com.opensymphony.xwork2.TextProvider
Overrides:
getText in class com.opensymphony.xwork2.ActionSupport

getText

public String getText(String aTextName,
                      List<?> args)
Specified by:
getText in interface com.opensymphony.xwork2.TextProvider
Overrides:
getText in class com.opensymphony.xwork2.ActionSupport

getText

public String getText(String key,
                      String[] args)
Specified by:
getText in interface com.opensymphony.xwork2.TextProvider
Overrides:
getText in class com.opensymphony.xwork2.ActionSupport

getText

public String getText(String aTextName,
                      String defaultValue,
                      List<?> args)
Specified by:
getText in interface com.opensymphony.xwork2.TextProvider
Overrides:
getText in class com.opensymphony.xwork2.ActionSupport

getText

public String getText(String key,
                      String defaultValue,
                      String[] args)
Specified by:
getText in interface com.opensymphony.xwork2.TextProvider
Overrides:
getText in class com.opensymphony.xwork2.ActionSupport

getText

public String getText(String key,
                      String defaultValue,
                      List<?> args,
                      com.opensymphony.xwork2.util.ValueStack stack)
Specified by:
getText in interface com.opensymphony.xwork2.TextProvider
Overrides:
getText in class com.opensymphony.xwork2.ActionSupport

getText

public String getText(String key,
                      String defaultValue,
                      String[] args,
                      com.opensymphony.xwork2.util.ValueStack stack)
Specified by:
getText in interface com.opensymphony.xwork2.TextProvider
Overrides:
getText in class com.opensymphony.xwork2.ActionSupport

getSafeText

protected String getSafeText(String key,
                             String value)


Copyright © 2010-2011 CodeLutin. All Rights Reserved.