|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RefBook
Internal Use Only. Book that handle the RefSheets.
| Method Summary | |
|---|---|
java.lang.String |
getBookName()
Returns the book name of this reference book. |
java.util.Set<Ref>[] |
getBothDependents(java.lang.String name)
Returns both all and last dependent cell references that are affected by the specified variable. |
int |
getMaxcol()
Returns the maximum column index of this refernece book (e.g. 255 is the maximum column index of Excel 97, 16K-1 is of Excel 2007). |
int |
getMaxrow()
Returns the maximum row index of this reference book (e.g. 64K-1 is the maximum row index of Excel 97, 1M-1 is of Excel 2007). |
RefSheet |
getOrCreateRefSheet(java.lang.String sheetname)
Returns (or create then return if not exist) the RefSheet
at specified index. |
Ref |
getOrCreateVariableRef(java.lang.String name,
RefSheet dummy)
Return or create if not exist the specified variable reference. |
RefSheet |
getRefSheet(java.lang.String sheetname)
Returns the RefSheet of the specified sheet name; return null if not exists. |
java.lang.String |
getShareScope()
Returns share scope of this reference book. |
void |
publish(org.zkoss.zk.ui.event.Event event)
Publish an event to this reference book. |
RefSheet |
removeRefSheet(java.lang.String sheetname)
Remove and return the RefSheet for the data sheet of the
specified sheet name; return null if not exists. |
Ref |
removeVariableRef(java.lang.String name)
Remove the specified variable reference. |
void |
setShareScope(java.lang.String scope)
Sets share scope of this reference book. |
void |
setSheetName(java.lang.String oldsheetname,
java.lang.String newsheetname)
Update the sheet name of the specified sheet to new sheet name. |
void |
subscribe(org.zkoss.zk.ui.event.EventListener listener)
Subscribe a event listener to this reference book. |
void |
unsubscribe(org.zkoss.zk.ui.event.EventListener listener)
Un-subscribe the event listener from this reference book. |
| Method Detail |
|---|
java.lang.String getBookName()
RefSheet getOrCreateRefSheet(java.lang.String sheetname)
RefSheet
at specified index.
sheetname - the name of the sheet to be gotten/created
RefSheet for the data sheet at specified index.RefSheet getRefSheet(java.lang.String sheetname)
RefSheet of the specified sheet name; return null if not exists.
sheetname - the name of the sheet to be gotten
RefSheet of the specified sheet name; return null if not exists.RefSheet removeRefSheet(java.lang.String sheetname)
RefSheet for the data sheet of the
specified sheet name; return null if not exists.
sheetname - the name of the sheet to be removed
void setSheetName(java.lang.String oldsheetname,
java.lang.String newsheetname)
oldsheetname - old sheet name used to located the sheetnewsheetname - new sheet name to be set into the located sheetint getMaxrow()
int getMaxcol()
void subscribe(org.zkoss.zk.ui.event.EventListener listener)
listener - the event listener that will handle event fired by this reference book.void unsubscribe(org.zkoss.zk.ui.event.EventListener listener)
listener - the event listener that will handle event fired by this reference book.void publish(org.zkoss.zk.ui.event.Event event)
event - the event to be fired by this reference book.
Ref getOrCreateVariableRef(java.lang.String name,
RefSheet dummy)
name - the name of the specified variable referencedummy - dummy sheet, used to locate associated RefBook
Ref removeVariableRef(java.lang.String name)
name - the name of the specified variable reference
java.util.Set<Ref>[] getBothDependents(java.lang.String name)
name - the variable name
void setShareScope(java.lang.String scope)
scope - share scope of thie reference book.java.lang.String getShareScope()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||