public interface MElementContainer<T extends MUIElement> extends MUIElement
This is the base for the two different types of containment used in the model; 'Stacks' (where only one element would be visible at a time) and 'Tiles' (where all the ele elements are visible at the same time.
All containers define the type of element that they are to contain. By design this is always a single type. Where different concrete types are to be contained within the same container they all both mix in a container-specific type. For example both MParts and MPlaceholders are valid children for an MPartStack so they both mix in 'StackElement' (which is an empty stub used only to constran the stack's types.
The following features are supported:
Modifier and Type | Method and Description |
---|---|
List<T> |
getChildren()
Returns the value of the 'Children' containment reference list.
|
T |
getSelectedElement()
Returns the value of the 'Selected Element' reference
|
void |
setSelectedElement(T value)
Sets the value of the '
Selected Element ' reference |
getAccessibilityPhrase, getContainerData, getCurSharedRef, getLocalizedAccessibilityPhrase, getParent, getRenderer, getVisibleWhen, getWidget, isOnTop, isToBeRendered, isVisible, setAccessibilityPhrase, setContainerData, setCurSharedRef, setOnTop, setParent, setRenderer, setToBeRendered, setVisible, setVisibleWhen, setWidget
getContributorURI, getElementId, getPersistedState, getTags, getTransientData, setContributorURI, setElementId
updateLocalization
List<T> getChildren()
Parent
'.
This is the list of contained elements in this container. All elements must be of type
MUIElement.getParent()
T getSelectedElement()
This field contains the reference to the currently 'selected' element within a container. Note that the element must not only be in the container's children list but must also be visible in the presentation ("toBeRendered' == true).
setSelectedElement(MUIElement)
void setSelectedElement(T value)
Selected Element
' reference.
value
- the new value of the 'Selected Element' reference.getSelectedElement()
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.