|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.sap.ui.core.client.ControlWidget
com.sap.ui.commons.client.layout.MatrixLayoutWidget
public class MatrixLayoutWidget
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
|
MatrixLayoutWidget()
constructs the class MatrixLayoutWidget |
protected |
MatrixLayoutWidget(MatrixLayout control)
constructs the class MatrixLayoutWidget |
|
MatrixLayoutWidget(String id)
constructs the class MatrixLayoutWidget |
| Method Summary | |
|---|---|
void |
addRow(MatrixLayoutRow row)
Appends some row to the rows-aggregation. |
MatrixLayout |
createRow(com.sap.ui.core.client.Control... controls)
Creates a new matrix layout row and appends it to this matrix layout. |
void |
destroyRows()
Destroys all the rows in the Rows-aggregation. |
int |
getColumns()
Getter for property columns
Number of columns. |
MatrixLayout |
getControl()
returns the reference to the Phoenix Control |
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. |
void |
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. |
void |
removeAllRows()
Removes all the items in the rows-aggregation. |
void |
removeRow(int index)
Removes the row at position index in the rows-aggregation named. |
void |
setColumns(int value)
Setter for property columns |
void |
setHeight(String value)
Setter for property height |
void |
setLayoutFixed(boolean value)
Setter for property layoutFixedDefault value is: true |
void |
setVisible(boolean value)
Setter for property visibleDefault value is: true |
void |
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.ControlWidget |
|---|
destroy, doAttachChildren, doDetachChildren, isDesignTime, wrap |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MatrixLayoutWidget()
MatrixLayoutWidget
public MatrixLayoutWidget(String id)
MatrixLayoutWidget
id - id of the MatrixLayoutWidgetprotected MatrixLayoutWidget(MatrixLayout control)
MatrixLayoutWidget
control - reference to an existing MatrixLayout| Method Detail |
|---|
public MatrixLayout getControl()
Control
getControl in class com.sap.ui.core.client.ControlWidgetControlpublic boolean isVisible()
visible
Determines whether the matrix layout, including all its content, is
visible. An invisible control will not be rendered.
isVisible in class com.google.gwt.user.client.ui.UIObjectpublic void setVisible(boolean value)
visibletrue
setVisible in class com.google.gwt.user.client.ui.UIObjectvalue - booleanpublic String getWidth()
width
CSS width of the matrix layout.
If the LayoutFixed = true a adequate width should be provided.
public void setWidth(String value)
width
setWidth in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic String getHeight()
height
CSS height of the matrix layout.
public void setHeight(String value)
height
setHeight in class com.google.gwt.user.client.ui.UIObjectvalue - Stringpublic 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 void setLayoutFixed(boolean value)
layoutFixedtrue
value - booleanpublic int getColumns()
columns
Number of columns. If not specified, the number of columns will be determined from the given cells.
public void setColumns(int value)
columns
value - intpublic com.sap.ui.core.client.js.JsArray<MatrixLayoutRow> getRows()
public void insertRow(MatrixLayoutRow row,
int index)
row - the row to insertindex - int the 0-based index the row should be inserted at.public void addRow(MatrixLayoutRow row)
row - com.sap.ui.commons.client.layout.MatrixLayoutRow the row to addpublic void removeRow(int index)
index in the rows-aggregation named.
index - int the position of the row to remove.public void removeAllRows()
public 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 void destroyRows()
public 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 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 | |||||||||