public class Compositor<COLLECTIONTYPE extends Collection<T>,T>
extends de.tsl2.nano.bean.def.BeanCollector<COLLECTIONTYPE,T>
Composition
It provides actions to refresh, save and storno the list of charges. Each charge (=add or create) will be done by
activing the representable action for an item. Each item will represented by such an action.| Modifier and Type | Field and Description |
|---|---|
protected String |
actionEnablerRule |
protected String |
baseAttribute
composition instance attribute to assign the base instance to
|
protected boolean |
forceUserInteraction |
protected String |
iconAttribute
base instance attribute name to evaluate an image path for the compositor action
|
protected String |
targetAttribute
composition instance attribute to assign the target instance to
|
protected Class<?> |
targetType
composition target type - normally the type of this BeanDefinition
|
ACTION_DELETE, ACTION_NEW, ACTION_OPEN, beanFinder, collection, composition, deleteAction, editAction, isStaticCollection, KEY_COMMANDHANDLER, newAction, openAction, POSTFIX_COLLECTOR, POSTFIX_QUICKSEARCH, quickSearchAction, reloadBean, resetAction, searchAction, searchStatus, selectionProvider, simpleList, workingModeactions, activationActionNames, allDefinitionsCached, attributeDefinitions, attributeFilter, crossChecker, extension, isconnected, isdefault, isNested, name, plugins, PREFIX_VIRTUAL, presentable, presentationHelper, strict, valueExpression, valueGroups| Constructor and Description |
|---|
Compositor()
constructor
|
Compositor(Class<T> beanType,
Class<?> baseType,
String baseAttribute,
String targetAttribute,
String iconAttribute)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
static String |
createBeanDefName(String classPrefix,
Class<?> beanType,
Class<?> baseType) |
protected String |
createCompositorActionId(Object baseInstance) |
List<de.tsl2.nano.action.IAction> |
createCompositorActions(Class<?> baseType,
T preparedComposition,
String baseAttribute,
Class<?> targetType,
String targetAttribute,
String iconAttribute)
creates an compositor-action for each item of type baseType, found in the database.
|
List<de.tsl2.nano.action.IAction> |
createCompositorActions(Class<?> baseType,
T preparedComposition,
String targetAttribute,
String iconAttribute) |
String |
createName(Class<?> beanType,
Class<?> baseType) |
Collection<de.tsl2.nano.action.IAction> |
getActions() |
T |
getParentInstance(Object targetInstance) |
Class<?> |
getTargetType() |
protected void |
initDeserialization() |
boolean |
isVirtual() |
<B extends de.tsl2.nano.bean.def.BeanDefinition<T>> |
onActivation(Map context) |
Compositor<COLLECTIONTYPE,T> |
refreshed() |
void |
setForceUserInteraction(boolean forceUserInteraction) |
void |
setTargetType(Class<?> targetType) |
addColumnDefinition, addMode, assignColumnValues, checkBeforeDelete, count, createBeanCollectorHolder, createCollector, createDeleteAction, createItem, createNewAction, createOpenAction, createResetAction, createSearchAction, deleteItem, doAutomaticSearch, editItem, fillContext, getActionByName, getBeanCollector, getBeanCollector, getBeanCollector, getBeanFinder, getColumnDefinitions, getColumnDefinitionsIndexSorted, getColumnLabels, getColumnSortingActions, getColumnText, getColumnText, getColumnText, getColumnText, getColumnValue, getColumnValue, getColumnValueEx, getComposition, getCurrentData, getFirstSelectedElement, getGroupByFor, getGroups, getOrderByColumns, getQuickSearchAction, getSearchAction, getSearchPanelActions, getSearchPanelBeans, getSelectionProvider, getSummary, getSummaryText, getType, getWorkingMode, hasFilter, hashCode, hasMode, hasSearchRequestChanged, hasSelection, init, isMultiValue, isPersistable, isReloadBean, isSaveable, isSimpleList, nextRow, onDeactivation, refresh, removeMode, replaceBean, selectFirstElement, setAttributeFilter, setBeanFinder, setColumnDefinitions, setCompositionParent, setMode, setName, setReloadBean, setSelected, setSelectionProvider, setSimpleList, shiftSortIndexes, sort, toString, toValueMap, wasActivatedaddAction, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addAttribute, addPlugin, addValueGroup, autoInit, clearCache, connect, connect, connect, connect, createAttributeDefinition, createInstance, define, deleteDefinition, deleteDefinition, deleteDefinitions, dump, equals, fromValueMap, fromValueMap, getAction, getActionsByClass, getActionsByClass, getActivationActionNames, getAttribute, getAttributeDefinitions, getAttributeNames, getAttributes, getBeanAttributes, getBeanDefinition, getBeanDefinition, getBeanDefinition, getBeanDefinition, getDeclaringClass, getDefinitionDirectory, getDefinitionFile, getId, getIdAttribute, getName, getNameAndPath, getNestingBean, getPlugins, getPresentable, getPresentationHelper, getValueExpression, getValueGroups, hasAttribute, initSerialization, injectIntoRuleCovers, isConfigurable, isCreatable, isDefault, isInterface, isNested, isSelectable, isStale, loadVirtualDefinitions, loadVirtualDefinitions, refreshAttributeDefinitions, removeAttributes, removePlugin, saveBeanDefinition, saveDefinition, setActions, setActivationActionNames, setAttrDef, setColumnDefinitionOrder, setDefault, setDefaultValues, setDefaultValues, setIdAttribute, setNested, setNumberDef, setPresentable, setPresentationHelper, setValueExpression, toString, toValueMap, toValueMap, toValueMapcall, call, call, call, call, call, call, call, callMethod, callMethod, callMethod, copy, copy, copyValues, copyValues, copyValues, createBeanClass, createBeanClass, createInstance, createInstance, createInstance, fieldsOf, filterMethods, findAttributes, getAnnotation, getAnnotationValues, getAttribute, getAttribute, getAttributeNames, getAttributePath, getAttributes, getBeanClass, getBeanClass, getBeanClass, getClazz, getDefiningClass, getDefiningClass, getField, getField, getFieldNames, getFilteredAttributes, getFilteredMethods, getInterfaces, getMethods, getMethods, getMultiValueAttributes, getName, getName, getPackageName, getPath, getPath, getSimpleName, getSingleValueAttributes, getSortedAttributes, getStatic, getValue, getValue, hasConstructor, hasDefaultConstructor, hasDefaultConstructor, hasDefaultConstructor, hasField, hasStringConstructor, isAnnotationPresent, isAssignableFrom, isDefaultInstanceable, isFinal, isFinal, isInheritance, isInstanceOf, isPublicClassName, load, load, resetValues, setField, setField, setValueprotected String baseAttribute
protected Class<?> targetType
protected String targetAttribute
protected String iconAttribute
protected boolean forceUserInteraction
protected String actionEnablerRule
public static String createBeanDefName(String classPrefix, Class<?> beanType, Class<?> baseType)
public Collection<de.tsl2.nano.action.IAction> getActions()
getActions in class de.tsl2.nano.bean.def.BeanDefinition<T>public boolean isVirtual()
isVirtual in class de.tsl2.nano.bean.def.BeanDefinition<T>public List<de.tsl2.nano.action.IAction> createCompositorActions(Class<?> baseType, T preparedComposition, String targetAttribute, String iconAttribute)
baseType - see parentTypepreparedComposition - pre-filled instance to be used to create new composition instancestargetAttribute - see targetAttributeiconAttribute - (optional) see iconAttributepublic List<de.tsl2.nano.action.IAction> createCompositorActions(Class<?> baseType, T preparedComposition, String baseAttribute, Class<?> targetType, String targetAttribute, String iconAttribute)
baseType - see parentTypepreparedComposition - pre-filled instance to be used to create new composition instancesbaseAttribute - see targetAttributetargetType - see #targetAttribute - see targetAttributeiconAttribute - (optional) see iconAttributepublic void setForceUserInteraction(boolean forceUserInteraction)
public Class<?> getTargetType()
public void setTargetType(Class<?> targetType)
public <B extends de.tsl2.nano.bean.def.BeanDefinition<T>> B onActivation(Map context)
onActivation in class de.tsl2.nano.bean.def.BeanCollector<COLLECTIONTYPE extends Collection<T>,T>public Compositor<COLLECTIONTYPE,T> refreshed()
refreshed in class de.tsl2.nano.bean.def.BeanCollector<COLLECTIONTYPE extends Collection<T>,T>protected void initDeserialization()
initDeserialization in class de.tsl2.nano.bean.def.BeanCollector<COLLECTIONTYPE extends Collection<T>,T>Copyright © 2012–2020. All rights reserved.