|
||||||||||
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.layout.Layout
rs.sol.soloist.server.guiconfiguration.layout.CellLayout
rs.sol.soloist.server.guiconfiguration.layout.TableLayout
public class TableLayout
An object meant to be assigned to a panel to give it tabular spatial
arrangement for its children. In that case, a children shoud have
a TableLayoutData
object assigned for additional child-specific layout adjustments like
the row and column index, row span and column span.
Table layouts should be used in the following way:
TableLayout tLayout = new TableLayout();
tLayout.setHorizontalAlignment(HorizontalAlignment.CENTER);
tLayout.setVerticalAlignment(VerticalAlignment.MIDDLE);
GUIPanelComponent table = GUIPanelComponent.create(parent, tLayout);
Or shortly using a general factory method:
TableLayout tLayout = TableLayout.create(HorizontalAlignment.CENTER, VerticalAlignment.MIDDLE);
GUIPanelComponent table = GUIPanelComponent.create(parent, tLayout);
Or even shorter if alignment is not important using specific factory
method:
GUIPanelComponent table = GUIPanelComponent.createTable(parent);
If row- or column-specific layout adjustments like alignment or CSS style
are needed, TableRowData
and TableColumnData
should be used.
CellLayout
,
Layout
Nested Class Summary | |
---|---|
static class |
TableLayout.FQPropertyNames
Deprecated. Not for public use. |
static class |
TableLayout.PROPERTIES
Deprecated. Not for public use. |
Field Summary | |
---|---|
static IClass |
CLASSIFIER
UML class reference |
IAssociationEndInstance<TableColumnData> |
columnDatas
Deprecated. Not for public use. |
IAttributeValue<Integer> |
columns
Deprecated. Not for public use. |
static java.lang.String |
FQ_TYPE_NAME
Fully qualified UML class name |
IAttributeValue<Boolean> |
isFixed
Deprecated. Not for public use. |
IAttributeValue<Integer> |
padding
Deprecated. Not for public use. |
IAssociationEndInstance<TableRowData> |
rowDatas
Deprecated. Not for public use. |
IAttributeValue<Integer> |
rows
Deprecated. Not for public use. |
Fields inherited from class rs.sol.soloist.server.guiconfiguration.layout.CellLayout |
---|
horizontalAlignment, spacing, verticalAlignment |
Constructor Summary | |
---|---|
TableLayout()
|
|
TableLayout(int rows,
int columns)
Deprecated. Not for public use. |
Method Summary | |
---|---|
void |
addColumnData(TableColumnData tcd)
Adds additional column data information. |
void |
addRowData(TableRowData trd)
Adds additional row data information. |
void |
clearColumnData()
Clears all additional column data information. |
void |
clearRowData()
Clears all additional row data information. |
void |
constructor()
The domain-specific constructor of the Classifier. |
void |
constructor(int rows,
int columns)
Performs an initialization for this object. |
static TableLayout |
create(HorizontalAlignment ha,
VerticalAlignment va)
Returns new TableLayout object that specifies tabular
layout with exact horizontal and vertical alignment for the widgets in
a panel that will have that object assigned to. |
static TableLayout |
create(HorizontalAlignment ha,
VerticalAlignment va,
java.lang.String... widths)
Returns new TableLayout object that specifies tabular
layout with exact horizontal and vertical alignment and with exact
column widths for the widgets in a panel that will have that object
assigned to. |
static TableLayout |
create(int rows,
int columns)
Returns new TableLayout object that specifies tabular
layout with exact number of rows and columns for the widgets in
a panel that will have that object assigned to. |
static TableLayout |
create(java.lang.String... widths)
Returns new TableLayout object that specifies tabular
layout with exact column widths for the widgets in
a panel that will have that object assigned to. |
rs.sol.soloist.client.common.info.layout.TableLayoutInfo |
createSpecificInfo()
Creates and returns an empty serializable object of the appropriate LayoutInfo sub-class. |
void |
fillInfo(rs.sol.soloist.client.common.info.layout.LayoutInfo info_)
Fills-in already created LayoutInfo object with
values of properties of this object. |
TableColumnData |
getColumnData(int index)
Deprecated. Not for public use. |
int |
getColumnsNumber()
Returns the column number of this layout. |
boolean |
getFixed()
Returns whether this layout is fixed in terms of number of rows and columns. |
IClass |
getLayoutDataClass()
Deprecated. Not for public use. |
int |
getPadding()
Returns the padding in this layout. |
int |
getRowsNumber()
Returns the row number of this layout. |
void |
removeColumnData(TableColumnData tcd)
Removes additional column data information. |
void |
removeRowData(TableRowData trd)
Removes additional row data information. |
void |
setColumnsNumber(int columns)
Sets the number of columns of this table layout and sets this layout to be fixed. |
void |
setFixed(boolean fixed)
Sets this layout to be fixed in terms of number of rows and columns. |
void |
setPadding(int padding)
Sets the padding of this table layout. |
void |
setRowsNumber(int rows)
Sets the number of rows of this table layout and sets this layout to be fixed. |
void |
validate()
Validates a configuration settings of this object. |
Methods inherited from class rs.sol.soloist.server.guiconfiguration.layout.CellLayout |
---|
getHorizontalAlignment, getSpacing, getVerticalAlignment, setHorizontalAlignment, setSpacing, setVerticalAlignment |
Methods inherited from class rs.sol.soloist.server.guiconfiguration.layout.Layout |
---|
createInfo, createLayoutData, validate, validate |
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<Boolean> isFixed
@Deprecated public IAttributeValue<Integer> rows
@Deprecated public IAttributeValue<Integer> columns
@Deprecated public IAttributeValue<Integer> padding
public static final java.lang.String FQ_TYPE_NAME
public static final IClass CLASSIFIER
@Deprecated public IAssociationEndInstance<TableColumnData> columnDatas
@Deprecated public IAssociationEndInstance<TableRowData> rowDatas
Constructor Detail |
---|
public TableLayout()
@Deprecated public TableLayout(int rows, int columns)
Method Detail |
---|
public void constructor()
IClassifierInstance
constructor
in interface IClassifierInstance
constructor
in class CellLayout
public void constructor(int rows, int columns)
rows
- the number of rows in the tablecolumns
- the number of rows in the tablepublic void validate()
Layout
validate
in class Layout
@Deprecated public IClass getLayoutDataClass()
Layout
getLayoutDataClass
in class Layout
public rs.sol.soloist.client.common.info.layout.TableLayoutInfo createSpecificInfo()
Layout
LayoutInfo
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 Layout
LayoutInfo
sub-class instancepublic void fillInfo(rs.sol.soloist.client.common.info.layout.LayoutInfo info_)
Layout
LayoutInfo
object with
values of properties of this object.
fillInfo
in class CellLayout
info_
- a LayoutInfo
sub-class object
to be filled-inLayout.createSpecificInfo()
public static TableLayout create(int rows, int columns)
TableLayout
object that specifies tabular
layout with exact number of rows and columns for the widgets in
a panel that will have that object assigned to.
rows
- the number of rows in a tablecolumns
- the number of columns in a table
TableLayout
object that specifies tabular
layout for the widgetspublic static TableLayout create(HorizontalAlignment ha, VerticalAlignment va)
TableLayout
object that specifies tabular
layout with exact horizontal and vertical alignment for the widgets in
a panel that will have that object assigned to.
ha
- the horizontal alignment of the widgetsva
- the vertical alignment of the widgets
TableLayout
object that specifies tabular
layout for the widgetspublic static TableLayout create(java.lang.String... widths)
TableLayout
object that specifies tabular
layout with exact column widths for the widgets in
a panel that will have that object assigned to.
widths
- an array of column widths
TableLayout
object that specifies tabular
layout for the widgetspublic static TableLayout create(HorizontalAlignment ha, VerticalAlignment va, java.lang.String... widths)
TableLayout
object that specifies tabular
layout with exact horizontal and vertical alignment and with exact
column widths for the widgets in a panel that will have that object
assigned to.
ha
- the horizontal alignment of the widgetsva
- the vertical alignment of the widgetswidths
- an array of column widths
TableLayout
object that specifies tabular
layout for the widgetspublic void setFixed(boolean fixed)
fixed
- the boolean that tells whether this layout should be
fixed in terms of number of rows and columnspublic void setRowsNumber(int rows)
rows
- the number of rowssetFixed(boolean)
public void setColumnsNumber(int columns)
columns
- the number of columnssetFixed(boolean)
public void setPadding(int padding)
padding
- the padding amountpublic boolean getFixed()
public int getRowsNumber()
public int getColumnsNumber()
public int getPadding()
public void addRowData(TableRowData trd)
trd
- the row data information to be addedpublic void removeRowData(TableRowData trd)
trd
- the row data information to be removedpublic void clearRowData()
public void addColumnData(TableColumnData tcd)
tcd
- the column data information to be addedpublic void removeColumnData(TableColumnData tcd)
tcd
- the column data information to be removedpublic void clearColumnData()
@Deprecated public TableColumnData getColumnData(int index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |