|
WEB4J Development Tools 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectActionImpl
ActionTemplateListAndEdit
hirondelle.web4jtools.codegenerator.field.FieldAction
public final class FieldAction
Edit the fields used by the feature.
The order of how items are added will be retained in generated code.
Field Summary | |
---|---|
static RequestParameter |
CHECK_EMAIL
|
static RequestParameter |
CHECK_PATTERN
|
static RequestParameter |
CHECK_SPAM
|
static RequestParameter |
CODE_TABLE
|
static RequestParameter |
CONTROL_STYLE
|
static RequestParameter |
DESCRIPTION
|
static RequestParameter |
ERROR_MESSAGE
|
static String |
FIELDS_KEY
Key for storing fields in session scope. |
static RequestParameter |
HARD_VALIDATON_PATTERN
|
static RequestParameter |
ID
|
static RequestParameter |
IS_DESC_ORDER
|
static RequestParameter |
IS_HARD_VALIDATED_FOR_LENGTH
|
static RequestParameter |
IS_ORDER_BY_FIELD
|
static RequestParameter |
IS_PRIMARY_KEY
|
static RequestParameter |
IS_REQUIRED
|
static RequestParameter |
MAXIMUM
|
static RequestParameter |
MINIMUM
|
static RequestParameter |
NAME
|
static RequestParameter |
NUM_DECIMALS
|
static RequestParameter |
TYPE
|
Fields inherited from class ActionTemplateListAndEdit |
---|
SupportedOperation |
Fields inherited from class ActionImpl |
---|
DATA, ERRORS, ITEM_FOR_EDIT, ITEMS_FOR_LISTING, MESSAGES, USER_ID |
Constructor Summary | |
---|---|
FieldAction(RequestParser aRequestParser)
Constructor. |
Method Summary | |
---|---|
protected void |
attemptAdd()
Add a new Field . |
protected void |
attemptChange()
Apply an edit to an existing Field . |
protected void |
attemptDelete()
Ensure the Field of a given id does not exist. |
protected void |
attemptFetchForChange()
Fetch an existing Field in order to edit it. |
protected void |
doList()
List all Fields, in the same order as created. |
protected void |
validateUserInput()
Ensure user input can build a Field . |
Methods inherited from class ActionTemplateListAndEdit |
---|
addDynamicParameterToRedirectPage, execute |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final RequestParameter ID
public static final RequestParameter NAME
public static final RequestParameter DESCRIPTION
public static final RequestParameter IS_REQUIRED
public static final RequestParameter TYPE
public static final RequestParameter CONTROL_STYLE
public static final RequestParameter IS_PRIMARY_KEY
public static final RequestParameter MINIMUM
public static final RequestParameter MAXIMUM
public static final RequestParameter ERROR_MESSAGE
public static final RequestParameter IS_HARD_VALIDATED_FOR_LENGTH
public static final RequestParameter HARD_VALIDATON_PATTERN
public static final RequestParameter CHECK_PATTERN
public static final RequestParameter CHECK_EMAIL
public static final RequestParameter CHECK_SPAM
public static final RequestParameter IS_ORDER_BY_FIELD
public static final RequestParameter IS_DESC_ORDER
public static final RequestParameter NUM_DECIMALS
public static final RequestParameter CODE_TABLE
public static final String FIELDS_KEY
Constructor Detail |
---|
public FieldAction(RequestParser aRequestParser)
Method Detail |
---|
protected void doList() throws DAOException
doList
in class ActionTemplateListAndEdit
DAOException
protected void validateUserInput()
Field
.
validateUserInput
in class ActionTemplateListAndEdit
protected void attemptAdd() throws DAOException
Field
.
attemptAdd
in class ActionTemplateListAndEdit
DAOException
protected void attemptFetchForChange() throws DAOException
Field
in order to edit it.
attemptFetchForChange
in class ActionTemplateListAndEdit
DAOException
protected void attemptChange() throws DAOException
Field
.
attemptChange
in class ActionTemplateListAndEdit
DAOException
protected void attemptDelete() throws DAOException
Field
of a given id does not exist.
attemptDelete
in class ActionTemplateListAndEdit
DAOException
|
WEB4J Development Tools 4.10.0.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |