Package io.keikai.model
Class ModelEvents
- java.lang.Object
-
- io.keikai.model.ModelEvents
-
public class ModelEvents extends Object
A collection of factory method that help you createModelEvent
.- Since:
- 3.5.0
- Author:
- dennis
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ModelEvents()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map
createDataMap(Object... data)
A utility method that help you create data map, e.g.static ModelEvent
createModelEvent(String name, SBook book)
static ModelEvent
createModelEvent(String name, SBook book, SSheet sheet, Map data)
static ModelEvent
createModelEvent(String name, SBook book, Map data)
Create a model event.static ModelEvent
createModelEvent(String name, SSheet sheet)
static ModelEvent
createModelEvent(String name, SSheet sheet, CellRegion region)
static ModelEvent
createModelEvent(String name, SSheet sheet, CellRegion region, Map data)
static ModelEvent
createModelEvent(String name, SSheet sheet, Map data)
static boolean
isCustomEvent(ModelEvent event)
-
-
-
Field Detail
-
ON_CELL_CONTENT_CHANGE
public static final String ON_CELL_CONTENT_CHANGE
- See Also:
- Constant Field Values
-
ON_CHART_CONTENT_CHANGE
public static final String ON_CHART_CONTENT_CHANGE
- See Also:
- Constant Field Values
-
ON_DATA_VALIDATION_CONTENT_CHANGE
public static final String ON_DATA_VALIDATION_CONTENT_CHANGE
- See Also:
- Constant Field Values
-
ON_ROW_COLUMN_SIZE_CHANGE
public static final String ON_ROW_COLUMN_SIZE_CHANGE
- See Also:
- Constant Field Values
-
ON_AUTOFILTER_CHANGE
public static final String ON_AUTOFILTER_CHANGE
- See Also:
- Constant Field Values
-
ON_FREEZE_CHANGE
public static final String ON_FREEZE_CHANGE
- See Also:
- Constant Field Values
-
ON_GROUP_CHANGE
public static final String ON_GROUP_CHANGE
- See Also:
- Constant Field Values
-
ON_SHEET_CREATE
public static final String ON_SHEET_CREATE
- See Also:
- Constant Field Values
-
ON_SHEET_NAME_CHANGE
public static final String ON_SHEET_NAME_CHANGE
- See Also:
- Constant Field Values
-
ON_SHEET_ORDER_CHANGE
public static final String ON_SHEET_ORDER_CHANGE
- See Also:
- Constant Field Values
-
ON_SHEET_DELETE
public static final String ON_SHEET_DELETE
- See Also:
- Constant Field Values
-
ON_SHEET_VISIBLE_CHANGE
public static final String ON_SHEET_VISIBLE_CHANGE
- See Also:
- Constant Field Values
-
ON_SHEET_SELECT
public static final String ON_SHEET_SELECT
- See Also:
- Constant Field Values
-
ON_PICTURE_ADD
public static final String ON_PICTURE_ADD
- See Also:
- Constant Field Values
-
ON_PICTURE_UPDATE
public static final String ON_PICTURE_UPDATE
- See Also:
- Constant Field Values
-
ON_PICTURE_DELETE
public static final String ON_PICTURE_DELETE
- See Also:
- Constant Field Values
-
ON_CHART_ADD
public static final String ON_CHART_ADD
- See Also:
- Constant Field Values
-
ON_CHART_UPDATE
public static final String ON_CHART_UPDATE
- See Also:
- Constant Field Values
-
ON_CHART_DELETE
public static final String ON_CHART_DELETE
- See Also:
- Constant Field Values
-
ON_MERGE_ADD
public static final String ON_MERGE_ADD
- See Also:
- Constant Field Values
-
ON_MERGE_DELETE
public static final String ON_MERGE_DELETE
- See Also:
- Constant Field Values
-
ON_MERGE_SYNC
public static final String ON_MERGE_SYNC
- See Also:
- Constant Field Values
-
ON_DISPLAY_GRIDLINES_CHANGE
public static final String ON_DISPLAY_GRIDLINES_CHANGE
- See Also:
- Constant Field Values
-
ON_PROTECT_SHEET_CHANGE
public static final String ON_PROTECT_SHEET_CHANGE
- See Also:
- Constant Field Values
-
ON_ROW_INSERT
public static final String ON_ROW_INSERT
- See Also:
- Constant Field Values
-
ON_ROW_DELETE
public static final String ON_ROW_DELETE
- See Also:
- Constant Field Values
-
ON_COLUMN_INSERT
public static final String ON_COLUMN_INSERT
- See Also:
- Constant Field Values
-
ON_COLUMN_DELETE
public static final String ON_COLUMN_DELETE
- See Also:
- Constant Field Values
-
ON_NAME_NAME_CHANGE
public static final String ON_NAME_NAME_CHANGE
- See Also:
- Constant Field Values
-
ON_MODEL_FRIEND_FOCUS_DELETE
public static final String ON_MODEL_FRIEND_FOCUS_DELETE
- See Also:
- Constant Field Values
-
ON_MODEL_FRIEND_FOCUS_MOVE
public static final String ON_MODEL_FRIEND_FOCUS_MOVE
- See Also:
- Constant Field Values
-
ON_MODEL_DIRTY_CHANGE
public static final String ON_MODEL_DIRTY_CHANGE
- See Also:
- Constant Field Values
-
ON_RELEASE_SELECTED_CACHE
public static final String ON_RELEASE_SELECTED_CACHE
- See Also:
- Constant Field Values
-
PARAM_BOOK
public static final String PARAM_BOOK
the effected book- See Also:
- Constant Field Values
-
PARAM_SHEET
public static final String PARAM_SHEET
the effected sheet- See Also:
- Constant Field Values
-
PARAM_REGION
public static final String PARAM_REGION
the effected region- See Also:
- Constant Field Values
-
PARAM_OBJECT_ID
public static final String PARAM_OBJECT_ID
the object, e.g. notify chart, picture, validation change- See Also:
- Constant Field Values
-
PARAM_CUSTOM_DATA
public static final String PARAM_CUSTOM_DATA
the custom data, e.g. notify custom event- See Also:
- Constant Field Values
-
PARAM_INDEX
public static final String PARAM_INDEX
the index, e.g the deleted sheet index- See Also:
- Constant Field Values
-
PARAM_OLD_NAME
public static final String PARAM_OLD_NAME
the old name, e.g old sheet name when rename the sheet- See Also:
- Constant Field Values
-
PARAM_OLD_INDEX
public static final String PARAM_OLD_INDEX
the old index, e.g old sheet index when reorder the sheet- See Also:
- Constant Field Values
-
PARAM_ENABLED
public static final String PARAM_ENABLED
the enable state, e.g enable display gridlines- See Also:
- Constant Field Values
-
PARAM_NAME
public static final String PARAM_NAME
The Name in the table or sheet.- Since:
- 3.8.0
- See Also:
- Constant Field Values
-
-
Method Detail
-
createModelEvent
public static ModelEvent createModelEvent(String name, SBook book)
-
createModelEvent
public static ModelEvent createModelEvent(String name, SBook book, Map data)
Create a model event.- Parameters:
name
- event name, can be one constant ofModelEvents
book
- the book where the event happensdata
- event-related data- Returns:
- a model event
-
createModelEvent
public static ModelEvent createModelEvent(String name, SSheet sheet)
- See Also:
createModelEvent(String, SBook, Map)
-
createModelEvent
public static ModelEvent createModelEvent(String name, SSheet sheet, Map data)
- See Also:
createModelEvent(String, SBook, Map)
-
createModelEvent
public static ModelEvent createModelEvent(String name, SSheet sheet, CellRegion region)
- See Also:
createModelEvent(String, SBook, Map)
-
createModelEvent
public static ModelEvent createModelEvent(String name, SBook book, SSheet sheet, Map data)
-
createModelEvent
public static ModelEvent createModelEvent(String name, SSheet sheet, CellRegion region, Map data)
- See Also:
createModelEvent(String, SBook, Map)
-
createDataMap
public static Map createDataMap(Object... data)
A utility method that help you create data map, e.g. createDataMap(ModelEvents.PARAM_CUSTOM_DATA, data)- Parameters:
data
-- Returns:
- a map that contains the data you pass in
-
isCustomEvent
public static boolean isCustomEvent(ModelEvent event)
-
-