|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.core.client.JavaScriptObject
com.sap.ui.core.client.Element
com.sap.ui.core.client.Control
com.sap.ui.commons.client.layout.MatrixLayout
public class MatrixLayout
The class MatrixLayout is the GWT wrapper
for the Phoenix control: sap.ui.commons.layout.MatrixLayout.
A matrix layout arranges controls in a grid structure, using rows which need not have the same number of cells.
It uses predefined cell classes that guarantee appropriate distances
between cells in the grid. The cell's vGutter property lets
you specify additional horizontal distances easily. You can set these
additional distances (known as gutters) with or without separators.
The distance for each cell is specified by assigning a specific
enumeration value of the class LayoutCellSeparator of the
matrix data object.
You should avoid nesting matrix layouts. You should only use a matrix layout if you need to align controls horizontally across rows.
| Constructor Summary | |
|---|---|
protected |
MatrixLayout()
constructs the class MatrixLayouthidden due to JavaScriptObject restriction |
| Method Summary | |
|---|---|
MatrixLayout |
addRow(MatrixLayoutRow row)
Appends a row to the aggregation rows. |
static MatrixLayout |
create()
creates a new instance of the class MatrixLayout |
static MatrixLayout |
create(String idOrConfig)
creates a new instance of the class MatrixLayout |
static MatrixLayout |
create(String id,
String config)
creates a new instance of the class MatrixLayout |
MatrixLayout |
createRow(com.sap.ui.core.client.Control... controls)
Creates a new matrix layout row and appends it to this matrix layout. |
MatrixLayout |
destroyRows()
Destroys all the rows in the Rows-aggregation. |
int |
getColumns()
Getter for property columns
Number of columns. |
String |
getHeight()
Getter for property height
CSS height of the matrix layout. |
com.sap.ui.core.client.js.JsArray<MatrixLayoutRow> |
getRows()
Getter for aggregation rows The matrix layout's individual rows. |
String |
getWidth()
Getter for property width
CSS width of the matrix layout. |
int |
indexOfRow(MatrixLayoutRow row)
Checks for the provided com.sap.ui.commons.client.layout.MatrixLayoutRow in the rows-aggregation and
returns its index if found or -1 otherwise. |
MatrixLayout |
insertRow(MatrixLayoutRow row,
int index)
Inserts some row into the aggregation named rows. |
boolean |
isLayoutFixed()
Getter for property layoutFixed
Sets the table layout. |
boolean |
isVisible()
Getter for property visible
Determines whether the matrix layout, including all its content, is
visible. |
com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<MatrixLayoutRow>> |
removeAllRows()
Removes all the items in the rows-aggregation. |
com.sap.ui.core.client.js.JsArray<MatrixLayoutRow> |
removeRow(int index)
Removes a row from the aggregation named rows. |
MatrixLayout |
setColumns(int value)
Setter for property columns |
MatrixLayout |
setHeight(String value)
Setter for property height |
MatrixLayout |
setLayoutFixed(boolean value)
Setter for property layoutFixedDefault value is: true |
MatrixLayout |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
MatrixLayout |
setWidth(String value)
Setter for property width |
MatrixLayout |
setWidths(String... widths)
Set the widths of the colums. |
| Methods inherited from class com.sap.ui.core.client.Control |
|---|
addStyleClass, hasStyleClass, invalidate, placeAt, placeAt, removeStyleClass, rerender |
| Methods inherited from class com.sap.ui.core.client.Element |
|---|
_convertArray, _convertArray, _convertArray, _convertArray, _convertArray, attachBrowserEvent, attachEvent, bindAggregation, bindContext, bindProperty, bindProperty, destroy, detachBrowserEvent, detachEvent, getDomRef, getElementName, getId, getLibraryName, getModel, getParent, getProperty, getTooltip_AsString, getTooltip_Text, getTooltip, isActive, setModel, setProperty, setTooltip, setTooltip, unbindAggregation, unbindContext, unbindProperty |
| Methods inherited from class com.google.gwt.core.client.JavaScriptObject |
|---|
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected MatrixLayout()
MatrixLayoutJavaScriptObject restriction
| Method Detail |
|---|
public static MatrixLayout create()
MatrixLayout
public static MatrixLayout create(String idOrConfig)
MatrixLayout
id - id of the MatrixLayout or configuration JSON string
public static MatrixLayout create(String id,
String config)
MatrixLayout
id - id of the MatrixLayoutconfig - configuration JSON stringpublic final boolean isVisible()
visible
Determines whether the matrix layout, including all its content, is
visible. An invisible control will not be rendered.
public final MatrixLayout setVisible(boolean value)
visibletrue
value - boolean
this to allow method chainingpublic final String getWidth()
width
CSS width of the matrix layout.
If the LayoutFixed = true a adequate width should be provided.
public final MatrixLayout setWidth(String value)
width
value - String
this to allow method chainingpublic final String getHeight()
height
CSS height of the matrix layout.
public final MatrixLayout setHeight(String value)
height
value - String
this to allow method chainingpublic final boolean isLayoutFixed()
layoutFixed
Sets the table layout. If fixed the width parameter of a column has priority, if not the width of the content of the colums has priority.
The default is "fixed".
If the fixed layout is used a adequate width of the MatrixLayout should be provided. Otherwise the column width displayed could be different than the given ones because of browser dependend optimazations.
public final MatrixLayout setLayoutFixed(boolean value)
layoutFixedtrue
value - boolean
this to allow method chainingpublic final int getColumns()
columns
Number of columns. If not specified, the number of columns will be determined from the given cells.
public final MatrixLayout setColumns(int value)
columns
value - int
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<MatrixLayoutRow> getRows()
public final MatrixLayout insertRow(MatrixLayoutRow row,
int index)
rows.
row - the row to insertindex - int the 0-based index the row should be inserted at.
this to allow method chainingpublic final MatrixLayout addRow(MatrixLayoutRow row)
rows.
row - com.sap.ui.commons.client.layout.MatrixLayoutRow the row to add
this to allow method chainingpublic final com.sap.ui.core.client.js.JsArray<MatrixLayoutRow> removeRow(int index)
rows.
index - int the position of the row to remove.
public final com.sap.ui.core.client.js.JsArray<com.sap.ui.core.client.js.JsArray<MatrixLayoutRow>> removeAllRows()
public final int indexOfRow(MatrixLayoutRow row)
com.sap.ui.commons.client.layout.MatrixLayoutRow in the rows-aggregation and
returns its index if found or -1 otherwise.
row - the row whose index is looked for.
public final MatrixLayout destroyRows()
this to allow method chainingpublic final MatrixLayout createRow(com.sap.ui.core.client.Control... controls)
controls - Each argument must be either a matrix layout cell, which is added to the row "as is", or an arbitrary content control, which is wrapped with a new (default) matrix layout cell first and then added to the row.
Supports a variable number of arguments!public final MatrixLayout setWidths(String... widths)
widths - Widths of the columns. Use an array to define the widths of the columns.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||