public class AttributeSelector
extends java.lang.Object
BX
- a virtual (readonly) many relation of type BX
- a persistent attribute to store the selected attribute name in with
overwritten setter
For an example see de.ipcon.db.core.Wiedervorlage with its attributes
"AttributBX", "VerfuegbareAttribute" and "AttributFuerInaktivitaetMessenAb"
which persistently stores the actual attribute name.
The GUI code used for that is:
Constructor and Description |
---|
AttributeSelector() |
AttributeSelector(boolean _relations) |
AttributeSelector(boolean _relations,
boolean _scalar) |
AttributeSelector(boolean _relations,
boolean _scalar,
java.lang.Class _typeFilter) |
AttributeSelector(boolean _relations,
boolean _scalar,
java.lang.Class _typeFilter,
boolean _many) |
AttributeSelector(boolean _relations,
boolean _scalar,
java.lang.Class _typeFilter,
boolean _many,
boolean _nonPersAndVirtual) |
Modifier and Type | Method and Description |
---|---|
BX |
getAttributBX(java.lang.String _attr,
BOMaske _maske,
BOLoaderI _bol)
Returns a matching
BX with VString set to the selection
entry string for the corresponding attribute |
BX |
getAttributBX(java.lang.String _attr,
BOMaske _maske,
BOLoaderI _bol,
java.util.List _listOfAllAttrs) |
BX |
getAttributBX(java.lang.String _attr,
BOT _bot,
BOLoaderI _bol) |
BX |
getAttributBX(java.lang.String _attr,
BOT _bot,
BOLoaderI _bol,
java.util.List _listOfAllAttrs) |
BX |
getAttributBX(java.lang.String _attr,
java.util.Map _map) |
java.lang.Class |
getTypeFilter() |
java.util.Map<java.lang.Long,BX> |
getVerfuegbareAttribute(BOMaske _maske,
BOLoaderI _bol) |
java.util.Map<java.lang.Long,BX> |
getVerfuegbareAttribute(BOMaske _maske,
BOLoaderI _bol,
boolean _showTypes) |
java.util.Map<java.lang.Long,BX> |
getVerfuegbareAttribute(BOMaske _maske,
BOLoaderI _bol,
boolean _showTypes,
java.util.List _listOfAllAttrs) |
java.util.Map<java.lang.Long,BX> |
getVerfuegbareAttribute(BOT _bot,
BOLoaderI _bol) |
java.util.Map<java.lang.Long,BX> |
getVerfuegbareAttribute(BOT _bot,
BOLoaderI _bol,
boolean _showTypes) |
java.util.Map<java.lang.Long,BX> |
getVerfuegbareAttribute(BOT _bot,
BOLoaderI _bol,
boolean _showTypes,
java.util.List _listOfAllAttrs) |
boolean |
isMany() |
boolean |
isNonPersAndVirtual() |
boolean |
isRelations() |
boolean |
isScalar() |
java.lang.String |
setAttribut(java.lang.String _attr)
Sets the internal
BX to null and returns _attr unchanged. |
java.lang.String |
setAttributBX(BX _bxAttr)
Takes the given
BX and returns the name of the corresponding
attribute. |
void |
setMany(boolean $11) |
void |
setNonPersAndVirtual(boolean $12) |
void |
setRelations(boolean $9) |
void |
setScalar(boolean $10) |
void |
setTypeFilter(java.lang.Class $8) |
public AttributeSelector()
_relations
- if true relation attributes are allowed to be selected_scalar
- if true scalar attributes are allowed to be selected_typeFilter
- if not null only attributes of this type are allowed to be selected_many
- if true many relation attributes are allowed to be selected_nonPersAndVirtual
- if true also non-persistent and virtual attributes are allowed to be selectedpublic AttributeSelector(boolean _relations)
public AttributeSelector(boolean _relations, boolean _scalar)
public AttributeSelector(boolean _relations, boolean _scalar, java.lang.Class _typeFilter)
public AttributeSelector(boolean _relations, boolean _scalar, java.lang.Class _typeFilter, boolean _many)
public AttributeSelector(boolean _relations, boolean _scalar, java.lang.Class _typeFilter, boolean _many, boolean _nonPersAndVirtual)
public java.lang.String setAttribut(java.lang.String _attr)
BX
to null and returns _attr unchanged.
Supposed to be called from the setter of the actual attribut which stores
the selected attribute's name.public BX getAttributBX(java.lang.String _attr, BOT _bot, BOLoaderI _bol, java.util.List _listOfAllAttrs)
public BX getAttributBX(java.lang.String _attr, BOMaske _maske, BOLoaderI _bol)
BX
with VString
set to the selection
entry string for the corresponding attributepublic BX getAttributBX(java.lang.String _attr, BOMaske _maske, BOLoaderI _bol, java.util.List _listOfAllAttrs)
public BX getAttributBX(java.lang.String _attr, java.util.Map _map)
public java.lang.String setAttributBX(BX _bxAttr)
BX
and returns the name of the corresponding
attribute.
Supposed to be called from the setter of the virtual attribute which is
used as the property for the GUI ComboBox with the return value passed to
the setter of the actual attribut which stores the selected attribute's
name.public java.util.Map<java.lang.Long,BX> getVerfuegbareAttribute(BOMaske _maske, BOLoaderI _bol)
public java.util.Map<java.lang.Long,BX> getVerfuegbareAttribute(BOMaske _maske, BOLoaderI _bol, boolean _showTypes)
public java.util.Map<java.lang.Long,BX> getVerfuegbareAttribute(BOMaske _maske, BOLoaderI _bol, boolean _showTypes, java.util.List _listOfAllAttrs)
public java.util.Map<java.lang.Long,BX> getVerfuegbareAttribute(BOT _bot, BOLoaderI _bol)
BX
instances with the Id as key and a
BX
with VString
set to the selection entry string for
the corresponding attributepublic java.util.Map<java.lang.Long,BX> getVerfuegbareAttribute(BOT _bot, BOLoaderI _bol, boolean _showTypes)
public java.util.Map<java.lang.Long,BX> getVerfuegbareAttribute(BOT _bot, BOLoaderI _bol, boolean _showTypes, java.util.List _listOfAllAttrs)
public java.lang.Class getTypeFilter()
public void setTypeFilter(java.lang.Class $8)
public boolean isRelations()
public void setRelations(boolean $9)
public boolean isScalar()
public void setScalar(boolean $10)
public boolean isMany()
public void setMany(boolean $11)
public boolean isNonPersAndVirtual()
public void setNonPersAndVirtual(boolean $12)
Copyright © 2000-2024 OAshi S.à r.l. All Rights Reserved.