|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrs.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.GUIContainerComponent
rs.sol.soloist.server.guiconfiguration.components.GUIPanelComponent
public class GUIPanelComponent
A widget that contains and lays out its child widgets.
Multiple layouts are supported: horizontal, vertical, table,
flow, absolute, dock, and layer.
The layout of this widget's children can
be specified either in a factory method during the construction of
this widget, or by calling setLayout(Layout)
method.
The usage code example that specifies layout in a specific factory method is given bellow:
GUIPanelComponent panel = GUIPanelComponent.createFlow(parent);
Or if using a general factory method:
GUIPanelComponent panel = GUIPanelComponent.create(parent, new FlowLayout());
The third option is to create a panel step by step:
GUIPanelComponent panel = new GUIPanelComponent();
panel.setLayout(new FlowLayout());
parent.add(panel);
This widget's children can be added in a simple way during construction:
GUILabelComponent label = GUILabelComponent.create(panel, "Hello World");
or afterwards:
GUILabelComponent label = new GUILabelComponent();
panel.add(label);
Layout
,
LayoutData
Nested Class Summary | |
---|---|
static class |
GUIPanelComponent.FQPropertyNames
Deprecated. Not for public use. |
static class |
GUIPanelComponent.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 |
IAssociationEndInstance<Layout> |
layout
Deprecated. Not for public use. |
Fields inherited from class rs.sol.soloist.server.guiconfiguration.components.GUIContainerComponent |
---|
back, children, forward, input, logger, next, output, previous, refresh, reset, submit, visibleChild |
Fields inherited from class rs.sol.soloist.server.guiconfiguration.construction.GUIComponent |
---|
addStyle, context, description, enabled, init, inputBindings, layoutData, name, outputBindings, ownerTable, parent, removeStyle, show, showInParent, styleName, tooltip, visible |
Constructor Summary | |
---|---|
GUIPanelComponent()
|
Method Summary | |
---|---|
void |
constructor()
The domain-specific constructor of the Classifier. |
static GUIPanelComponent |
create(GUIContainerComponent parent,
Layout layout)
Returns new GUIPanelComponent with the given layout
for its children, and assigns it to the given parent. |
static GUIPanelComponent |
create(GUIContainerComponent parent,
Layout layout,
LayoutData layoutData)
Returns new GUIPanelComponent with the given layout
for its children, places it in the parent's layout according to
the given LayoutData , and assigns it to the given parent. |
static GUIPanelComponent |
createAbsolute(GUIContainerComponent parent)
Returns new GUIPanelComponent with the absolute layout
for its children, and assigns it to the given parent. |
static GUIPanelComponent |
createDock(GUIContainerComponent parent)
Returns new GUIPanelComponent with the dock layout
for its children, and assigns it to the given parent. |
static GUIPanelComponent |
createDock(GUIContainerComponent parent,
java.lang.String units)
Deprecated. Not for public use. |
static GUIPanelComponent |
createFlow(GUIContainerComponent parent)
Returns new GUIPanelComponent with the flow layout
for its children, and assigns it to the given parent. |
static GUIPanelComponent |
createHorizontal(GUIContainerComponent parent)
Returns new GUIPanelComponent with the horizontal layout
for its children, and assigns it to the given parent. |
static GUIPanelComponent |
createHorizontal(GUIContainerComponent parent,
VerticalAlignment verticalAlignment)
Returns new GUIPanelComponent with the horizontal layout
and vertical alignment for its children, and assigns it to the given parent. |
static GUIPanelComponent |
createLayer(GUIContainerComponent parent)
Returns new GUIPanelComponent with the layered layout
for its children, and assigns it to the given parent. |
static GUIPanelComponent |
createTable(GUIContainerComponent parent)
Returns new GUIPanelComponent with the tabular layout
for its children, and assigns it to the given parent. |
static GUIPanelComponent |
createTable(GUIContainerComponent parent,
java.lang.String... widths)
Deprecated. Not for public use. |
static GUIPanelComponent |
createVertical(GUIContainerComponent parent)
Returns new GUIPanelComponent with the vertical layout
for its children, and assigns it to the given parent. |
static GUIPanelComponent |
createVertical(GUIContainerComponent parent,
HorizontalAlignment horizontalAlignment)
Returns new GUIPanelComponent with the vertical layout
and horizontal alignment for its children, and assigns it to the given parent. |
Layout |
getLayout()
Returns the layout for this panel. |
void |
setLayout(Layout l)
Sets the layout for this panel. |
void |
validate()
Validates a configuration settings of this widget. |
void |
validateParts(java.lang.Iterable<GUIComponent> components,
java.util.Map<GUIComponent,IllegalComponentStateException> exceptions)
Deprecated. Not for public use. |
Methods inherited from class rs.sol.soloist.server.guiconfiguration.components.GUIContainerComponent |
---|
add, addFirst, clear, get, getVisibleChild, ipBack, ipForward, ipNext, ipPrevious, ipRefresh, ipRelay1, ipRelay2, ipReset, ipSubmit, ipVisibleChild, opRelay1, opRelay2, opVisibleChild, remove, removeFirst, setVisibleChild, validateSingleChild |
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 |
---|
public static final java.lang.String FQ_TYPE_NAME
public static final IClass CLASSIFIER
@Deprecated public IAssociationEndInstance<Layout> layout
Constructor Detail |
---|
public GUIPanelComponent()
Method Detail |
---|
public void constructor()
IClassifierInstance
constructor
in interface IClassifierInstance
constructor
in class GUIContainerComponent
public void validate()
GUIComponent
validate
in class GUIContainerComponent
@Deprecated public void validateParts(java.lang.Iterable<GUIComponent> components, java.util.Map<GUIComponent,IllegalComponentStateException> exceptions)
validateParts
in class GUIComponent
public static GUIPanelComponent create(GUIContainerComponent parent, Layout layout)
GUIPanelComponent
with the given layout
for its children, and assigns it to the given parent.
parent
- the parent GUIContainerComponent
widgetlayout
- the layout of new widget's children
GUIPanelComponent
public static GUIPanelComponent create(GUIContainerComponent parent, Layout layout, LayoutData layoutData)
GUIPanelComponent
with the given layout
for its children, places it in the parent's layout according to
the given LayoutData
, and assigns it to the given parent.
parent
- the parent GUIContainerComponent
widgetlayout
- the layout of new widget's childrenlayoutData
- the layout data of the new widget
GUIPanelComponent
public static GUIPanelComponent createFlow(GUIContainerComponent parent)
GUIPanelComponent
with the flow layout
for its children, and assigns it to the given parent.
parent
- the parent GUIContainerComponent
widget
GUIPanelComponent
public static GUIPanelComponent createAbsolute(GUIContainerComponent parent)
GUIPanelComponent
with the absolute layout
for its children, and assigns it to the given parent.
parent
- the parent GUIContainerComponent
widget
GUIPanelComponent
public static GUIPanelComponent createVertical(GUIContainerComponent parent)
GUIPanelComponent
with the vertical layout
for its children, and assigns it to the given parent.
parent
- the parent GUIContainerComponent
widget
GUIPanelComponent
public static GUIPanelComponent createVertical(GUIContainerComponent parent, HorizontalAlignment horizontalAlignment)
GUIPanelComponent
with the vertical layout
and horizontal alignment for its children, and assigns it to the given parent.
parent
- the parent GUIContainerComponent
widgethorizontalAlignment
- the horizontal alignment of the new panel's children
GUIPanelComponent
public static GUIPanelComponent createHorizontal(GUIContainerComponent parent)
GUIPanelComponent
with the horizontal layout
for its children, and assigns it to the given parent.
parent
- the parent GUIContainerComponent
widget
GUIPanelComponent
public static GUIPanelComponent createHorizontal(GUIContainerComponent parent, VerticalAlignment verticalAlignment)
GUIPanelComponent
with the horizontal layout
and vertical alignment for its children, and assigns it to the given parent.
parent
- the parent GUIContainerComponent
widgetverticalAlignment
- the vertical alignment of the new panel's children
GUIPanelComponent
public static GUIPanelComponent createTable(GUIContainerComponent parent)
GUIPanelComponent
with the tabular layout
for its children, and assigns it to the given parent.
parent
- the parent GUIContainerComponent
widget
GUIPanelComponent
public static GUIPanelComponent createDock(GUIContainerComponent parent)
GUIPanelComponent
with the dock layout
for its children, and assigns it to the given parent.
parent
- the parent GUIContainerComponent
widget
GUIPanelComponent
public static GUIPanelComponent createLayer(GUIContainerComponent parent)
GUIPanelComponent
with the layered layout
for its children, and assigns it to the given parent.
parent
- the parent GUIContainerComponent
widget
GUIPanelComponent
public void setLayout(Layout l)
l
- the new layout of this panelpublic Layout getLayout()
setLayout(Layout)
@Deprecated public static GUIPanelComponent createTable(GUIContainerComponent parent, java.lang.String... widths)
@Deprecated public static GUIPanelComponent createDock(GUIContainerComponent parent, java.lang.String units)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |