public class InsertHyperlinkCtrl extends RefocusDialogCtrlBase
Modifier and Type | Class and Description |
---|---|
class |
InsertHyperlinkCtrl.DocItem |
static class |
InsertHyperlinkCtrl.DocItemType |
DialogCtrlBase.Entry
Modifier and Type | Field and Description |
---|---|
static String |
ARG_ADDRESS |
static String |
ARG_DISPLAY |
static String |
ARG_LINKTYPE |
protected boolean |
autoDisplay |
protected Book |
book |
protected String |
cellReference |
protected org.zkoss.zul.Textbox |
displayBox |
protected String |
docAddress |
protected org.zkoss.zul.Button |
docBtn |
protected org.zkoss.zk.ui.Component |
docContent |
protected InsertHyperlinkCtrl.DocItem |
docSelectedItem |
protected String |
linkDisplay |
protected Hyperlink.HyperlinkType |
linkType |
protected String |
mailAddress |
protected org.zkoss.zul.Button |
mailBtn |
protected org.zkoss.zk.ui.Component |
mailContent |
protected String |
mailPreAppend |
protected Spreadsheet |
ss |
protected String |
subject |
static String |
URI |
protected String |
webAddress |
protected org.zkoss.zul.Button |
webBtn |
protected org.zkoss.zk.ui.Component |
webContent |
ARG_SPREADSHEET
ARG_CALLBACK, callback, ON_CANCEL, ON_OK
Constructor and Description |
---|
InsertHyperlinkCtrl() |
Modifier and Type | Method and Description |
---|---|
protected void |
buildDocumentListbox(org.zkoss.zul.Combobox refSheet,
org.zkoss.zul.Textbox cellRef,
Book book) |
void |
doAfterCompose(org.zkoss.zul.Window comp) |
protected String |
getAddress()
Returns link address
|
protected String |
getDocAddress() |
protected String |
getMailAddress() |
protected String |
getWebAddress()
Returns the string of web page address, return null if component not found
|
protected void |
initDoc() |
protected void |
initMail() |
protected void |
initWeb() |
void |
onCancel() |
void |
onChange$displayBox() |
void |
onClick$docBtn() |
void |
onClick$mailBtn() |
void |
onClick$okBtn() |
void |
onClick$webBtn() |
protected InsertHyperlinkCtrl.DocItem |
prepareDefinedNameItems(List<InsertHyperlinkCtrl.DocItem> docItems) |
protected InsertHyperlinkCtrl.DocItem |
prepareSheetItems(List<InsertHyperlinkCtrl.DocItem> docItems) |
protected void |
setLinkType(Hyperlink.HyperlinkType type) |
static void |
show(org.zkoss.zk.ui.event.EventListener<DialogCallbackEvent> callback,
Hyperlink.HyperlinkType type,
String address,
String display,
Spreadsheet ss) |
detach
getFellow, getSingleSelection, getSingleSelectionIndex, newArg, newEntry, newMap, postCallback, sendCallback
public static String URI
public static String ARG_DISPLAY
public static String ARG_LINKTYPE
public static String ARG_ADDRESS
protected final String mailPreAppend
protected org.zkoss.zul.Button webBtn
protected org.zkoss.zul.Button docBtn
protected org.zkoss.zul.Button mailBtn
protected org.zkoss.zul.Textbox displayBox
protected org.zkoss.zk.ui.Component webContent
protected org.zkoss.zk.ui.Component mailContent
protected org.zkoss.zk.ui.Component docContent
protected String linkDisplay
protected String webAddress
protected String mailAddress
protected String subject
protected Hyperlink.HyperlinkType linkType
protected boolean autoDisplay
protected String docAddress
protected Spreadsheet ss
protected Book book
protected InsertHyperlinkCtrl.DocItem docSelectedItem
protected String cellReference
public static void show(org.zkoss.zk.ui.event.EventListener<DialogCallbackEvent> callback, Hyperlink.HyperlinkType type, String address, String display, Spreadsheet ss)
public void doAfterCompose(org.zkoss.zul.Window comp) throws Exception
doAfterCompose
in interface org.zkoss.zk.ui.util.Composer<org.zkoss.zul.Window>
doAfterCompose
in class RefocusDialogCtrlBase
Exception
public void onChange$displayBox()
public void onClick$webBtn()
public void onClick$docBtn()
public void onClick$mailBtn()
public void onClick$okBtn()
public void onCancel()
protected String getAddress()
protected void setLinkType(Hyperlink.HyperlinkType type)
protected void initMail()
protected void initWeb()
protected String getWebAddress()
protected String getDocAddress()
protected String getMailAddress()
protected void initDoc()
protected InsertHyperlinkCtrl.DocItem prepareSheetItems(List<InsertHyperlinkCtrl.DocItem> docItems)
protected InsertHyperlinkCtrl.DocItem prepareDefinedNameItems(List<InsertHyperlinkCtrl.DocItem> docItems)
protected void buildDocumentListbox(org.zkoss.zul.Combobox refSheet, org.zkoss.zul.Textbox cellRef, Book book)
Copyright © 2020. All rights reserved.