T
- public class PojoLookupAction<T> extends java.lang.Object implements IFieldAction
PojoLookupFlow
.APojoLookupValidator
or a
APojoFormatter
.Constructor and Description |
---|
PojoLookupAction(IPojoGridModel<T> model,
AForm form,
java.lang.String pojoFieldName)
This ctor is specially useful combined with an
APojoFormatter . |
PojoLookupAction(IPojoGridModel<T> model,
AForm form,
java.lang.String pojoFieldName,
java.lang.String[] fieldNames) |
PojoLookupAction(IPojoGridModel<T> model,
AForm form,
java.lang.String pojoFieldName,
java.lang.String[] fieldNames,
java.lang.String[] columnNames) |
Modifier and Type | Method and Description |
---|---|
PojoLookupAction<T> |
defaultStrokes(java.lang.String... formFieldIds) |
void |
execute(IBndsFlow flow,
javax.servlet.http.HttpServletRequest request,
java.lang.String formName,
java.lang.String fieldName,
ActionInfo action) |
void |
execute(java.lang.String fieldName,
LookupMoveEnum move) |
java.lang.String |
getLabel() |
IPojoGridModel<T> |
getModel() |
boolean |
isEnabled() |
public PojoLookupAction(IPojoGridModel<T> model, AForm form, java.lang.String pojoFieldName)
APojoFormatter
.model
- - the model used to retrieve objects for lookupform
- - the form where the lookup startspojoFieldName
- - the form destination field, valorized with the
looked up pojopublic PojoLookupAction(IPojoGridModel<T> model, AForm form, java.lang.String pojoFieldName, java.lang.String[] fieldNames)
model
- - the model used to retrieve objects for lookupform
- - the form where the lookup startspojoFieldName
- - the form destination field, valorized with the
looked up pojofieldNames
- - form fields containing values used to
select looked up object, fields are directly mapped to columns in the model
using mapToModelColumnId(String)
.public PojoLookupAction(IPojoGridModel<T> model, AForm form, java.lang.String pojoFieldName, java.lang.String[] fieldNames, java.lang.String[] columnNames)
model
- - the model used to retrieve objects for lookupform
- - the form where the lookup startspojoFieldName
- - the form destination field, valorized with the
looked up pojofieldNames
- - form fields containing values used to
select looked up object, fields are mapped to columns in the model
using mapToModelColumnId(String)
.columnNames
- - specify a column in the model for each formSourceFieldIds.public PojoLookupAction<T> defaultStrokes(java.lang.String... formFieldIds)
formFieldIds
- - fields which are binded to the action, if none
is specified then the ones provided with the
#PojoLookupAction(IPojoGridModel, Form, String, String[], String[])
ctor are used.public void execute(IBndsFlow flow, javax.servlet.http.HttpServletRequest request, java.lang.String formName, java.lang.String fieldName, ActionInfo action)
execute
in interface IFieldAction
public void execute(java.lang.String fieldName, LookupMoveEnum move)
fieldName
- - the field on which the action has been triggeredmove
- - if null a dialog is openedpublic final IPojoGridModel<T> getModel()
public java.lang.String getLabel()