T
- public class PojoLookupFlow<T> extends BndsFlow
Flow.AsDialogFlow, Flow.AsFlowComponent, Flow.AsFlowState
Constructor and Description |
---|
PojoLookupFlow(IPojoGridModel<T> model,
java.lang.String columnId,
java.lang.Object value) |
PojoLookupFlow(IPojoGridModel<T> model,
T selectedPojo,
java.lang.String columnId) |
PojoLookupFlow(IRenderer renderer,
IPojoGridModel<T> model,
T selectedPojo,
java.lang.String columnId,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
ADataGridFlow |
getGridFlow() |
IPojoGridModel<T> |
getModel() |
T |
getSelection() |
T |
lookup(LookupMoveEnum move)
Lookup the pojo with no user interaction returning the current selected one.
|
static java.lang.String |
message(java.lang.String key) |
getLastActiveForm, setRequestProcessor, setRequestProcessor
asComponent, asDialog, asState, dump, ensureStartup, getComponent, getComponentMap, getCurrentDialog, getCurrentState, getCurrentSystemDialog, getFlow, getFlowPersonality, getFocusCandidateName, getId, getLastActiveFieldName, getLastActiveFormName, getParent, getPopup, getPreviousState, getState, getStateMap, isEnded, isInErrorState, isStarted, modalDialog, popup, popup, popup, processFieldEvent, processGet, processSubmit, publishEvent, render, restartIfEnded, setComponentListener, setStateMapper, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
asComponent, asDialog, asState, ensureStartup, getCurrentState, getFlowPersonality, getFocusCandidateName, getLastActiveFieldName, getLastActiveFormName, getPreviousState, getState, restartIfEnded
public PojoLookupFlow(IPojoGridModel<T> model, T selectedPojo, java.lang.String columnId)
model
- - the model used to populate the lookup data gridselectedPojo
- - the already selected pojocolumnId
- - the columnId in the model subject to searchpublic PojoLookupFlow(IPojoGridModel<T> model, java.lang.String columnId, java.lang.Object value)
model
- - the model used to populate the lookup data gridcolumnId
- - the columnId in the model subject to search, when specified
with a sortable IDataGridModel
then sort is applied on the column.value
- - the looked up value in columnIdpublic PojoLookupFlow(IRenderer renderer, IPojoGridModel<T> model, T selectedPojo, java.lang.String columnId, java.lang.Object value)
model
- - the model used to populate the lookup data gridselectedPojo
- - the possibly already selected pojocolumnId
- - the columnId in the model subject to search, when specified
with a sortable IDataGridModel
then sort is applied on the column.value
- - and its valuepublic final IPojoGridModel<T> getModel()
public T lookup(LookupMoveEnum move)
public T getSelection()
DialogResultEnum.OK
state
or if the current pojo is not isSelectable(Object)
.public final ADataGridFlow getGridFlow()
public static java.lang.String message(java.lang.String key)