public class ModelEvents extends Object
ModelEvent
.Constructor and Description |
---|
ModelEvents() |
Modifier and Type | Method and 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,
Map data)
Create a model event.
|
static ModelEvent |
createModelEvent(String name,
SBook book,
SSheet sheet,
Map data) |
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) |
public static final String ON_CELL_CONTENT_CHANGE
public static final String ON_CHART_CONTENT_CHANGE
public static final String ON_DATA_VALIDATION_CONTENT_CHANGE
public static final String ON_ROW_COLUMN_SIZE_CHANGE
public static final String ON_AUTOFILTER_CHANGE
public static final String ON_FREEZE_CHANGE
public static final String ON_SHEET_CREATE
public static final String ON_SHEET_NAME_CHANGE
public static final String ON_SHEET_ORDER_CHANGE
public static final String ON_SHEET_DELETE
public static final String ON_SHEET_VISIBLE_CHANGE
public static final String ON_PICTURE_ADD
public static final String ON_PICTURE_UPDATE
public static final String ON_PICTURE_DELETE
public static final String ON_CHART_ADD
public static final String ON_CHART_UPDATE
public static final String ON_CHART_DELETE
public static final String ON_MERGE_ADD
public static final String ON_MERGE_DELETE
public static final String ON_MERGE_SYNC
public static final String ON_DISPLAY_GRIDLINES_CHANGE
public static final String ON_PROTECT_SHEET_CHANGE
public static final String ON_ROW_INSERT
public static final String ON_ROW_DELETE
public static final String ON_COLUMN_INSERT
public static final String ON_COLUMN_DELETE
public static final String ON_NAME_NAME_CHANGE
public static final String ON_MODEL_FRIEND_FOCUS_DELETE
public static final String ON_MODEL_FRIEND_FOCUS_MOVE
public static final String ON_MODEL_DIRTY_CHANGE
public static final String PARAM_BOOK
public static final String PARAM_SHEET
public static final String PARAM_REGION
public static final String PARAM_OBJECT_ID
public static final String PARAM_CUSTOM_DATA
public static final String PARAM_INDEX
public static final String PARAM_OLD_NAME
public static final String PARAM_OLD_INDEX
public static final String PARAM_ENABLED
public static final String PARAM_NAME
public static ModelEvent createModelEvent(String name, SBook book)
public static ModelEvent createModelEvent(String name, SBook book, Map data)
name
- event name, can be one constant of ModelEvents
book
- the book where the event happensdata
- event-related datapublic static ModelEvent createModelEvent(String name, SSheet sheet)
createModelEvent(String, SBook, Map)
public static ModelEvent createModelEvent(String name, SSheet sheet, Map data)
createModelEvent(String, SBook, Map)
public static ModelEvent createModelEvent(String name, SSheet sheet, CellRegion region)
createModelEvent(String, SBook, Map)
public static ModelEvent createModelEvent(String name, SBook book, SSheet sheet, Map data)
public static ModelEvent createModelEvent(String name, SSheet sheet, CellRegion region, Map data)
createModelEvent(String, SBook, Map)
public static Map createDataMap(Object... data)
data
- public static boolean isCustomEvent(ModelEvent event)
Copyright © 2020. All rights reserved.