页面布局区块(div.o-portal-content div.row section)
| Modifiers | Name | Description |
|---|---|---|
List<Object> |
children |
子单元格(String)或子区块(PortalBlock) |
List<String> |
colIndexes |
区块包含的列 |
List<List<String>> |
layoutRows |
栏目布局,仅保存在根区块上 |
String |
layoutRowsString |
|
PortalBlock |
parent |
父区块 |
Boolean |
root |
是否是根区块 |
Integer |
rowIndex |
区块所在的行号 |
Number |
width |
区块宽度,单位为百分比 |
| Type | Name and description |
|---|---|
static List<String> |
calColIndexes(String cell)计算单元格(不跨行)的列号 |
static Integer |
calRowIndex(String cell)计算单元格(不跨行)的行号 |
boolean |
contains(String cell, Boolean cross, Boolean deep)区块中是否包含单元格 |
static PortalBlock |
createBlock(String layoutRowsString, List<List<String>> layoutRows, Map<String, Number> colWidths, List<String> cells)创建布局 |
List<String> |
getCells(Boolean deep)获得区块下包含的单元格 |
static String |
getNextPosition(String position) |
PortalBlock |
getRootBlock() |
static String |
replaceColIndex(String position, String colIndex) |
static String |
replaceRowIndex(String position, Integer rowIndex) |
static List<String> |
sortCells(List<String> cells)单元格排序:先根据数字(行)排序,再根据字母(列)排序。 |
StringBuilder |
toHtml(StringBuilder sb = null, String cls = null)输出测试用的 html |
String |
toString() |
| Methods inherited from class | Name |
|---|---|
class Object |
Object#wait(long, int), Object#wait(long), Object#wait(), Object#equals(Object), Object#toString(), Object#hashCode(), Object#getClass(), Object#notify(), Object#notifyAll() |
子单元格(String)或子区块(PortalBlock)
区块包含的列
栏目布局,仅保存在根区块上
父区块
是否是根区块
区块所在的行号
区块宽度,单位为百分比
计算单元格(不跨行)的列号
计算单元格(不跨行)的行号
区块中是否包含单元格
cell - 单元格的位置,如 C1cross - 是否认为 A1:B1 包含 A1deep - 是否在子区块中搜索创建布局
获得区块下包含的单元格
deep - 是否列出子区块中包含的单元格单元格排序:先根据数字(行)排序,再根据字母(列)排序。
输出测试用的 html
见 layouts.htm 中的示例。