|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReferenceElement
An input element to select one entry from possible entries of a referenced table.
NOTE: This elements requires the form to have
a Container instance.
ReferenceToClass,
PObjForm.getContainer()| Field Summary |
|---|
| Fields inherited from interface de.mguennewig.pobjform.InputElement |
|---|
MAX_INPUT_SIZE, RENDER_AS_DISABLED, RENDER_AS_HIDDEN, RENDER_AS_HIDDEN_WITH_LABEL, RENDER_AS_INPUT, RENDER_AS_TEXT |
| Method Summary | |
|---|---|
boolean |
isStaticIfOneOption()
Tests whether the input element will be rendered as static if the number of non-null options is exactly one. |
void |
setGroupBy(Member designator,
boolean ascending)
Group the set by the designator. |
void |
setRestriction(java.lang.Class<? extends PObject>[] tableClasses,
Predicate[] filters)
Restrict the set of values to an arbitrary subset of the entries of the referenced table. |
void |
setRestriction(ClassDecl[] tableDeclarations,
Predicate[] filters)
Restrict the set of values to an arbitrary subset of the entries of the referenced table. |
void |
setRestriction(Predicate filter)
Restrict the set of values to an arbitrary subset of the entries of the referenced table. |
void |
setStaticIfOneOption(boolean staticIfOneOption)
Sets whether the input element will be rendered as static if the number on non-null options is exactly one. |
| Methods inherited from interface de.mguennewig.pobjform.InputElement |
|---|
addChangeListener, getInputEntry, getRenderAs, getType, getVisualString, isHiddenInput, isMandatory, isRightAligned, isVisible, removeChangeListener, setMandatory, setRenderAs, setRightAligned |
| Methods inherited from interface de.mguennewig.pobjform.ValueElement |
|---|
getCurrentString, getInitialObject, getInitialString, getObject, setCurrentAsInitialState, setObject |
| Methods inherited from interface de.mguennewig.pobjform.FormElement |
|---|
appendToList, getContainer, getEntry, getForm, getLabel, getProperty, getPullInPrefix, hasChanged, isPulledIn, omitRowHeader, setLabel, setProperty, setPullInPrefix, setVisible, startsNewCell, validate |
| Method Detail |
|---|
void setGroupBy(Member designator,
boolean ascending)
java.lang.IllegalArgumentException - if the designator refers to a
non-existing tablesetRestriction(ClassDecl[],Predicate[]),
Query.ASCENDING,
Query.DESCENDINGvoid setRestriction(Predicate filter)
setRestriction(ClassDecl[],Predicate[])
void setRestriction(java.lang.Class<? extends PObject>[] tableClasses,
Predicate[] filters)
setRestriction(ClassDecl[],Predicate[])
void setRestriction(ClassDecl[] tableDeclarations,
Predicate[] filters)
By default the set of values is defined as part of the
column which is used in the select box. The filter is
used as part of the query that returns a list of values of the target
table.
tableDeclarations - A list of table declarations that will be
included in the query. The first element must be the declaration
of the referenced table or null.filters - A list of predicates to restrict the result set of the
query or an empty list to clear any filter.Queryboolean isStaticIfOneOption()
setStaticIfOneOption(boolean)void setStaticIfOneOption(boolean staticIfOneOption)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||