Package com.iizix.prop.ui.mlist
Class MLGroup
- java.lang.Object
- com.iizix.prop.GProp<GProp<?>[]>
- com.iizix.prop.PropCnr
- com.iizix.prop.ui.UIComp
- com.iizix.prop.ui.UIContainer
- com.iizix.prop.content.AbstractContentUIContainer<MLItemProp,MLItem>
- com.iizix.prop.ui.mlist.MLGroup
- All Implemented Interfaces:
IBackReferenceProvider,EventListener,IFocusComp,IMessageBox,IComponent,IContentProviderPropCnrAPI<MLItemProp,MLItem>,IClassReferenceOwner,ICustomDataProvider,IGProp<GProp<?>[]>,IPropCnr,IUIActionHolder,IUIComp,IUIContainer,IUIContextMenuOwner,IUIFocusComp,IUIIndexedSelectionComp,IUISelectionComp,IUISingleIndexedSelectionComp,IUIHTMLTextComponent,IUITextComponent,IVSColumnBestValueListener,IVSComponentListener,IVSComponentState,IVSFieldListener,IVSGenericComponentListener,IVSTableColumnReferenceOwner,IVSTableListener,java.lang.Cloneable
- Direct Known Subclasses:
EMLGroup
public class MLGroup extends AbstractContentUIContainer<MLItemProp,MLItem> implements IContentProviderPropCnrAPI<MLItemProp,MLItem>, IUIHTMLTextComponent, IClassReferenceOwner
The mobile list item group contains mobile list items placed inserted into a list that comes from a VirtualSpace table or by means of the API. The group can have a heading.- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from interface com.iizix.gyro.IMessageBox
IMessageBox.Icon
Nested classes/interfaces inherited from interface com.iizix.prop.vs.IVSComponentState
IVSComponentState.State
Field Summary
Fields inherited from class com.iizix.prop.content.AbstractContentUIContainer
PN_SELECTION_TYPE, TABLE_REF_PROP_NAME, USE_CONTENT_PROVIDER_PROP_NAME
Fields inherited from class com.iizix.prop.ui.UIContainer
UICOMP_CLASS, VS_STATE_FOCUS_PROP_NAME
Fields inherited from class com.iizix.prop.ui.UIComp
EMPTY, REMOTE_FOCUS_EVENT, styles, vsField
Fields inherited from class com.iizix.prop.PropCnr
EMPTY_CLASSES, EMPTY_CNRS, EXTENDS_FRAMEWORK_ERROR_ID
Fields inherited from class com.iizix.prop.GProp
GPDEBUG, PROP_ATTR_STRING_EDITOR_PROP, PROP_ATTR_STRING_ERRORED_NAME, PROP_ATTR_STRING_EXTENDS, PROP_ATTR_STRING_EXTENDS_FINAL, PROP_ATTR_STRING_EXTENDS_PRIVATE, PROP_ATTR_STRING_NULLABLE, PROP_ATTR_STRING_PRIVATE, PROP_ATTR_STRING_PRIVATE_CHANGE_EVENT, PROP_ATTR_STRING_READ_ONLY, PROP_USER_1, PROP_USER_2
Fields inherited from interface com.iizix.prop.IGProp
EQC_ERROR_IGNORE_ALL, EQC_ERROR_IGNORE_REFERENCES, EQC_IGNORE_ARRAY, EQC_IGNORE_VOLATILE_OR_EDITOR, EQC_PRIVATE, EQC_SAVE_FILE, EXT_CONTAINER_EXTENDS, EXT_CONTAINER_EXTENDS_VALID, EXT_EXTENDED, EXT_FINAL, EXT_OVERRIDES, EXT_OVERRIDES_FINAL_ERR, EXT_PRIVATE
Fields inherited from interface com.iizix.gyro.IMessageBox
ICON_ERROR, ICON_INFORMATION, ICON_MAP, ICON_NONE, ICON_QUESTION, ICON_WARNING
Fields inherited from interface com.iizix.prop.ui.IUIComp
ERROR, INFORMATION, NONE, REMOTE_FOCUS_EVENT, WARNING
Fields inherited from interface com.iizix.prop.ui.selection.IUISelectionComp
SELECTION_TYPE_MULTIPLE, SELECTION_TYPE_NONE, SELECTION_TYPE_SINGLE
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddPredefinedProps()Adds the predefined properties for this container.MLGroupclone()Clones this instance.protected IMListContentProvidercreateContentProvider()Creates the content provider.MLContentProvidercreateDefaultContentProvider()Creates and returns a new instance of a default content provider.protected StylescreateDefaultDescriptionStyles()Creates the Styles container for descriptions of items (must be overridden by Designer to create EditorStyles).protected MLDefaultItemPropcreateDefaultItemProp()Creates the MLDefaultItemProp instance.protected StylescreateDefaultItemsStyles()Creates the Styles container for default items (must be overridden by Designer to create EditorStyles).protected MLItemPropcreateItem(Atom atom, MLItem data)Creates a new property item from an item data holder and initializes the property.protected MLItemPropcreateListItemProp(Atom atom)Creates a list item property.Value.Type[]getBestVSColumnHeaderValueTypes()Gets the value type that would best suit the for the columns.ClassReferencegetClassReference(java.lang.String id, boolean doCreateIfNotPresent)Gets or creates the ClassReference in the property container.AtomgetClassReferenceAtom(java.lang.String id)Gets the ClassReference atom name.java.lang.StringgetClassReferenceImplementsInterface(java.lang.String id)Returns the required Interface.java.lang.StringgetClassReferenceRequiredAnnotation(java.lang.String id)Returns the required annotation, or null for none.IMListContentProvidergetContentProvider()Gets the or created content provider to use.java.lang.Object[]getContentTableColumnReferenceNames()Gets the atoms of the references that are used to specify the VS column header connections for the VS table.protected MLDefaultItemPropgetDefaultItemProp()Returns the default item property instance.MLItemTypegetDefaultType()Gets the default type specified for the group.intgetDeviceType()Gets the device type: -1=mobile, 0=both, 1=desktop.KStringgetHeadingText()Gets the heading text.IMListIconProvidergetIconProvider()Gets the custom instance of the icon provider for the group.java.lang.Class<MLItemProp>getItemClass()Return the class of items stored in the container.java.lang.Class<MLItem>getItemContentClass()Return the class of content items stored in the container.voidgetPredefinedProps()Gets the references to predefined properties.protected intgetVSColumnIndex(java.lang.Object nameOrAtom)Gets the table column reference property with the String or Atom.booleanisClassReferenceAnnotationBackReferenceRequired(java.lang.String id)Checks if the ClassReference require an annotation back-reference.booleanisMobileContextMenuSupported()Returns if the component can show the context menu in mobile mode.protected voidonItemAdded(MLItemProp item)Item added event.protected voidonItemRemoved(MLItemProp item)Item removed event.Methods inherited from class com.iizix.prop.content.AbstractContentUIContainer
add, add, addMappings, addMappingsTable, clearSelection, equalsTree, get, getAll, getAPIContentProvider, getBestVSColumnHeaderValueType, getContentTable, getContentTableColumns, getItem, getItemCount, getItems, getOnUIActionMethod, getOnUISelectionMethod, getSelectedIndex, getSelectedIndicies, getSelection, getSelectionListenerHandler, getSelectionPropAtom, getSelectionType, getVSTable, getVSTable, getVSTableReferenceOwnerData, hasDiscreteContentChanges, indexOf, isBackReferenceValid, isEmptyContainerAllowed, isSelected, isUpdatingInCurrentThread, onBroken, onCellStateChanged, onCellValueChanged, onEventSelf, onParentStateChanged, onPrepare, onPropDispose, onPropParentChanged, onResolved, onRowAdded, onRowRemoved, onRowStateChanged, onSelectionChanged, onSelectionChanged, onSingleSelectionChanged, onStateChanged, onVirtualizationCompleted, refresh, refresh, refresh, remove, remove, removeAll, setContentProvider, setSelection, update, useContentProvider, verify
Methods inherited from class com.iizix.prop.ui.UIContainer
addPredefinedPropsImpl, canAcceptUIContainerFocus, createCompsCnr, getApproximateSize, getComponentCount, getComponents, getCompsCnr, getFirstContainerVSStateFocus, getFirstUIComponent, getFirstUIComponentNull, getRadioSelectionComponents, getSelectedRadioComponent, getUIComponent, getUIComponentNull, getVSStateFocus, hasImplicitAlignFillX, hasImplicitAlignFillY, mustHaveHeight, mustHaveWidth, onBroken, onComponentSelectedInParent, onResolved, onSelectionChanged, onStateChanged, onVSComponentSelectionChanged, resetComponentID, setRadioSelectionComponent, setUIContainerFocus, updateUICompsReference, verifyComponentScope
Methods inherited from class com.iizix.prop.ui.UIComp
add, assignFontInfoResolver, canAlignX, canAlignY, canFillX, canFillY, canRequestFocus, canRequestFocus, clearErrorMessage, couldRequestFocusIfVirtualized, createStyles, createTitleProp, disconnectVSField, enterVSProcessing, exitVSProcessing, fireSelection, fireSelection, forbiddenGetCustomDataMap, getBadge, getBestVSFieldValueType, getComponentID, getComponentMappings, getErrorMessage, getErrorMessage, getErrorMessageEx, getErrorMessageString, getErrorMessageString, getErrorMessageStringEx, getFixHeight, getFixWidth, getFontInfo, getForcedAlignX, getForcedAlignY, getKStringText, getLayout, getLayoutMgr, getLayoutMgr, getMappedVSComponent, getMessage, getMessageText, getPixelHeight, getPixelWidth, getSize, getStyles, getStyles, getText, getTitle, getTitleKS, getTitlePKS, getTooltip, getTooltipText, getTrigger, getUIPanel, getUIParent, getValue, getValue, getVirtualSpace, getVSField, hasExplicitHeight, hasExplicitWidth, hasFocus, hasImplicitHeight, hasImplicitWidth, hasSelectionChanged, isEnabled, isMobile, isReadOnly, isRTL, isVisible, isVSFieldDisconnected, mustHaveExplicitHeight, mustHaveExplicitWidth, onBroken, onFocusGained, onNotifySelectionChanged, onPrepare, onRemoteEvent, onResolved, onStateChanged, onValueChanged, processVSComponentSelection, reconnectVSField, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusEx, requestFocusEx, requestFocusEx, requestFocusEx, setBadge, setBadge, setComponentToVSField, setEnabled, setEnabled, setErrorMessage, setErrorMessage, setErrorMessage, setErrorMessage, setHTMLText, setLayoutMgr, setMessage, setMessage, setReadOnly, setReadOnly, setText, setText, setTitle, setTitle, setTitle, setTooltip, setTooltip, setVisible, setVisible, setVSFieldMessageToComponent, setVSFieldToComponent
Methods inherited from class com.iizix.prop.PropCnr
__transferChildProps, addProp, addProp, addProp2, addProp2, appendPropValue, completeVirtualize, containsProp, containsProp, convertLoadedProp, createCopyOfAtom, createUniqueAtom, createUniqueAtom, createUniqueAtom, createVSReference, doPropEqualsArrayValues, doVirtualizePropCnr, enablePropCommunication, enablePropHashMap, equalsTree, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getBool, getBool, getBool, getBool, getChildPropError, getChildPropError, getChildPropErrorSeverity, getChildPropErrorSeverity, getErrorsProp, getExtendsContainer, getExtendsError, getExtendsName, getExtendsOverride, getExtendsPossibleClasses, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, getPossibleChildren, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropBaseReference, getPropCnr, getPropCount, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue0, getReferences, getRetargetedVerifyContainer, getString, getString, getString, getString, getValueClasses, getVSReference, hasSendData, initializeElement, initializeExtendsFramework, initializeProp, initializeValue, initPropCnr, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsPropertyValid, isExtendsRoot, isPropAddRemoveAllowed, isPropCommunicating, isPropExtended, isSibling, list, list, logPropNotFound, maybeAddProp, onInsertProp, onPropRemoved, onPropTreeInitialized, onReferenceEvent, paramString, prepare, removeAllProps, removeAllProps2, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, reorderProps, replaceProps, requestFocus, requestFocusEx, resolveReferences, resolveRuntimeReferences, setBool, setBool, setBool, setBool, setCreateRequiredProp, setExtendsName, setExtendsOverride, setInt, setInt, setInt, setLong, setLong, setLong, setLong, setNumber, setNumber, setNumber, setNumber, setProp, setProp, setProp, setProp2, setProp2, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setString, setString, setString, setString, shouldCreateProps, shouldSerializeToXML, toElementString, toNativeValue0, usePropHashMap, usesPropIndex, validateChildPropInValue, validateClassInstances, validatePropType, validatePropValue, verifyInternalUseOnly, verifyTree, virtualize
Methods inherited from class com.iizix.prop.GProp
addPropError, addPropListener, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalValues, extendsClone, finalize, fine, fine, finer, finer, finest, finest, fromElementString, getAliasName, getAppSessionGyro, getAppWorker, getAtomPath, getAttribute, getChildReferencePropName, getClientSessionGyro, getClientWorker, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropName, getFullPropNameDebug, getFullPropNameDebug, getListeners, getModuleFolder, getModuleFolder, getParent, getParent, getProjectName, getPropAtom, getPropError, getPropError, getPropErroredName, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromPath, getPropFromReference, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropReferenceTarget, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getPropValueObject, getReferencePropName, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParent, getTreeLock, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropForEditor, isPropNullable, isPropPrivate, isPropPrivateAtCreation, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropUSER, isPropValueTreeLockNeeded, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onPropInvalidateCache, onPropValueSet, onVirtualized, paramValue, post, post, removePropError, removePropListener, removePropUSER, renameProp, renameProp2, resetChangedTree, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPrivateCreateRequiredProp, setPropError, setPropErroredName, setPropExtended, setPropExtendsFinal, setPropExtendsPrivate, setPropForEditor, setPropNullable, setPropPrivate, setPropReadOnly, setPropUSER, setPropValue, setPropValue, setPropValue, setPropValueIncognito, setPropVolatile, severe, severe, severe, shouldSerializeToXML, throwIfReadOnly, toNativeValue, toString, toString, triggerRemoteEvent, triggerRemoteEvent, validateProp, verifyHasPropertyItem, warning, warning, warning
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.iizix.prop.IClassReferenceOwner
getClassReference, getProp, getRuntimeClassInstance, getRuntimeClassInstance
Methods inherited from interface com.iizix.IComponent
clearErrorMessage, getBadge, getKStringText, getLayoutMgr, getMessage, getMessageText, getStyles, getText, getTooltip, getTooltipText, getUIPanel, getUIParent, isEnabled, isReadOnly, isVisible, messageBox, requestFocus, requestFocus, requestFocusEx, requestFocusEx, setBadge, setBadge, setEnabled, setErrorMessage, setErrorMessage, setHTMLText, setLayoutMgr, setMessage, setMessage, setReadOnly, setText, setText, setTooltip, setTooltip, setVisible
Methods inherited from interface com.iizix.prop.content.IContentProviderPropCnrAPI
add, add, get, getAll, getAPIContentProvider, indexOf, remove, remove, removeAll
Methods inherited from interface com.iizix.prop.ICustomDataProvider
forbiddenGetCustomDataMap, getCustomData, putCustomData, putCustomDataIfAbsent
Methods inherited from interface com.iizix.gyro.IFocusComp
requestFocus, requestFocus, requestFocusEx, requestFocusEx
Methods inherited from interface com.iizix.prop.IGProp
addPropError, addPropListener, dispose, equals, fine, fine, finer, finer, finest, finest, fromElementString, getAppSessionGyro, getAtomPath, getClientSessionGyro, getConstraints, getEnvironment, getErroredPropItems, getErroredProps, getErrorsProp, getExtendsRootContainer, getFullPropName, getFullPropNameDebug, getModuleFolder, getModuleFolder, getParent, getParent, getPropAtom, getPropBaseReference, getPropError, getPropError, getPropErrorSeverity, getPropExtendsFlags, getPropFromPath, getPropFromReference, getPropIndex, getPropName, getPropPath, getPropPath, getPropRootPropMgr, getPropTreeErrorSeverity, getPropValue, getPropValue, getReferencePropName, getReferences, getRelativePropName, getRootParent, getTreeLock, getValueClasses, getVSReference, hasChanged, hasPrivateChangeEventProp, hasPropError, hasPropTreeError, info, info, initializeGElement, initializeGProp, isDisposed, isPropChildOf, isPropClientCreated, isPropCommunicating, isPropCreateRequired, isPropExtended, isPropExtendsFinal, isPropExtendsPrivate, isPropExtendsPrivateInRoot, isPropExtendsPrivateInRoot, isPropFile, isPropFolder, isPropNullable, isPropPrivate, isPropReadOnly, isPropReferenceTreeValid, isPropRoot, isPropVirtualized, list, list, list, list, list, mapAliasToReference, mapReferenceToAlias, mapReferenceToProjectRelative, moveProp, moveProp, moveProp, onEvent, onPropTreeInitialized, onRemoteEvent, removePropError, removePropListener, renameProp, resolveRuntimeReferences, setChanged, setConstraints, setConstraints, setParent, setPrivateChangeEventProp, setPropError, setPropExtendsFinal, setPropExtendsPrivate, setPropNullable, setPropPrivate, setPropReadOnly, setPropValue, setPropValue, severe, severe, severe, toElementString, toNativeValue, triggerRemoteEvent, triggerRemoteEvent, validateProp, validatePropType, validatePropValue, verifyHasPropertyItem, warning, warning, warning
Methods inherited from interface com.iizix.gyro.IMessageBox
messageBox, messageBox
Methods inherited from interface com.iizix.prop.IPropCnr
addProp, addProp, addProp2, addProp2, canRequestFocus, canRequestFocus, canRequestFocus, containsProp, containsProp, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized, couldRequestFocusIfVirtualized, createCopyOfAtom, createUniqueAtom, createUniqueAtom, enablePropCommunication, enablePropHashMap, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getAllProps, getBool, getBool, getBool, getBool, getChildPropError, getChildPropError, getChildPropErrorSeverity, getChildPropErrorSeverity, getErrorsProp, getExtendsError, getExtendsName, getExtendsPossibleClasses, getFirstProp, getFirstProp, getFocusEngine, getInt, getInt, getInt, getInt, getLong, getLong, getLong, getLong, getNumber, getNumber, getNumber, getNumber, getPossibleChildren, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getProp, getPropCnr, getPropCount, getPropIndex, getPropIndex, getPropIndexes, getProps, getProps, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getPropValue, getString, getString, getString, getString, hasFocus, initializeExtendsFramework, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsRoot, isPropAddRemoveAllowed, isPropExtended, isSibling, removeAllProps, removeAllProps2, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, removeProp2, reorderProps, requestFocus, requestFocusEx, setBool, setBool, setBool, setBool, setExtendsName, setExtendsOverride, setInt, setInt, setInt, setLong, setLong, setLong, setLong, setNumber, setNumber, setNumber, setNumber, setProp, setProp, setProp, setProp2, setProp2, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setPropValue, setString, setString, setString, setString, usePropHashMap, usesPropIndex, validateClassInstances
Methods inherited from interface com.iizix.prop.ui.IUIActionHolder
getBaseJavaReference
Methods inherited from interface com.iizix.prop.ui.IUIComp
canAcceptUIContainerFocus, disconnectVSField, getComponentID, getComponentMappings, getErrorMessage, getErrorMessage, getFirstUIComponent, getFirstUIComponentNull, getFixHeight, getFixWidth, getLayout, getLayoutMgr, getPanelUIComponent, getPanelUIComponentNull, getUIRef, getValue, getValue, getVirtualSpace, getVSField, isMobile, isRTL, isVSFieldDisconnected, reconnectVSField, setComponentToVSField, setErrorMessage, setErrorMessage, setUIContainerFocus, setVSFieldMessageToComponent, setVSFieldToComponent
Methods inherited from interface com.iizix.prop.ui.IUIContextMenuOwner
getContainedContextMenu, getContextMenu, getReferencedContextMenu, isContextMenuSupported, onBroken, onResolved
Methods inherited from interface com.iizix.prop.ui.IUIFocusComp
onFocusGained, onFocusLost
Methods inherited from interface com.iizix.prop.ui.text.IUIHTMLTextComponent
createTextProp
Methods inherited from interface com.iizix.prop.ui.selection.IUIIndexedSelectionComp
isSelectionIndexBased, setSelection, setSelection, setSelection, setSelection, setSelection
Methods inherited from interface com.iizix.prop.ui.selection.IUISelectionComp
addSelectionListener, isSelectionBooleanBased, isSelectionCellBased, isSelectionTriStateBased, removeSelectionListener, setSelection
Methods inherited from interface com.iizix.prop.ui.selection.IUISingleIndexedSelectionComp
getFirstSelectedIndex, setSelection
Methods inherited from interface com.iizix.prop.vs.IVSFieldListener
getBestVSFieldValueType, onBroken, onResolved, onStateChanged, onValueChanged
Constructor Detail
MLGroup
public MLGroup()
Constructor of the container without name.
MLGroup
public MLGroup(Atom atom)
Constructor of the container.- Parameters:
atom- The name of this container.
Method Detail
clone
public MLGroup clone()
Clones this instance.- Overrides:
clonein classAbstractContentUIContainer<MLItemProp,MLItem>- Returns:
- The cloned container.
getDeviceType
public final int getDeviceType()
Gets the device type: -1=mobile, 0=both, 1=desktop.- Specified by:
getDeviceTypein interfaceIUIComp- Overrides:
getDeviceTypein classUIContainer
createDefaultItemsStyles
protected Styles createDefaultItemsStyles()
Creates the Styles container for default items (must be overridden by Designer to create EditorStyles).- Returns:
- A new EditorStyles container.
createDefaultDescriptionStyles
protected Styles createDefaultDescriptionStyles()
Creates the Styles container for descriptions of items (must be overridden by Designer to create EditorStyles).- Returns:
- A new EditorStyles container.
createDefaultItemProp
protected MLDefaultItemProp createDefaultItemProp()
Creates the MLDefaultItemProp instance.- Returns:
- A new MLDefaultItemProp instance.
getDefaultItemProp
protected MLDefaultItemProp getDefaultItemProp()
Returns the default item property instance.
addPredefinedProps
protected void addPredefinedProps() throws PropExceptionAdds the predefined properties for this container. This method is called once just after construction of the property container and sometimes population of it.The method should add properties to create or get reference to using the
maybeAddPropmethod. When the PropCnr instance is cloned, the methodgetPredefinedProps()is called in order for the subclass to be able to retrieve the new instances to these properties, if stored in instance variables.- Overrides:
addPredefinedPropsin classUIContainer- Throws:
PropException- for property exceptions.
getPredefinedProps
public void getPredefinedProps()
Gets the references to predefined properties. If the Styles is created, make sure to get it.- Overrides:
getPredefinedPropsin classAbstractContentUIContainer<MLItemProp,MLItem>
getItemClass
public java.lang.Class<MLItemProp> getItemClass()
Return the class of items stored in the container.- Specified by:
getItemClassin classAbstractContentUIContainer<MLItemProp,MLItem>- Returns:
- The property container class for items.
getItemContentClass
public java.lang.Class<MLItem> getItemContentClass()
Return the class of content items stored in the container.- Specified by:
getItemContentClassin classAbstractContentUIContainer<MLItemProp,MLItem>- Returns:
- The property container class for content items.
createListItemProp
protected MLItemProp createListItemProp(Atom atom)
Creates a list item property.- Parameters:
atom- The name.- Returns:
- The property.
createItem
protected MLItemProp createItem(Atom atom, MLItem data)
Creates a new property item from an item data holder and initializes the property.- Specified by:
createItemin classAbstractContentUIContainer<MLItemProp,MLItem>- Parameters:
atom- The name of the item property.data- The data to initialize the item property with.- Returns:
- The item property.
createContentProvider
protected IMListContentProvider createContentProvider()
Creates the content provider.- Overrides:
createContentProviderin classAbstractContentUIContainer<MLItemProp,MLItem>- Returns:
- The created content provider.
createDefaultContentProvider
public MLContentProvider createDefaultContentProvider()
Creates and returns a new instance of a default content provider.- Specified by:
createDefaultContentProviderin classAbstractContentUIContainer<MLItemProp,MLItem>- Returns:
- The default content provider to use.
getContentTableColumnReferenceNames
public java.lang.Object[] getContentTableColumnReferenceNames()
Gets the atoms of the references that are used to specify the VS column header connections for the VS table.- Specified by:
getContentTableColumnReferenceNamesin classAbstractContentUIContainer<MLItemProp,MLItem>- Returns:
- The array of atoms or Strings.
getBestVSColumnHeaderValueTypes
public Value.Type[] getBestVSColumnHeaderValueTypes()
Gets the value type that would best suit the for the columns.- Specified by:
getBestVSColumnHeaderValueTypesin classAbstractContentUIContainer<MLItemProp,MLItem>- Returns:
- null if none is available.
isMobileContextMenuSupported
public boolean isMobileContextMenuSupported()
Returns if the component can show the context menu in mobile mode. The context menu is displayed for all list item in the group.- Specified by:
isMobileContextMenuSupportedin interfaceIUIContextMenuOwner- Overrides:
isMobileContextMenuSupportedin classUIContainer- Returns:
- Always true for mobile support.
getContentProvider
public IMListContentProvider getContentProvider()
Gets the or created content provider to use.- Overrides:
getContentProviderin classAbstractContentUIContainer<MLItemProp,MLItem>- Returns:
- A content provider, custom if defined and successfully created.
getVSColumnIndex
protected int getVSColumnIndex(java.lang.Object nameOrAtom)
Gets the table column reference property with the String or Atom. This call makes it possible to redirect the reference into another container, e.g. for the MList default item. By default, the property is taken from this container.- Overrides:
getVSColumnIndexin classAbstractContentUIContainer<MLItemProp,MLItem>- Parameters:
nameOrAtom- The String name or Atom name.- Returns:
- The VS table column index found, or -1 for none.
getIconProvider
public IMListIconProvider getIconProvider()
Gets the custom instance of the icon provider for the group.- Returns:
- The instance, or null for none.
getClassReferenceAtom
public Atom getClassReferenceAtom(java.lang.String id)
Gets the ClassReference atom name.- Specified by:
getClassReferenceAtomin interfaceIClassReferenceOwner- Parameters:
id- ID for the class reference if several exist, null for default.- Returns:
- The class reference atom name for the ID.
getClassReference
public ClassReference getClassReference(java.lang.String id, boolean doCreateIfNotPresent)
Gets or creates the ClassReference in the property container.- Specified by:
getClassReferencein interfaceIClassReferenceOwner- Parameters:
id- ID for the class reference if several exist, null for default.doCreateIfNotPresent- Flag to create the property (this flag can only be true in Designer)!- Returns:
- The resolved class reference instance, null if the ClassReference doesn't exist if the create flag is false. If flag is true, an orphan unresolved EditorClassReference instance (ONLY for the Designer).
isClassReferenceAnnotationBackReferenceRequired
public boolean isClassReferenceAnnotationBackReferenceRequired(java.lang.String id)
Checks if the ClassReference require an annotation back-reference.- Specified by:
isClassReferenceAnnotationBackReferenceRequiredin interfaceIClassReferenceOwner- Parameters:
id- ID for the class reference if several exist, null for default.- Returns:
- true if the annotation is required to have a back-reference on the "ref" member value pair to the ClassReference owner.
getClassReferenceImplementsInterface
public java.lang.String getClassReferenceImplementsInterface(java.lang.String id)
Returns the required Interface.- Specified by:
getClassReferenceImplementsInterfacein interfaceIClassReferenceOwner- Parameters:
id- ID for the class reference if several exist, null for default.- Returns:
- The fully qualified name of the interface for the class, or null for none.
getClassReferenceRequiredAnnotation
public java.lang.String getClassReferenceRequiredAnnotation(java.lang.String id)
Returns the required annotation, or null for none.- Specified by:
getClassReferenceRequiredAnnotationin interfaceIClassReferenceOwner- Parameters:
id- ID for the class reference if several exist, null for default.- Returns:
- The fully qualified name of the interface for the class, or null for none.
onItemAdded
protected void onItemAdded(MLItemProp item)
Item added event.Subclasses can implements its routine to initialize the required object that governs the API behavior of the property.
Do not forget to FIRST call the
super.onItemAdded(item)if overridden.- Overrides:
onItemAddedin classAbstractContentUIContainer<MLItemProp,MLItem>- Parameters:
item- The item added.
onItemRemoved
protected void onItemRemoved(MLItemProp item)
Item removed event.Subclasses can implements its routine to clean-up a potentially required object that governs the API behavior of the property.
Do not forget to FIRST call the
super.onItemRemoved(item)if overridden.- Overrides:
onItemRemovedin classAbstractContentUIContainer<MLItemProp,MLItem>- Parameters:
item- The item removed.
getHeadingText
public KString getHeadingText()
Gets the heading text.- Returns:
- The text, or null if none is set.
getDefaultType
public MLItemType getDefaultType()
Gets the default type specified for the group.- Returns:
- The list item type.