|
||||||||||
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.layout.LayoutData rs.sol.soloist.server.guiconfiguration.layout.DockLayoutData
public class DockLayoutData
An object meant to be assigned to a widget within a panel
with DockLayout
, to specify widget's direction
and size.
For a panel and a label defined like this:
GUIPanelComponent dock = GUIPanelComponent.createDock(parent, "px");
GUILabelComponent label = GUILabelComponent.create(dock, "Hello");
a dock layout data information can be specified like this:
DockLayoutData dockLayoutData = new DockLayoutData();
dockLayoutData.setSize(100.);
dockLayoutData.setDirection(DockLayoutDirection.SOUTH);
label.setLayoutData(dockLayoutData);
Or shortly:
DockLayoutData dockLayoutData = DockLayoutData.create(DockLayoutDirection.SOUTH, 100.);
label.setLayoutData(dockLayoutData);
The same can be achieved with the code bellow, however, in general,
attention should be paid when using setDirectionAndSize
method and
setCenter
method to ensure that widget is within the
dock panel (that is, a panel with DockLayout
):
label.setDirectionAndSize(DockLayoutDirection.SOUTH, 100.);
LayoutData
,
DockLayoutDirection
Nested Class Summary | |
---|---|
static class |
DockLayoutData.FQPropertyNames
Deprecated. Not for public use. |
static class |
DockLayoutData.PROPERTIES
Deprecated. Not for public use. |
Nested classes/interfaces inherited from class rs.sol.soloist.server.guiconfiguration.layout.LayoutData |
---|
LayoutData.Comparator<T extends LayoutData>, LayoutData.HashFunction<T extends LayoutData>, LayoutData.Unit |
Field Summary | |
---|---|
static IClass |
CLASSIFIER
UML class reference |
IAttributeValue<DockLayoutDirection> |
direction
Deprecated. Not for public use. |
static java.lang.String |
FQ_TYPE_NAME
Fully qualified UML class name |
IAttributeValue<Real> |
size
Deprecated. Not for public use. |
Fields inherited from class rs.sol.soloist.server.guiconfiguration.layout.LayoutData |
---|
allowedUnits, height, width |
Constructor Summary | |
---|---|
DockLayoutData()
|
|
DockLayoutData(DockLayoutDirection direction,
double size)
Deprecated. |
Method Summary | |
---|---|
void |
constructor()
The domain-specific constructor of the Classifier. |
void |
constructor(DockLayoutDirection direction,
double size)
Performs an initialization for this object. |
static DockLayoutData |
create(DockLayoutDirection direction,
double size)
Returns new DockLayoutData object that specifies
direction and size of the widget that will have this object
assigned to. |
rs.sol.soloist.client.common.info.layout.DockLayoutDataInfo |
createSpecificInfo()
Creates and returns an empty serializable object of the appropriate LayoutDataInfo sub-class. |
void |
fillInfo(rs.sol.soloist.client.common.info.layout.LayoutDataInfo info1)
Fills-in already created LayoutDataInfo object with
values of properties of this object. |
DockLayoutDirection |
getDirection()
Returns the direction of the widget that has this object assigned to. |
double |
getSize()
Returns the size of the object that has this widget assigned to. |
static void |
setCenter(GUIComponent component)
Deprecated. Not for public use. |
void |
setDirection(DockLayoutDirection direction)
Sets the direction of the widget that has this object assigned to. |
static void |
setDirectionAndSize(GUIComponent component,
DockLayoutDirection direction,
double size)
Deprecated. Not for public use. |
void |
setSize(double size)
Sets the size of the widget that has this object assigned to. |
Methods inherited from class rs.sol.soloist.server.guiconfiguration.layout.LayoutData |
---|
create, create, createInfo, getHeight, getWidth, setHeight, setSize, setSize, setWidth, validate, validateMeasureString, validateUnitString |
Methods inherited from class rs.sol.soloist.server.builtindomains.common.ObjectOfClass |
---|
handle |
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, destructor, 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, destructor, 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<DockLayoutDirection> direction
@Deprecated public IAttributeValue<Real> size
public static final java.lang.String FQ_TYPE_NAME
public static final IClass CLASSIFIER
Constructor Detail |
---|
@Deprecated public DockLayoutData(DockLayoutDirection direction, double size)
public DockLayoutData()
Method Detail |
---|
public void constructor(DockLayoutDirection direction, double size)
direction
- the DockLayoutDirection to be used when placing the
corresponding widget in its parent (dock) layoutsize
- the double to be used as a size of the corresponding
widgetpublic void constructor()
IClassifierInstance
constructor
in interface IClassifierInstance
constructor
in class LayoutData
public rs.sol.soloist.client.common.info.layout.DockLayoutDataInfo createSpecificInfo()
LayoutData
LayoutDataInfo
sub-class. The returned object must be able to
transmit every property of objects of this class from server to
clients (browsers).
createSpecificInfo
in class LayoutData
LayoutDataInfo
sub-class instancepublic void fillInfo(rs.sol.soloist.client.common.info.layout.LayoutDataInfo info1)
LayoutData
LayoutDataInfo
object with
values of properties of this object.
fillInfo
in class LayoutData
info1
- a LayoutDataInfo
sub-class object
to be filled-inLayoutData.createSpecificInfo()
public static DockLayoutData create(DockLayoutDirection direction, double size)
DockLayoutData
object that specifies
direction and size of the widget that will have this object
assigned to.
direction
- the direction of the widget
(NORTH, SOUTH, WEST, EAST, CENTER)size
- the size of the widget
DockLayoutData
object that specifies
direction and size of the widgetpublic void setDirection(DockLayoutDirection direction)
direction
- the direction (NORTH, SOUTH, WEST, EAST, CENTER)
of the widget that has this object assigned topublic void setSize(double size)
size
- the size of the widget that has this object assigned topublic DockLayoutDirection getDirection()
public double getSize()
@Deprecated public static void setCenter(GUIComponent component)
@Deprecated public static void setDirectionAndSize(GUIComponent component, DockLayoutDirection direction, double size)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |