Package com.iizix.prop.ui.mlist
Class 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
,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, WARN_EMPTY_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.IClassReferenceOwner
RETRIEVE_CLASS_REFERENCE_INSTANCE
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_INCLUDE_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
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionprotected void
Adds the predefined properties for this container.clone()
Clones this instance.protected IMListContentProvider
Creates the content provider.Creates and returns a new instance of a default content provider.protected Styles
Creates the Styles container for descriptions of items (must be overridden by Designer to create EditorStyles).protected MLDefaultItemProp
Creates the MLDefaultItemProp instance.protected Styles
Creates the Styles container for default items (must be overridden by Designer to create EditorStyles).protected MLItemProp
createItem
(Atom atom, MLItem data) Creates a new property item from an item data holder and initializes the property.protected MLItemProp
createListItemProp
(Atom atom) Creates a list item property.Gets the value type that would best suit the for the columns.getClassReference
(String id, boolean doCreateIfNotPresent) Gets or creates the ClassReference in the property container.Gets the ClassReference atom name.Returns the required Interface.Returns the required annotation, or null for none.Gets the or created content provider to use.Object[]
Gets the atoms of the references that are used to specify the VS column header connections for the VS table.protected MLDefaultItemProp
Returns the default item property instance.Gets the default type specified for the group.final int
Gets the device type: -1=mobile, 0=both, 1=desktop.Gets the heading text.Gets the custom instance of the icon provider for the group.Return the class of items stored in the container.Return the class of content items stored in the container.void
Gets the references to predefined properties.protected int
getVSColumnIndex
(Object nameOrAtom) Gets the table column reference property with the String or Atom.boolean
Checks if the ClassReference require an annotation back-reference.boolean
Returns whether the container should have children in a normal conditions, i.e.boolean
Returns if the component can show the context menu in mobile mode.protected void
onItemAdded
(MLItemProp item) Item added event.protected void
onItemRemoved
(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, 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, doIssueEmptyContainerWarning, getApproximateSize, getComponentCount, getComponents, getCompsCnr, getFirstContainerVSStateFocus, getFirstUIComponent, getFirstUIComponentNull, getRadioSelectionComponents, getSelectedRadioComponent, getUIComponent, getUIComponentNull, getVSStateFocus, hasImplicitAlignFillX, hasImplicitAlignFillY, invokeOnUICreateTree, mustHaveHeight, mustHaveWidth, onBroken, onComponentSelectedInParent, onResolved, onSelectionChanged, onStateChanged, onVirtualContainerCreated, 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, doUpdateVSFieldFromUIComponent, enterVSProcessing, exitVSProcessing, fireSelection, fireSelection, forbiddenGetCustomDataMap, getBadge, getBestVSFieldValueType, getComponentID, getComponentMappings, getCSSClassNames, 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, initPropCnr, 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, setCSSClassNames, setCSSClassNames2, 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, 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, getRetargetedVerifyContainer, getString, getString, getString, getString, getValueClasses, getVSReference, hasSendData, initializeElement, initializeExtendsFramework, initializeProp, initializeValue, insertProp, insertProp2, isChild, isExtendsOverriden, isExtendsPropertyValid, isExtendsRoot, isPropAddRemoveAllowed, isPropCommunicating, isPropExtended, 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, appendProp, convertPropError, dispose, equals, equals, equalsErrors, equalsObj, equalsPropValue, equalValues, 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, getReferencePropNameNoAssert, getRelativePropName, getRootFromName, getRootName, getRootParent, getRootParentNoAssert, getTreeLock, hasChanged, hasCircularReferencesError, 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, isPropRootLoading, isPropRootTreeModificationsAllowed, isPropUSER, isPropValueTreeLockNeeded, isPropVirtualized, isPropVirtualizing, isPropVolatile, isPropVolatileOrEditorOnly, isProxied, isSibling, list, list, list, mapAliasToReference, mapAliasToReference, mapReferenceToAlias, mapReferenceToAlias, mapReferenceToProjectRelative, modifyPropValue, moveProp, moveProp, moveProp, onEvent, onPropInvalidateCache, onPropValueSet, paramString, 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, 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, getClassReferenceRuntimeInstance, 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, getRelativePropName, getRootParent, getTreeLock, getValueClasses, getVSReference, hasChanged, hasCircularReferencesError, 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, isSibling, 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, warning, warning, warning
Methods inherited from interface com.iizix.gyro.IMessageBox
messageBox, 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, 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, getContainerFirstUIComponent, getContainerFirstUIComponentNull, getCSSClassNames, getErrorMessage, getErrorMessage, getFirstUIComponent, getFirstUIComponentNull, getFixHeight, getFixWidth, getLayout, getLayoutMgr, getPanelUIComponent, getPanelUIComponentNull, getUIRef, getValue, getValue, getVirtualSpace, getVSField, isMobile, isRTL, isVSFieldDisconnected, reconnectVSField, setComponentToVSField, setCSSClassNames, setCSSClassNames2, 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 Details
MLGroup
public MLGroup()Constructor of the container without name.MLGroup
Constructor of the container.- Parameters:
atom
- The name of this container.
Method Details
clone
Clones this instance.- Overrides:
clone
in classAbstractContentUIContainer<MLItemProp,
MLItem> - Returns:
- The cloned container.
getDeviceType
public final int getDeviceType()Gets the device type: -1=mobile, 0=both, 1=desktop.- Specified by:
getDeviceType
in interfaceIUIComp
- Overrides:
getDeviceType
in classUIContainer
isEmptyContainerAllowed
public boolean isEmptyContainerAllowed()Returns whether the container should have children in a normal conditions, i.e. a warning message should be displayed in the Designer when it is empty. This is intended to be used to avoid use of empty containers.- Overrides:
isEmptyContainerAllowed
in classAbstractContentUIContainer<MLItemProp,
MLItem> - Returns:
- true if the as the map container can do just fine without children.
createDefaultItemsStyles
Creates the Styles container for default items (must be overridden by Designer to create EditorStyles).- Returns:
- A new EditorStyles container.
createDefaultDescriptionStyles
Creates the Styles container for descriptions of items (must be overridden by Designer to create EditorStyles).- Returns:
- A new EditorStyles container.
createDefaultItemProp
Creates the MLDefaultItemProp instance.- Returns:
- A new MLDefaultItemProp instance.
getDefaultItemProp
Returns the default item property instance.addPredefinedProps
Adds 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
maybeAddProp
method. 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:
addPredefinedProps
in 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:
getPredefinedProps
in classAbstractContentUIContainer<MLItemProp,
MLItem>
getItemClass
Return the class of items stored in the container.- Specified by:
getItemClass
in classAbstractContentUIContainer<MLItemProp,
MLItem> - Returns:
- The property container class for items.
getItemContentClass
Return the class of content items stored in the container.- Specified by:
getItemContentClass
in classAbstractContentUIContainer<MLItemProp,
MLItem> - Returns:
- The property container class for content items.
createListItemProp
Creates a list item property.- Parameters:
atom
- The name.- Returns:
- The property.
createItem
Creates a new property item from an item data holder and initializes the property.- Specified by:
createItem
in 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
Creates the content provider.- Overrides:
createContentProvider
in classAbstractContentUIContainer<MLItemProp,
MLItem> - Returns:
- The created content provider.
createDefaultContentProvider
Creates and returns a new instance of a default content provider.- Specified by:
createDefaultContentProvider
in classAbstractContentUIContainer<MLItemProp,
MLItem> - Returns:
- The default content provider to use.
getContentTableColumnReferenceNames
Gets the atoms of the references that are used to specify the VS column header connections for the VS table.- Specified by:
getContentTableColumnReferenceNames
in classAbstractContentUIContainer<MLItemProp,
MLItem> - Returns:
- The array of atoms or Strings.
getBestVSColumnHeaderValueTypes
Gets the value type that would best suit the for the columns.- Specified by:
getBestVSColumnHeaderValueTypes
in 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:
isMobileContextMenuSupported
in interfaceIUIContextMenuOwner
- Overrides:
isMobileContextMenuSupported
in classUIContainer
- Returns:
- Always true for mobile support.
getContentProvider
Gets the or created content provider to use.- Overrides:
getContentProvider
in classAbstractContentUIContainer<MLItemProp,
MLItem> - Returns:
- A content provider, custom if defined and successfully created.
getVSColumnIndex
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:
getVSColumnIndex
in classAbstractContentUIContainer<MLItemProp,
MLItem> - Parameters:
nameOrAtom
- The String name or Atom name.- Returns:
- The VS table column index found, or -1 for none.
getIconProvider
Gets the custom instance of the icon provider for the group.- Returns:
- The instance, or null for none.
getClassReferenceAtom
Gets the ClassReference atom name.- Specified by:
getClassReferenceAtom
in interfaceIClassReferenceOwner
- Parameters:
id
- ID for the class reference if several exist, null for default.- Returns:
- The class reference atom name for the ID.
getClassReference
Gets or creates the ClassReference in the property container.- Specified by:
getClassReference
in 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
Checks if the ClassReference require an annotation back-reference.- Specified by:
isClassReferenceAnnotationBackReferenceRequired
in 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
Returns the required Interface.- Specified by:
getClassReferenceImplementsInterface
in 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
Returns the required annotation, or null for none.- Specified by:
getClassReferenceRequiredAnnotation
in 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
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:
onItemAdded
in classAbstractContentUIContainer<MLItemProp,
MLItem> - Parameters:
item
- The item added.
onItemRemoved
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:
onItemRemoved
in classAbstractContentUIContainer<MLItemProp,
MLItem> - Parameters:
item
- The item removed.
getHeadingText
Gets the heading text.- Returns:
- The text, or null if none is set.
getDefaultType
Gets the default type specified for the group.- Returns:
- The list item type.