rs.sol.soloist.server.guiconfiguration.layout
Class TableLayoutData

java.lang.Object
  extended by rs.sol.soloist.server.uml.commonimplementation.runtime._ClassifierInstance
      extended by rs.sol.soloist.server.uml.commonimplementation.runtime._ClassInstance
          extended by rs.sol.soloist.server.javaimpl.runtime.SOLoistClassInstance
              extended by rs.sol.soloist.server.builtindomains.common.ObjectOfClass
                  extended by rs.sol.soloist.server.guiconfiguration.layout.LayoutData
                      extended by rs.sol.soloist.server.guiconfiguration.layout.CellLayoutData
                          extended by rs.sol.soloist.server.guiconfiguration.layout.TableLayoutData
All Implemented Interfaces:
rs.sol.soloist.server.uml.concepts.IElement, IClassifierInstance, IClassInstance, IRTElement

public class TableLayoutData
extends CellLayoutData

An object meant to be assigned to a widget within a panel with TabelLayout, to specify widget's row number, column number, spans, cell alignment, style, and size.

For a panel and a label defined like this:

 GUIPanelComponent table = GUIPanelComponent.createTable(parent);
 GUILabelComponent label = GUILabelComponent.create(table, "Hello");
 
 
a table layout data information can be specified like this:
 TableLayoutData tableLayoutData = new TableLayoutData();
 tableLayoutData.setRow(3);
 tableLayoutData.setColumn(4);
 label.setLayoutData(tableLayoutData);
 
 
Or shortly:
 TableLayoutData tableLayoutData = TableLayoutData.create(3, 4);
 label.setLayoutData(tableLayoutData);
 
 
The same can be achieved with the code bellow, however, in general, attention should be paid when using setRowColumn method to ensure that widget is within the table panel (that is, a panel with TableLayout):
 label.setRowColumn(3, 4);
 
 

Author:
SOL Expert Group
See Also:
CellLayoutData, LayoutData

Nested Class Summary
static class TableLayoutData.Comparator<T extends TableLayoutData>
          Deprecated. Not for public use.
static class TableLayoutData.FQPropertyNames
          Deprecated. Not for public use.
static class TableLayoutData.HashFunction<T extends TableLayoutData>
          Deprecated. Not for public use.
static class TableLayoutData.PROPERTIES
          Deprecated. Not for public use.
 
Nested classes/interfaces inherited from class rs.sol.soloist.server.guiconfiguration.layout.LayoutData
LayoutData.Unit
 
Field Summary
static IClass CLASSIFIER
          UML class reference
 IAttributeValue<Integer> colSpan
          Deprecated. Not for public use.
 IAttributeValue<Integer> column
          Deprecated. Not for public use.
static java.lang.String FQ_TYPE_NAME
          Fully qualified UML class name
 IAttributeValue<Integer> row
          Deprecated. Not for public use.
 IAttributeValue<Integer> rowSpan
          Deprecated. Not for public use.
 
Fields inherited from class rs.sol.soloist.server.guiconfiguration.layout.CellLayoutData
cellHeight, cellWidth, horizontalAlignment, styleName, verticalAlignment
 
Fields inherited from class rs.sol.soloist.server.guiconfiguration.layout.LayoutData
allowedUnits, height, width
 
Constructor Summary
TableLayoutData()
           
TableLayoutData(int row, int column)
          Deprecated. Not for public use.
TableLayoutData(int row, int column, int rowSpan, int colSpan)
          Deprecated.  
 
Method Summary
 void constructor()
          The domain-specific constructor of the Classifier.
 void constructor(int row, int column)
          Performs an initialization for this object.
 void constructor(int row, int column, int rowSpan, int colSpan)
          Performs an initialization for this object.
static TableLayoutData create(int row, int column)
          Returns new TableLayoutData object that specifies the row and column indices of the widget in a panel that will have that object assigned to.
static TableLayoutData create(int row, int column, int rowSpan, int colSpan)
          Returns new TableLayoutData object that specifies the row and column indices, as well as the row and column spans of the widget in a panel that will have that object assigned to.
 rs.sol.soloist.client.common.info.layout.TableLayoutDataInfo createSpecificInfo()
          Creates and returns an empty serializable object of the appropriate LayoutDataInfo sub-class.
 void fillInfo(rs.sol.soloist.client.common.info.layout.LayoutDataInfo info_)
          Fills-in already created LayoutDataInfo object with values of properties of this object.
 int getColumn()
          Returns the column index of the widget that has this object assigned to.
 int getColumnSpan()
          Returns the column span of the widget that has this object assigned to.
 int getRow()
          Returns the row index of the widget that has this object assigned to.
 int getRowSpan()
          Returns the row span of the widget that has this object assigned to.
 void setColumn(int column)
          Sets the column index of the widget that has this object assigned to.
 void setColumnSpan(int columnSpan)
          Sets the column span of the widget that has this object assigned to.
 void setRow(int row)
          Sets the row index of the widget that has this object assigned to.
static void setRowColumn(GUIComponent component, int row, int column)
          Deprecated. Not for public use.
static void setRowColumn(GUIComponent component, int row, int column, int rowSpan, int colSpan)
          Deprecated. Not for public use.
 void setRowSpan(int rowSpan)
          Sets the row span of the widget that has this object assigned to.
 
