public class ModelEvents
extends java.lang.Object
ModelEvent
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ON_AUTOFILTER_CHANGE |
static java.lang.String |
ON_CELL_CONTENT_CHANGE |
static java.lang.String |
ON_CHART_ADD |
static java.lang.String |
ON_CHART_CONTENT_CHANGE |
static java.lang.String |
ON_CHART_DELETE |
static java.lang.String |
ON_CHART_UPDATE |
static java.lang.String |
ON_COLUMN_DELETE |
static java.lang.String |
ON_COLUMN_INSERT |
static java.lang.String |
ON_DATA_VALIDATION_CONTENT_CHANGE |
static java.lang.String |
ON_DISPLAY_GRIDLINES_CHANGE |
static java.lang.String |
ON_FREEZE_CHANGE |
static java.lang.String |
ON_MERGE_ADD |
static java.lang.String |
ON_MERGE_DELETE |
static java.lang.String |
ON_MERGE_SYNC |
static java.lang.String |
ON_MODEL_DIRTY_CHANGE |
static java.lang.String |
ON_MODEL_FRIEND_FOCUS_DELETE |
static java.lang.String |
ON_MODEL_FRIEND_FOCUS_MOVE |
static java.lang.String |
ON_NAME_NAME_CHANGE |
static java.lang.String |
ON_PICTURE_ADD |
static java.lang.String |
ON_PICTURE_DELETE |
static java.lang.String |
ON_PICTURE_UPDATE |
static java.lang.String |
ON_PROTECT_SHEET_CHANGE |
static java.lang.String |
ON_ROW_COLUMN_SIZE_CHANGE |
static java.lang.String |
ON_ROW_DELETE |
static java.lang.String |
ON_ROW_INSERT |
static java.lang.String |
ON_SHEET_CREATE |
static java.lang.String |
ON_SHEET_DELETE |
static java.lang.String |
ON_SHEET_NAME_CHANGE |
static java.lang.String |
ON_SHEET_ORDER_CHANGE |
static java.lang.String |
ON_SHEET_VISIBLE_CHANGE |
static java.lang.String |
PARAM_BOOK
the effected book
|
static java.lang.String |
PARAM_CUSTOM_DATA
the custom data, e.g. notify custom event
|
static java.lang.String |
PARAM_ENABLED
the enable state, e.g enable display gridlines
|
static java.lang.String |
PARAM_INDEX
the index, e.g the deleted sheet index
|
static java.lang.String |
PARAM_NAME
The Name in the table or sheet.
|
static java.lang.String |
PARAM_OBJECT_ID
the object, e.g. notify chart, picture, validation change
|
static java.lang.String |
PARAM_OLD_INDEX
the old index, e.g old sheet index when reorder the sheet
|
static java.lang.String |
PARAM_OLD_NAME
the old name, e.g old sheet name when rename the sheet
|
static java.lang.String |
PARAM_REGION
the effected region
|
static java.lang.String |
PARAM_SHEET
the effected sheet
|
Constructor and Description |
---|
ModelEvents() |
Modifier and Type | Method and Description |
---|---|
static java.util.Map |
createDataMap(java.lang.Object... data)
A utility method that help you create data map, e.g. createDataMap(ModelEvents.PARAM_CUSTOM_DATA, data)
|
static ModelEvent |
createModelEvent(java.lang.String name,
SBook book) |
static ModelEvent |
createModelEvent(java.lang.String name,
SBook book,
java.util.Map data)
Create a model event.
|
static ModelEvent |
createModelEvent(java.lang.String name,
SBook book,
SSheet sheet,
java.util.Map data) |
static ModelEvent |
createModelEvent(java.lang.String name,
SSheet sheet) |
static ModelEvent |
createModelEvent(java.lang.String name,
SSheet sheet,
CellRegion region) |
static ModelEvent |
createModelEvent(java.lang.String name,
SSheet sheet,
CellRegion region,
java.util.Map data) |
static ModelEvent |
createModelEvent(java.lang.String name,
SSheet sheet,
java.util.Map data) |
static boolean |
isCustomEvent(ModelEvent event) |
public static final java.lang.String ON_CELL_CONTENT_CHANGE
public static final java.lang.String ON_CHART_CONTENT_CHANGE
public static final java.lang.String ON_DATA_VALIDATION_CONTENT_CHANGE
public static final java.lang.String ON_ROW_COLUMN_SIZE_CHANGE
public static final java.lang.String ON_AUTOFILTER_CHANGE
public static final java.lang.String ON_FREEZE_CHANGE
public static final java.lang.String ON_SHEET_CREATE
public static final java.lang.String ON_SHEET_NAME_CHANGE
public static final java.lang.String ON_SHEET_ORDER_CHANGE
public static final java.lang.String ON_SHEET_DELETE
public static final java.lang.String ON_SHEET_VISIBLE_CHANGE
public static final java.lang.String ON_PICTURE_ADD
public static final java.lang.String ON_PICTURE_UPDATE
public static final java.lang.String ON_PICTURE_DELETE
public static final java.lang.String ON_CHART_ADD
public static final java.lang.String ON_CHART_UPDATE
public static final java.lang.String ON_CHART_DELETE
public static final java.lang.String ON_MERGE_ADD
public static final java.lang.String ON_MERGE_DELETE
public static final java.lang.String ON_MERGE_SYNC
public static final java.lang.String ON_DISPLAY_GRIDLINES_CHANGE
public static final java.lang.String ON_PROTECT_SHEET_CHANGE
public static final java.lang.String ON_ROW_INSERT
public static final java.lang.String ON_ROW_DELETE
public static final java.lang.String ON_COLUMN_INSERT
public static final java.lang.String ON_COLUMN_DELETE
public static final java.lang.String ON_NAME_NAME_CHANGE
public static final java.lang.String ON_MODEL_FRIEND_FOCUS_DELETE
public static final java.lang.String ON_MODEL_FRIEND_FOCUS_MOVE
public static final java.lang.String ON_MODEL_DIRTY_CHANGE
public static final java.lang.String PARAM_BOOK
public static final java.lang.String PARAM_SHEET
public static final java.lang.String PARAM_REGION
public static final java.lang.String PARAM_OBJECT_ID
public static final java.lang.String PARAM_CUSTOM_DATA
public static final java.lang.String PARAM_INDEX
public static final java.lang.String PARAM_OLD_NAME
public static final java.lang.String PARAM_OLD_INDEX
public static final java.lang.String PARAM_ENABLED
public static final java.lang.String PARAM_NAME
public static ModelEvent createModelEvent(java.lang.String name, SBook book)
public static ModelEvent createModelEvent(java.lang.String name, SBook book, java.util.Map data)
name
- event name, can be one constant of ModelEvents
book
- the book where the event happensdata
- event-related datapublic static ModelEvent createModelEvent(java.lang.String name, SSheet sheet)
createModelEvent(String, SBook, Map)
public static ModelEvent createModelEvent(java.lang.String name, SSheet sheet, java.util.Map data)
createModelEvent(String, SBook, Map)
public static ModelEvent createModelEvent(java.lang.String name, SSheet sheet, CellRegion region)
createModelEvent(String, SBook, Map)
public static ModelEvent createModelEvent(java.lang.String name, SBook book, SSheet sheet, java.util.Map data)
public static ModelEvent createModelEvent(java.lang.String name, SSheet sheet, CellRegion region, java.util.Map data)
createModelEvent(String, SBook, Map)
public static java.util.Map createDataMap(java.lang.Object... data)
data
- public static boolean isCustomEvent(ModelEvent event)
Copyright © 2005-2010 Potix Corporation. All Rights Reserved.