|
||||||||||
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.GUIContainerComponent rs.sol.soloist.server.guiconfiguration.components.GUIDisclosurePanel
public class GUIDisclosurePanel
A container widget that displays/hides its content depending on a clickable header. This widget strictly has one child which is typically a panel to which all other widgets must be added.
In the run-time, visiblity of the content can be also controlled
by binding boolean value providing output pins to this
widget's open
input pin (
ipOpen()
method).
The code sample that creates this widget, specifies the header, and creates its child panel is shown bellow:
GUIDisclosurePanel disc = GUIDisclosurePanel.create(parent, "Additional details");
GUIPanelComponent rootPanel = GUIPanelComponent.createFlow(disc);
rootPanel.add(...);
rootPanel.add(...);
Nested Class Summary | |
---|---|
static class |
GUIDisclosurePanel.FQPropertyNames
Deprecated. Not for public use. |
static class |
GUIDisclosurePanel.PROPERTIES
Deprecated. Not for public use. |
Field Summary | |
---|---|
IAttributeValue<Text> |
appendWhenClosed
Deprecated. Not for public use. |
IAttributeValue<Text> |
appendWhenOpen
Deprecated. Not for public use. |
static IClass |
CLASSIFIER
UML class reference |
static java.lang.String |
FQ_TYPE_NAME
Fully qualified UML class name |
IAttributeValue<Text> |
headerText
Deprecated. Not for public use. |
IAttributeValue<Boolean> |
open
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 | |
---|---|
GUIDisclosurePanel()
|
Method Summary | |
---|---|
void |
constructor()
The domain-specific constructor of the Classifier. |
static GUIDisclosurePanel |
create(GUIContainerComponent parent,
java.lang.String text)
Returns new GUIDisclosurePanel with the given
text (label) and assigns it to the given parent. |
static GUIDisclosurePanel |
create(GUIContainerComponent parent,
java.lang.String text,
LayoutData layoutData)
Returns new GUIDisclosurePanel with the given
text (label), places it in the parent's layout according to
the given LayoutData , and assigns it to the
given parent. |
rs.sol.soloist.client.common.info.DisclosurePanelInfo |
createSpecificInfo()
Creates and returns an empty serializable object of the appropriate ComponentInfo sub-class. |
java.lang.String |
getAppendWhenClose()
Returns the text which is appended to the header text of this widget when the panel is closed. |
java.lang.String |
getAppendWhenOpen()
Returns the text which is appended to the header text of this widget when the panel is opened. |
java.lang.String |
getHeaderText()
Returns the header text (label) of this widget. |
ISlot<?> |
ipOpen()
Returns the open input pin; when event occurs,
the Boolean value from the binding message content
will be used to specify whether this panel should open
(true ) or close (false ) its sub-tree
(that is, its content). |
ISlot<?> |
opOpen()
Returns the open output pin; each time
user clicks on the header of this panel and opens /
closes it, the Boolean value (
true for open state, false for closed)
will be provided on this pin. |
void |
setAppendWhenClose(java.lang.String appendWhenClosed)
Sets the text which is appended to the header text of this widget when the panel is closed. |
void |
setAppendWhenOpen(java.lang.String appendWhenOpen)
Sets the text which is appended to the header text of this widget when the panel is opened. |
void |
setHeaderText(java.lang.String headerText)
Sets the header text (label) of this widget. |
void |
validate()
Validates a configuration settings of this widget. |
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 |
---|
@Deprecated public IAttributeValue<Text> headerText
@Deprecated public IAttributeValue<Text> appendWhenOpen
@Deprecated public IAttributeValue<Text> appendWhenClosed
@Deprecated public IAttributeValue<Boolean> open
public static final java.lang.String FQ_TYPE_NAME
public static final IClass CLASSIFIER
Constructor Detail |
---|
public GUIDisclosurePanel()
Method Detail |
---|
public void constructor()
IClassifierInstance
constructor
in interface IClassifierInstance
constructor
in class GUIContainerComponent
public void validate()
GUIComponent
validate
in class GUIContainerComponent
public rs.sol.soloist.client.common.info.DisclosurePanelInfo 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 GUIDisclosurePanel create(GUIContainerComponent parent, java.lang.String text)
GUIDisclosurePanel
with the given
text (label) and assigns it to the given parent.
parent
- the parent GUIContainerComponent
widgettext
- the panels's text or label
GUIDisclosurePanel
public static GUIDisclosurePanel create(GUIContainerComponent parent, java.lang.String text, LayoutData layoutData)
GUIDisclosurePanel
with the given
text (label), places it in the parent's layout according to
the given LayoutData
, and assigns it to the
given parent.
parent
- the parent GUIContainerComponent
widgettext
- the panel's text or labellayoutData
- the layout data of the new panel
GUIDisclosurePanel
public ISlot<?> ipOpen()
open
input pin; when event occurs,
the Boolean
value from the binding message content
will be used to specify whether this panel should open
(true
) or close (false
) its sub-tree
(that is, its content).
open
input pinGUIComponentBinding
public ISlot<?> opOpen()
open
output pin; each time
user clicks on the header of this panel and opens /
closes it, the Boolean
value (
true
for open state, false
for closed)
will be provided on this pin.
open
output pinGUIComponentBinding
public java.lang.String getHeaderText()
setHeaderText(String)
public void setHeaderText(java.lang.String headerText)
headerText
- the header text (label) of this widgetpublic java.lang.String getAppendWhenOpen()
setAppendWhenOpen(String)
public void setAppendWhenOpen(java.lang.String appendWhenOpen)
appendWhenOpen
- the text which is appended to the header text
of this widget when the panel is openedpublic java.lang.String getAppendWhenClose()
setAppendWhenClose(String)
public void setAppendWhenClose(java.lang.String appendWhenClosed)
appendWhenClosed
- the text which is appended to the header text
of this widget when the panel is closed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |