Package io.keikai.model
Class ModelEvents
java.lang.Object
io.keikai.model.ModelEvents
A collection of factory method that help you create
ModelEvent.- Since:
- 3.5.0
- Author:
- dennis
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringthe effected bookstatic final Stringthe custom data, e.g. notify custom eventstatic final Stringthe enable state, e.g enable display gridlinesstatic final Stringthe index, e.g the deleted sheet indexstatic final StringThe Name in the table or sheet.static final Stringthe object, e.g. notify chart, picture, validation changestatic final Stringthe old index, e.g old sheet index when reorder the sheetstatic final Stringthe old name, e.g old sheet name when rename the sheetstatic final Stringthe effected regionstatic final Stringthe effected sheet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MapcreateDataMap(Object... data) A utility method that help you create data map, e.g. createDataMap(ModelEvents.PARAM_CUSTOM_DATA, data)static ModelEventcreateModelEvent(String name, SBook book) static ModelEventcreateModelEvent(String name, SBook book, SSheet sheet, Map data) static ModelEventcreateModelEvent(String name, SBook book, Map data) Create a model event.static ModelEventcreateModelEvent(String name, SSheet sheet) static ModelEventcreateModelEvent(String name, SSheet sheet, CellRegion region) static ModelEventcreateModelEvent(String name, SSheet sheet, CellRegion region, Map data) static ModelEventcreateModelEvent(String name, SSheet sheet, Map data) static booleanisCustomEvent(ModelEvent event)
-
Field Details
-
ON_BEFORE_CELL_VALUE_CHANGE
- See Also:
-
ON_CELL_CONTENT_CHANGE
- See Also:
-
ON_CHART_CONTENT_CHANGE
- See Also:
-
ON_DATA_VALIDATION_CONTENT_CHANGE
- See Also:
-
ON_ROW_COLUMN_SIZE_CHANGE
- See Also:
-
ON_AUTOFILTER_CHANGE
- See Also:
-
ON_FREEZE_CHANGE
- See Also:
-
ON_GROUP_CHANGE
- See Also:
-
ON_SHEET_CREATE
- See Also:
-
ON_SHEET_NAME_CHANGE
- See Also:
-
ON_SHEET_ORDER_CHANGE
- See Also:
-
ON_SHEET_DELETE
- See Also:
-
ON_SHEET_VISIBLE_CHANGE
- See Also:
-
ON_SHEET_SELECT
- See Also:
-
ON_PICTURE_ADD
- See Also:
-
ON_PICTURE_UPDATE
- See Also:
-
ON_PICTURE_DELETE
- See Also:
-
ON_CHART_ADD
- See Also:
-
ON_CHART_UPDATE
- See Also:
-
ON_CHART_DELETE
- See Also:
-
ON_MERGE_ADD
- See Also:
-
ON_MERGE_DELETE
- See Also:
-
ON_MERGE_SYNC
- See Also:
-
ON_DISPLAY_GRIDLINES_CHANGE
- See Also:
-
ON_PROTECT_SHEET_CHANGE
- See Also:
-
ON_ROW_INSERT
- See Also:
-
ON_ROW_DELETE
- See Also:
-
ON_COLUMN_INSERT
- See Also:
-
ON_COLUMN_DELETE
- See Also:
-
ON_NAME_NAME_CHANGE
- See Also:
-
ON_MODEL_FRIEND_FOCUS_DELETE
- See Also:
-
ON_MODEL_FRIEND_FOCUS_MOVE
- See Also:
-
ON_MODEL_DIRTY_CHANGE
- See Also:
-
ON_RELEASE_SELECTED_CACHE
- See Also:
-
PARAM_BOOK
the effected book- See Also:
-
PARAM_SHEET
the effected sheet- See Also:
-
PARAM_REGION
the effected region- See Also:
-
PARAM_OBJECT_ID
the object, e.g. notify chart, picture, validation change- See Also:
-
PARAM_CUSTOM_DATA
the custom data, e.g. notify custom event- See Also:
-
PARAM_INDEX
the index, e.g the deleted sheet index- See Also:
-
PARAM_OLD_NAME
the old name, e.g old sheet name when rename the sheet- See Also:
-
PARAM_OLD_INDEX
the old index, e.g old sheet index when reorder the sheet- See Also:
-
PARAM_ENABLED
the enable state, e.g enable display gridlines- See Also:
-
PARAM_NAME
The Name in the table or sheet.- Since:
- 3.8.0
- See Also:
-
-
Constructor Details
-
ModelEvents
public ModelEvents()
-
-
Method Details
-
createModelEvent
-
createModelEvent
Create a model event.- Parameters:
name- event name, can be one constant ofModelEventsbook- the book where the event happensdata- event-related data- Returns:
- a model event
-
createModelEvent
- See Also:
-
createModelEvent
- See Also:
-
createModelEvent
- See Also:
-
createModelEvent
-
createModelEvent
- See Also:
-
createDataMap
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
-