|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance rs.sol.soloist.server.uml.commonimplementation.runtime._ClassInstance rs.sol.soloist.server.javaimpl.runtime.SOLoistClassInstance rs.sol.soloist.server.builtindomains.common.ObjectOfClass rs.sol.soloist.server.guiconfiguration.construction.GUIComponent rs.sol.soloist.server.guiconfiguration.components.GUIMenuComponent
public class GUIMenuComponent
A regular menu widget with an arbitrary number of menu items. Menu items
(class GUIMenuItemComponent
) are rendered in a vertical or in a horizontal layout
(setHorizontal(boolean)
method).
Nested Class Summary | |
---|---|
static class |
GUIMenuComponent.FQPropertyNames
Deprecated. Not for public use. |
static class |
GUIMenuComponent.PROPERTIES
Deprecated. Not for public use. |
Field Summary | |
---|---|
static IClass |
CLASSIFIER
UML class reference |
static java.lang.String |
FQ_TYPE_NAME
Fully qualified UML class name |
IAttributeValue<Boolean> |
horizontal
Deprecated. Not for public use. |
IAssociationEndInstance<GUIMenuItemComponent> |
items
Deprecated. Not for public use. |
IAssociationEndInstance<GUIMenuItemComponent> |
ownerItem
Deprecated. Not for public use. |
Fields inherited from class rs.sol.soloist.server.guiconfiguration.construction.GUIComponent |
---|
addStyle, context, description, enabled, init, inputBindings, layoutData, logger, name, outputBindings, ownerTable, parent, removeStyle, show, showInParent, styleName, tooltip, visible |
Constructor Summary | |
---|---|
GUIMenuComponent()
|
Method Summary | |
---|---|
static GUIMenuItemComponent |
addItem(GUIMenuComponent menu,
java.lang.String text)
Deprecated. Not for public use. |
static GUIMenuItemComponent |
addItem(GUIMenuComponent menu,
java.lang.String text,
GUIComponent whatToShow)
Deprecated. Not for public use. |
static GUIMenuItemComponent |
addItem(GUIMenuComponent menu,
java.lang.String name,
java.lang.String text)
Deprecated. Not for public use. |
void |
addItem(GUIMenuItemComponent c)
Adds one menu item in the collection of menu items. |
static GUIMenuItemComponent |
addSeparator(GUIMenuComponent menu)
Deprecated. Not for public use. |
void |
clearItems()
Clears all owned menu items. |
void |
constructor()
The domain-specific constructor of the Classifier. |
static GUIMenuComponent |
create(GUIMenuItemComponent item,
boolean horizontal)
Deprecated. Not for public use. |
static GUIMenuComponent |
create(GUIPanelComponent parent,
boolean horizontal)
Returns new horizontal or vertical GUIMenuComponent
and assigns it to the given parent. |
rs.sol.soloist.client.common.info.MenuInfo |
createSpecificInfo()
Creates and returns an empty serializable object of the appropriate ComponentInfo sub-class. |
static GUIMenuComponent |
createSubMenu(GUIMenuItemComponent item,
boolean horizontal)
Returns new horizontal or vertical GUIMenuComponent
and assigns it to the given owner menu item. |
GUIApplicationComponent |
getApplication()
Returns the owner GUIApplicationComponent of this widget. |
boolean |
getHorizontal()
Returns the direction (horizontal or vertical) of this menu. |
java.util.List<GUIMenuItemComponent> |
getItems()
Returns the collection of menu items. |
GUIMenuItemComponent |
getOwnerItem()
Deprecated. Not for public use. |
boolean |
isHorizontal()
Deprecated. Not for public use. |
void |
removeItem(GUIMenuItemComponent c)
Removes one menu item from the collection of menu items. |
void |
setHorizontal(boolean horizontal)
Sets the direction (horizontal or vertical) of this menu. |
void |
setItems(java.util.List<GUIMenuItemComponent> menuItems)
Sets the collection of menu items. |
Methods inherited from class rs.sol.soloist.server.javaimpl.runtime.SOLoistClassInstance |
---|
destroy, equals, getAssociationEndInstance, getAssociationEndInstances, getAttributeValue, getAttributeValues, getMyClass, getMyID, getSlot, getSlot, getSlots, getUMLClass, hashCode, isMarkedAsDeleted, toString |
Methods inherited from class rs.sol.soloist.server.uml.commonimplementation.runtime._ClassInstance |
---|
accept, accept, exists, getAssociationEndInstance, getAssociationEndInstance, getAssociationEndInstance, getClassifier, hasIdentity, isClassInstance, isDataTypeInstance, isEqualTo, makeClone, markAsDeleted |
Methods inherited from class rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance |
---|
conformsTo, copySlots, copySlots, getAttributeValue, getAttributeValue, getAttributeValue, getClassifierFQName, getClassifierUQName, getFirstCommonGeneralizer, getFirstCommonGeneralizerFQName, getFirstCommonGeneralizerUQName, getMElement, getSlot, getSlot, isDirectInstanceOf, isDirectInstanceOf, isInstanceOf, isInstanceOf, isKindOf, isModelElement, isRTElement |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface rs.sol.soloist.server.uml.concepts.runtime.IClassifierInstance |
---|
conformsTo, copySlots, copySlots, getAttributeValue, getAttributeValue, getClassifierFQName, getClassifierUQName, getFirstCommonGeneralizer, getFirstCommonGeneralizerFQName, getFirstCommonGeneralizerUQName, getSlot, getSlot, isDirectInstanceOf, isDirectInstanceOf, isInstanceOf, isInstanceOf |
Methods inherited from interface rs.sol.soloist.server.uml.concepts.runtime.IRTElement |
---|
getMElement |
Methods inherited from interface rs.sol.soloist.server.uml.concepts.IElement |
---|
isKindOf, isModelElement, isRTElement |
Field Detail |
---|
@Deprecated public IAttributeValue<Boolean> horizontal
public static final java.lang.String FQ_TYPE_NAME
public static final IClass CLASSIFIER
@Deprecated public IAssociationEndInstance<GUIMenuItemComponent> items
@Deprecated public IAssociationEndInstance<GUIMenuItemComponent> ownerItem
Constructor Detail |
---|
public GUIMenuComponent()
Method Detail |
---|
public void constructor()
IClassifierInstance
constructor
in interface IClassifierInstance
constructor
in class GUIComponent
public rs.sol.soloist.client.common.info.MenuInfo createSpecificInfo()
GUIComponent
ComponentInfo
sub-class. The returned object must be able to
transmit every property of objects of this class from server to
clients (browsers).
ComponentInfo
sub-class instancepublic static GUIMenuComponent create(GUIPanelComponent parent, boolean horizontal)
GUIMenuComponent
and assigns it to the given parent.
parent
- the parent GUIPanelComponent
widgethorizontal
- a boolean that tells the menu's direction
GUIMenuComponent
public static GUIMenuComponent createSubMenu(GUIMenuItemComponent item, boolean horizontal)
GUIMenuComponent
and assigns it to the given owner menu item.
item
- the owner GUIMenuItemComponent
widgethorizontal
- a boolean that tells the menu's direction
GUIMenuComponent
public GUIApplicationComponent getApplication()
GUIComponent
GUIApplicationComponent
of this widget.
getApplication
in class GUIComponent
GUIApplicationComponent
that owns this widget in
its sub-tree. Returns null if this widget is not added to a GUI tree.public boolean getHorizontal()
setHorizontal(boolean)
public void setHorizontal(boolean horizontal)
horizontal
- the direction (horizontal or vertical) of this menupublic java.util.List<GUIMenuItemComponent> getItems()
public void setItems(java.util.List<GUIMenuItemComponent> menuItems)
menuItems
- the collection of menu itemspublic void addItem(GUIMenuItemComponent c)
c
- the menu item to be addedpublic void removeItem(GUIMenuItemComponent c)
c
- the menu item to be removedpublic void clearItems()
@Deprecated public static GUIMenuComponent create(GUIMenuItemComponent item, boolean horizontal)
@Deprecated public static GUIMenuItemComponent addItem(GUIMenuComponent menu, java.lang.String name, java.lang.String text)
@Deprecated public static GUIMenuItemComponent addItem(GUIMenuComponent menu, java.lang.String text)
@Deprecated public static GUIMenuItemComponent addSeparator(GUIMenuComponent menu)
@Deprecated public static GUIMenuItemComponent addItem(GUIMenuComponent menu, java.lang.String text, GUIComponent whatToShow)
@Deprecated public GUIMenuItemComponent getOwnerItem()
@Deprecated public boolean isHorizontal()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |