Skip to content
Hawk Chen edited this page Nov 8, 2018 · 31 revisions

Welcome to the keikai-tutorial wiki!

A project to demonstrate how to integrate ZK framework with Keikai.

Event Name - Class Mapping

Name Class
ON_CELL_CLICK, ON_CELL_RIGHT_CLICK, ON_CELL_DOUBLE_CLICK, ON_CELL_MOUSE_ENTER, ON_CELL_MOUSE_LEAVE CellMouseEvent
ON_MOVE_FOCUS, ON_SELECTION_CHANGE RangeSelectEvent
ON_KEY_DOWN, ON_KEY_UP, ON_KEY_PRESS RangeKeyEvent
ON_EDIT_SAVE, ON_EDIT_START, ON_EDIT_CANCEL CellEditEvent
ON_SHEET_VISIBLE, ON_SHEET_ACTIVATE, ON_SHEET_ADD, ON_SHEET_DELETE, ON_SHEET_MOVE, ON_SHEET_RENAME SheetEvent
ON_AUX_ACTION AuxActionEvent
ON_HYPERLINK_CLICK CellHyperlinkEvent
ON_SHAPE_CLICK, ON_SHAPE_ACTION ShapeEvent

FAQ

Wrong version between keikai client and server

When you visit the demo page, if you see the error:

architecture.png

That means the version of keikai java client is inconsistent with the server. The message also tells you both the client and server version you use. You need to make both version consistent, so you can either:

  • Contact us to download another version of keikai server
  • Change keikai client version of this tutorial project

How to change the keikai client version:

Just modify the version string in the corresponding file depending on which tool you run this project.

Maven

pom.xml

<version>*-Eval</version>

Gradle

build.gradle

compile "io.keikai:keikai-java-client:*-Eval"

Import Larger Files

Importing larger files require larger heap size. Here are peak heap size consumed by an application server. Please reference it to specify your server's heap size.

File size Number of Cells Peak Heap Size
10 MB 1.4 millions 1.5G
20 MB 2.9 millions 1.9G
40 MB 8.7 millions 2.5G

If you wish to try importing large files, please increase your heap size accordingly. You can increase the heap size with JVM arguments:

gradle

gradle appRun -Dorg.gradle.jvmargs=-Xmx4g

maven

modify the configurations of jetty-maven-plugin in pom.xml

<jvmArgs>-Xmx4096m</jvmArgs>

please refer to https://www.eclipse.org/jetty/documentation/9.4.x/jetty-maven-plugin.html

Clone this wiki locally