Package io.keikai.ui.impl
Class MergeAggregation
- java.lang.Object
-
- io.keikai.ui.impl.MergeAggregation
-
- All Implemented Interfaces:
Serializable
,org.zkoss.json.JSONAware
public class MergeAggregation extends Object implements Serializable, org.zkoss.json.JSONAware
- Author:
- sam
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MergeAggregation.MergeIndex
-
Constructor Summary
Constructors Constructor Description MergeAggregation(MergeMatrixHelper helper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MergeAggregation.MergeIndex
add(int row, int col)
Add merge info of cellorg.zkoss.json.JSONObject
getJSONObject()
r: merge rects cs: merge CSSMergedRect
getMergedRect(int row, int col)
Returns MergeIndex that added to this MergeAggregationString
toJSONString()
-
-
-
Constructor Detail
-
MergeAggregation
public MergeAggregation(MergeMatrixHelper helper)
-
-
Method Detail
-
add
public MergeAggregation.MergeIndex add(int row, int col)
Add merge info of cell- Parameters:
row
- the row numbercol
- the column number- Returns:
- index merge info index. Returns -1 if there's no merge info
-
getMergedRect
public MergedRect getMergedRect(int row, int col)
Returns MergeIndex that added to this MergeAggregation- Parameters:
row
-col
-- Returns:
- MergedRect, returns null if cell not merged
-
getJSONObject
public org.zkoss.json.JSONObject getJSONObject()
- r: merge rects
- cs: merge CSS
- Returns:
-
toJSONString
public String toJSONString()
- Specified by:
toJSONString
in interfaceorg.zkoss.json.JSONAware
-
-