ZK Spreadsheet 3.0.0 RC:Upgrade Notes"
(Created page with "{{Template:Smalltalk_Author| |author= Hawk Chen |date=August 21, 2013 |version=ZK Spreadsheet 3.0.0 RC }} =Overview = In ZK Spreadsheet version 3.0.0 RC, we have made some sign...") |
m (correct highlight (via JWB)) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Template:Smalltalk_Author| | {{Template:Smalltalk_Author| | ||
|author= Hawk Chen | |author= Hawk Chen | ||
− | |date=August | + | |date=August 22, 2013 |
|version=ZK Spreadsheet 3.0.0 RC | |version=ZK Spreadsheet 3.0.0 RC | ||
}} | }} | ||
Line 7: | Line 7: | ||
=Overview = | =Overview = | ||
− | In ZK Spreadsheet version 3.0.0 RC, we have made some significant changes that users should notice. | + | In ZK Spreadsheet version 3.0.0 RC, we have made some significant changes that users should notice. Due to major APIs change, most codes written for customization or accessing data model need to be re-written for this version. |
− | |||
= API Change = | = API Change = | ||
− | == Classed under < | + | == Classed under <code>org.zkoss.zss.model</code> are removed == |
− | Classes inside < | + | Classes inside <code>org.zkoss.zss.model</code> are removed. Please use the new classes and API under <code>org.zkoss.zss.api</code> and <code>org.zkoss.zss.api.model</code>. |
== Spreadsheet Component API change == | == Spreadsheet Component API change == | ||
− | # To get/set Book/Sheet, use the new classes of Book/Sheet that are under < | + | # To get/set Book/Sheet, use the new classes of Book/Sheet that are under <code>org.zkoss.zss.api.model</code>. |
− | # Those methods of Spreadsheet about freezing rows/columns are deprecated. Please use < | + | # Those methods of Spreadsheet about freezing rows/columns are deprecated. Please use <code>Sheet.getColumnFreeze()</code> and <code>Sheet.getRowFreeze()</code> and <code>Range.setFreezePanel()</code>. |
− | ==< | + | ==<code>Rect</code> and <code>Position</code> under <code>org.zkoss.zss.ui</code> are deprecated == |
− | < | + | <code>Rect</code> and <code>Position</code> under <code>org.zkoss.zss.ui</code> are deprecated, so please use <code>CellRef</code> and <code>AreaRef</code> instead (under <code>org.zkoss.zss.api</code>) . |
− | == < | + | == <code>Action</code> and <code>ActionHandler</code> are removed == |
− | < | + | <code>org.zkoss.zss.ui.Action, org.zkoss.zss.ui.sys.ActionHandler</code> are removed. To override a default action, please use <code>org.zkoss.zss.ui.AuxAction</code>, <code>org.zkoss.zss.ui.UserActionManager</code> instead. |
− | == Arguments of < | + | == Arguments of <code>CellSelectionEvent</code>'s constructor are changed == |
− | Arguments of < | + | Arguments of <code>org.zkoss.zss.ui.event.CellSelectionEvent</code>'s constructor are changed from left,top,right,bottom to topRow,leftCol,bottomRow,rightColumn. |
− | == Some event classes under package < | + | == Some event classes under package <code>org.zkoss.zss.ui.event</code> are renamed == |
{| border="2" style=" font-size:18;" | {| border="2" style=" font-size:18;" | ||
Line 39: | Line 38: | ||
! <center>2.5.0</center> !! <center>3.0.0 RC</center> | ! <center>2.5.0</center> !! <center>3.0.0 RC</center> | ||
|- | |- | ||
− | | style="padding:5px;"|< | + | | style="padding:5px;"|<code>SelectionChangeEvent</code> |
− | | style="padding:5px;"|'''< | + | | style="padding:5px;"|'''<code>CellSelectionUpdateEvent</code>''' |
|- | |- | ||
− | | style="padding:5px;"|< | + | | style="padding:5px;"|<code>HeaderEvent</code> |
− | | style="padding:5px;"|'''< | + | | style="padding:5px;"|'''<code>HeaderUpdateEvent</code>''' |
|- | |- | ||
− | | style="padding:5px;"|< | + | | style="padding:5px;"|<code>FilterMouseEvent</code> |
− | | style="padding:5px;"|'''< | + | | style="padding:5px;"|'''<code>CellFilterEvent</code>''' |
|- | |- | ||
− | | style="padding:5px;"|< | + | | style="padding:5px;"|<code>HyperlinkEvent</code> |
− | | style="padding:5px;"|'''< | + | | style="padding:5px;"|'''<code>CellHyperlinkEvent</code>''' |
|} | |} | ||
− | == < | + | == <code>SheetCreateEvent, SheetSelectedEvent</code> and <code>SheetUpdateEvent</code> are removed== |
− | < | + | <code>SheetCreateEvent, SheetSelectedEvent</code> and <code>SheetUpdateEvent</code> are removed. Please use <code>SheetEvent</code> instead. |
== Spreadsheet JSF component package name changed == | == Spreadsheet JSF component package name changed == | ||
− | ZK Spreadsheet JSF component's main package is renamed to < | + | ZK Spreadsheet JSF component's main package is renamed to <code>org.zkoss.zss.jsf</code>, and JSF component class is renamed to <code>org.zkoss.zss.jsf.ui.JSFSpreadsheet</code> |
== Spreadsheet JSP package name changed == | == Spreadsheet JSP package name changed == | ||
− | ZK Spreadsheet JSP main package is renamed to < | + | ZK Spreadsheet JSP main package is renamed to <code>org.zkoss.zss.jsp</code>. |
Latest revision as of 04:20, 20 January 2022
Hawk Chen
August 22, 2013
ZK Spreadsheet 3.0.0 RC
Overview
In ZK Spreadsheet version 3.0.0 RC, we have made some significant changes that users should notice. Due to major APIs change, most codes written for customization or accessing data model need to be re-written for this version.
API Change
Classed under org.zkoss.zss.model
are removed
Classes inside org.zkoss.zss.model
are removed. Please use the new classes and API under org.zkoss.zss.api
and org.zkoss.zss.api.model
.
Spreadsheet Component API change
- To get/set Book/Sheet, use the new classes of Book/Sheet that are under
org.zkoss.zss.api.model
. - Those methods of Spreadsheet about freezing rows/columns are deprecated. Please use
Sheet.getColumnFreeze()
andSheet.getRowFreeze()
andRange.setFreezePanel()
.
Rect
and Position
under org.zkoss.zss.ui
are deprecated
Rect
and Position
under org.zkoss.zss.ui
are deprecated, so please use CellRef
and AreaRef
instead (under org.zkoss.zss.api
) .
Action
and ActionHandler
are removed
org.zkoss.zss.ui.Action, org.zkoss.zss.ui.sys.ActionHandler
are removed. To override a default action, please use org.zkoss.zss.ui.AuxAction
, org.zkoss.zss.ui.UserActionManager
instead.
Arguments of CellSelectionEvent
's constructor are changed
Arguments of org.zkoss.zss.ui.event.CellSelectionEvent
's constructor are changed from left,top,right,bottom to topRow,leftCol,bottomRow,rightColumn.
Some event classes under package org.zkoss.zss.ui.event
are renamed
SelectionChangeEvent
|
CellSelectionUpdateEvent
|
HeaderEvent
|
HeaderUpdateEvent
|
FilterMouseEvent
|
CellFilterEvent
|
HyperlinkEvent
|
CellHyperlinkEvent
|
SheetCreateEvent, SheetSelectedEvent
and SheetUpdateEvent
are removed
SheetCreateEvent, SheetSelectedEvent
and SheetUpdateEvent
are removed. Please use SheetEvent
instead.
Spreadsheet JSF component package name changed
ZK Spreadsheet JSF component's main package is renamed to org.zkoss.zss.jsf
, and JSF component class is renamed to org.zkoss.zss.jsf.ui.JSFSpreadsheet
Spreadsheet JSP package name changed
ZK Spreadsheet JSP main package is renamed to org.zkoss.zss.jsp
.
Some Event Names are Changed
onValidateDrop | onCellValidator |
onFilter | onCellFilter |
onHeaderSize | onHeaderUpdate |
onSelectionChange | onCellSelectionChange |
onCellFocused | onCellFocus |
onSheetNameChange | onAfterSheetNameChange |
onSheetOrderChange | onAfterSheetOrderChange |
onSheetDelete | onAfterSheetDelete |
onSheetCreate | onAfterSheetCreate |
onCellChange | onAfterCellChange |
Comments
Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License. |