Methods inherited from class rs.sol.soloist.server.guiconfiguration.layout.CellLayoutData
create, create, getCellHeight, getCellWidth, getHorizontalAlignment, getStyleName, getVerticalAlignment, setAlignment, setAlignment, setAlignment, setCellHieght, setCellSize, setCellWidth, setHorizontalAlignment, setStyleName, setStyleName, setVerticalAlignment, validate
 
Methods inherited from class rs.sol.soloist.server.guiconfiguration.layout.LayoutData
create, createInfo, getHeight, getWidth, setHeight, setSize, setSize, setWidth, 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

row

@Deprecated
public IAttributeValue<Integer> row
Deprecated. Not for public use.

column

@Deprecated
public IAttributeValue<Integer> column
Deprecated. Not for public use.

rowSpan

@Deprecated
public IAttributeValue<Integer> rowSpan
Deprecated. Not for public use.

colSpan

@Deprecated
public IAttributeValue<Integer> colSpan
Deprecated. Not for public use.

FQ_TYPE_NAME

public static final java.lang.String FQ_TYPE_NAME
Fully qualified UML class name

See Also:
Constant Field Values

CLASSIFIER

public static final IClass CLASSIFIER
UML class reference

Constructor Detail

TableLayoutData

@Deprecated
public TableLayoutData(int row,
                                  int column,
                                  int rowSpan,
                                  int colSpan)
Deprecated. 


TableLayoutData

@Deprecated
public TableLayoutData(int row,
                                  int column)
Deprecated. Not for public use.


TableLayoutData

public TableLayoutData()
Method Detail

constructor

public void constructor(int row,
                        int column,
                        int rowSpan,
                        int colSpan)
Performs an initialization for this object. It is internally called during the construction.

Parameters:
row - the row index of the corresponding widget
column - the column index of the corresponding widget
rowSpan - the row span of the corresponding widget
colSpan - the column span of the corresponding widget

constructor

public void constructor(int row,
                        int column)
Performs an initialization for this object. It is internally called during the construction.

Parameters:
row - the row index of the corresponding widget
column - the column index of the corresponding widget

constructor

public void constructor()
Description copied from interface: IClassifierInstance
The domain-specific constructor of the Classifier.

Specified by:
constructor in interface IClassifierInstance
Overrides:
constructor in class CellLayoutData

createSpecificInfo

public rs.sol.soloist.client.common.info.layout.TableLayoutDataInfo createSpecificInfo()
Description copied from class: LayoutData
Creates and returns an empty serializable object of the appropriate LayoutDataInfo sub-class. The returned object must be able to transmit every property of objects of this class from server to clients (browsers).

Overrides:
createSpecificInfo in class CellLayoutData
Returns:
a LayoutDataInfo sub-class instance

fillInfo

public void fillInfo(rs.sol.soloist.client.common.info.layout.LayoutDataInfo info_)
Description copied from class: LayoutData
Fills-in already created LayoutDataInfo object with values of properties of this object.

Overrides:
fillInfo in class CellLayoutData
Parameters:
info_ - a LayoutDataInfo sub-class object to be filled-in
See Also:
LayoutData.createSpecificInfo()

create

public static TableLayoutData create(int row,
                                     int column)
Returns new TableLayoutData object that specifies the row and column indices of the widget in a panel that will have that object assigned to.

Parameters:
row - the row index of the widget
column - the column index of the widget
Returns:
new TableLayoutData object that specifies the row and column indices of the widget

create

public static TableLayoutData create(int row,
                                     int column,
                                     int rowSpan,
                                     int colSpan)
Returns new TableLayoutData object that specifies the row and column indices, as well as the row and column spans of the widget in a panel that will have that object assigned to.

Parameters:
row - the row index of the widget
column - the column index of the widget
rowSpan - the row span of the widget
colSpan - the column span of the widget
Returns:
new TableLayoutData object that specifies the row and column indices and row and column spans of the widget

setRow

public void setRow(int row)
Sets the row index of the widget that has this object assigned to.

Parameters:
row - the row index

setColumn

public void setColumn(int column)
Sets the column index of the widget that has this object assigned to.

Parameters:
column - the column index

setRowSpan

public void setRowSpan(int rowSpan)
Sets the row span of the widget that has this object assigned to.

Parameters:
rowSpan - the row span

setColumnSpan

public void setColumnSpan(int columnSpan)
Sets the column span of the widget that has this object assigned to.

Parameters:
columnSpan - the column span

getColumnSpan

public int getColumnSpan()
Returns the column span of the widget that has this object assigned to.

Returns:
the column span of the widget

getRowSpan

public int getRowSpan()
Returns the row span of the widget that has this object assigned to.

Returns:
the row span of the widget

getColumn

public int getColumn()
Returns the column index of the widget that has this object assigned to.

Returns:
the column index of the widget

getRow

public int getRow()
Returns the row index of the widget that has this object assigned to.

Returns:
the row index of the widget

setRowColumn

@Deprecated
public static void setRowColumn(GUIComponent component,
                                           int row,
                                           int column)
Deprecated. Not for public use.


setRowColumn

@Deprecated
public static void setRowColumn(GUIComponent component,
                                           int row,
                                           int column,
                                           int rowSpan,
                                           int colSpan)
Deprecated. Not for public use.