|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) public @interface MetaCombo
Specifies how an object is shown when presented in a Combo Box. This annotation can be used on a class itself or on a property of a class type; the latter will "override" any class-level definition. Presence of this annotation at property level will also indicate a preference for a combobox over a Lookup form.
Optional Element Summary | |
---|---|
java.lang.Class<? extends IComboDataSet<?>> |
dataSet
Define a class that will generate the data to show in the combo's list-of-values. |
java.lang.Class<? extends ILabelStringRenderer<?>> |
labelRenderer
|
java.lang.Class<? extends INodeContentRenderer<?>> |
nodeRenderer
Defines a custom node content renderer for the combobox's OPTION values. |
MetaComboProperty[] |
properties
The list of properties that should be shown. |
public abstract java.lang.Class<? extends IComboDataSet<?>> dataSet
public abstract java.lang.Class<? extends ILabelStringRenderer<?>> labelRenderer
public abstract java.lang.Class<? extends INodeContentRenderer<?>> nodeRenderer
ComboComponentBase.getData()
call). All other options in the annotation are useless once a custom renderer is used!
If this is not used a content renderer is calculated from the other data in this annotation using
MetaManager.createDefaultComboRenderer(PropertyMetaModel, ClassMetaModel)
.
public abstract MetaComboProperty[] properties
MetaComboProperty.join()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |