|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.htmlb.Component
com.sapportals.htmlb.Container
com.sapportals.htmlb.GridLayout
Title: GridLayout Description: GridLayout defines a grid
Copyright 2004 SAP AG
| Field Summary | |
static int |
GRID_BEGIN
|
static int |
GRID_CELL_BEGIN
|
static int |
GRID_CELL_CONTENT
|
static int |
GRID_CELL_END
|
static int |
GRID_END
|
static int |
GRID_ROW_BEGIN
|
static int |
GRID_ROW_END
|
static String |
UI_ID
|
| Fields inherited from class com.sapportals.htmlb.Container |
elements |
| Constructor Summary | |
GridLayout()
|
|
GridLayout(int rowSize,
int columnSize)
Constrcutor for a GridLayout object. |
|
| Method Summary | |
void |
addCell(int rowIndex,
int columnIndex,
GridLayoutCell cell)
Add a cell at the specified position in the grid. |
void |
addColSpanComponent(int rowIndex,
int columnIndex,
Component component,
int colSpan)
Add a component at the specified position in the grid. |
void |
addColSpanText(int rowIndex,
int columnIndex,
String text,
int colSpan)
Add a simple text at the specified position in the grid. |
void |
addComponent(int rowIndex,
int columnIndex,
Component component)
Add a component at the specified position in the grid. |
void |
addText(int rowIndex,
int columnIndex,
String text)
Add a simple text at the specified position in the grid. |
GridLayoutCell |
getCell(int rowIndex,
int columnIndex)
Return the cell at the specified grid position or NULL if the postition is invalid. |
int |
getCellPadding()
Return the used cell padding of the grid. |
Object[][] |
getCells()
Return a array of all cells defined in the grid. |
int |
getCellSpacing()
Return the used cell spacing for the grid. |
int |
getColumnSize()
Return the column size of the grid. |
int |
getCurrentColumnIndex()
returns the current column index Note: internal use only. |
int |
getCurrentRowIndex()
returns the current row index Note: internal use only. |
String |
getHeight()
Return the used height of the grid. |
int |
getHeightPercentage()
Return the used height of the grid. |
int |
getRowSize()
Return the row size of the grid. |
String |
getUI()
Return the UI key of the GridLayout component. |
String |
getWidth()
Return the used width of the grid. |
boolean |
hasDebugMode()
Return TRUE if the grid shoud be displayed in "debug mode". |
boolean |
isFixedLayout()
Returns the fixedLayout attribute |
boolean |
isNN4Optimized()
Deprecated. method not released ye |
Iterator |
iterator()
Return an iterator of the grid cells |
boolean |
requiresForm()
A GridLayout does not require an outer Form |
void |
setCellPadding(int cellPadding)
Set the used cell padding for the grid. |
void |
setCellSpacing(int cellSpacing)
Set the used cell spacing for the grid. |
void |
setColumnSize(int columnSize)
Set the column size of the grid. |
void |
setCurrentColumnIndex(int currentColumnIndex)
sets the current column index Note: Internal use only. |
void |
setCurrentRowIndex(int currentRowIndex)
sets the current row index Note: internal use only. |
void |
setDebugMode(boolean debugMode)
Set whether the grid should be displayed in "debug mode" (i.e. with border="1") or not (border="0"). |
void |
setFixedLayout(boolean fixedLayout)
Sets the fixedLayout attribute on the table |
void |
setHeightPercentage(int height)
Set the used height of the grid. |
void |
setNN4Optimized(boolean NN4Optimized)
Deprecated. method not released ye |
void |
setRowSize(int rowSize)
Set the row size of the grid. |
void |
setWidth(String width)
Set the used width of the grid. |
| Methods inherited from class com.sapportals.htmlb.Container |
addComponent, addRawText, addText, getChildCount, preRender, removeComponent, render |
| Methods inherited from class com.sapportals.htmlb.Component |
getEncodedIdForForm, getId, getParent, initFromPageContext, initFromShortId, initializeFromId, isJsObjectNeeded, render, renderAsString, setId, setJsObjectNeeded, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String UI_ID
public static final int GRID_BEGIN
public static final int GRID_END
public static final int GRID_ROW_BEGIN
public static final int GRID_ROW_END
public static final int GRID_CELL_BEGIN
public static final int GRID_CELL_END
public static final int GRID_CELL_CONTENT
| Constructor Detail |
public GridLayout()
public GridLayout(int rowSize,
int columnSize)
rowSize - the row size of the gridcolumnSize - the column size of the grid| Method Detail |
public void setRowSize(int rowSize)
rowSize - the row size of the gridpublic int getRowSize()
public void setColumnSize(int columnSize)
columnSize - the column size of the gridpublic int getColumnSize()
public void addComponent(int rowIndex,
int columnIndex,
Component component)
rowIndex - the row position of the new componentcolumnIndex - the column position of the new componentcomponent - the component, which should be added to the grid
public void addColSpanComponent(int rowIndex,
int columnIndex,
Component component,
int colSpan)
rowIndex - the row position of the new componentcolumnIndex - the column position of the new componentcomponent - the component, which should be added to the gridcolSpan - the needed colum span of the component cell
public void addText(int rowIndex,
int columnIndex,
String text)
rowIndex - the row position of the new textcolumnIndex - the column position of the new texttext - the text, which should be added to the grid
public void addColSpanText(int rowIndex,
int columnIndex,
String text,
int colSpan)
rowIndex - the row position of the new textcolumnIndex - the column position of the new texttext - the text, which should be added to the gridcolSpan - the needed colum span of the text cell
public void addCell(int rowIndex,
int columnIndex,
GridLayoutCell cell)
rowIndex - the row position of the new cellcolumnIndex - the column position of the new cellcell - the cell, which should be added to the gridpublic void setCellSpacing(int cellSpacing)
cellSpacing - the used cell spacingpublic int getCellSpacing()
public void setCellPadding(int cellPadding)
cellPadding - the used cell padding for the gridpublic int getCellPadding()
public void setWidth(String width)
width - the used width of the gridpublic String getWidth()
public void setHeightPercentage(int height)
height - the used height of the gridpublic int getHeightPercentage()
public String getHeight()
public String getUI()
getUI in class Componentpublic void setDebugMode(boolean debugMode)
debugMode - TRUE if the grid should be displayed in "debug mode"public boolean hasDebugMode()
public GridLayoutCell getCell(int rowIndex,
int columnIndex)
rowIndex - the row position of the requested cellcolumnIndex - the column position of the requested cellpublic Object[][] getCells()
public Iterator iterator()
iterator in class Containerpublic boolean requiresForm()
requiresForm in class Componentpublic void setNN4Optimized(boolean NN4Optimized)
public boolean isNN4Optimized()
public int getCurrentRowIndex()
public void setCurrentRowIndex(int currentRowIndex)
public int getCurrentColumnIndex()
public void setCurrentColumnIndex(int currentColumnIndex)
public boolean isFixedLayout()
public void setFixedLayout(boolean fixedLayout)
fixedLayout -
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||