Package io.keikaiex.ui.dialog
Class InsertHyperlinkCtrl
- java.lang.Object
-
- org.zkoss.zk.ui.select.SelectorComposer<org.zkoss.zul.Window>
-
- io.keikaiex.ui.dialog.impl.DialogCtrlBase
-
- io.keikaiex.ui.dialog.impl.RefocusDialogCtrlBase
-
- io.keikaiex.ui.dialog.InsertHyperlinkCtrl
-
- All Implemented Interfaces:
Serializable,org.zkoss.zk.ui.util.ComponentActivationListener,org.zkoss.zk.ui.util.ComponentCloneListener,org.zkoss.zk.ui.util.Composer<org.zkoss.zul.Window>,org.zkoss.zk.ui.util.ComposerExt<org.zkoss.zul.Window>
public class InsertHyperlinkCtrl extends RefocusDialogCtrlBase
- Author:
- Sam, dennis
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classInsertHyperlinkCtrl.DocItemstatic classInsertHyperlinkCtrl.DocItemType-
Nested classes/interfaces inherited from class io.keikaiex.ui.dialog.impl.DialogCtrlBase
DialogCtrlBase.Entry
-
-
Field Summary
Fields Modifier and Type Field Description static StringARG_ADDRESSstatic StringARG_DISPLAYstatic StringARG_LINKTYPEprotected booleanautoDisplayprotected Bookbookprotected StringcellReferenceprotected org.zkoss.zul.TextboxdisplayBoxprotected StringdocAddressprotected org.zkoss.zul.ButtondocBtnprotected org.zkoss.zk.ui.ComponentdocContentprotected InsertHyperlinkCtrl.DocItemdocSelectedItemprotected StringlinkDisplayprotected Hyperlink.HyperlinkTypelinkTypeprotected StringmailAddressprotected org.zkoss.zul.ButtonmailBtnprotected org.zkoss.zk.ui.ComponentmailContentprotected StringmailPreAppendprotected Spreadsheetssprotected Stringsubjectstatic StringURIprotected StringwebAddressprotected org.zkoss.zul.ButtonwebBtnprotected org.zkoss.zk.ui.ComponentwebContent-
Fields inherited from class io.keikaiex.ui.dialog.impl.RefocusDialogCtrlBase
ARG_SPREADSHEET
-
Fields inherited from class io.keikaiex.ui.dialog.impl.DialogCtrlBase
ARG_CALLBACK, callback, ON_CANCEL, ON_OK
-
-
Constructor Summary
Constructors Constructor Description InsertHyperlinkCtrl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbuildDocumentListbox(org.zkoss.zul.Combobox refSheet, org.zkoss.zul.Textbox cellRef, Book book)voiddoAfterCompose(org.zkoss.zul.Window comp)protected StringgetAddress()Returns link addressprotected StringgetDocAddress()protected StringgetMailAddress()protected StringgetWebAddress()Returns the string of web page address, return null if component not foundprotected voidinitDoc()protected voidinitMail()protected voidinitWeb()voidonCancel()voidonChange$displayBox()voidonClick$docBtn()voidonClick$mailBtn()voidonClick$okBtn()voidonClick$webBtn()protected InsertHyperlinkCtrl.DocItemprepareDefinedNameItems(List<InsertHyperlinkCtrl.DocItem> docItems)protected InsertHyperlinkCtrl.DocItemprepareSheetItems(List<InsertHyperlinkCtrl.DocItem> docItems)protected voidsetLinkType(Hyperlink.HyperlinkType type)static voidshow(org.zkoss.zk.ui.event.EventListener<DialogCallbackEvent> callback, Hyperlink.HyperlinkType type, String address, String display, Spreadsheet ss)-
Methods inherited from class io.keikaiex.ui.dialog.impl.RefocusDialogCtrlBase
detach
-
Methods inherited from class io.keikaiex.ui.dialog.impl.DialogCtrlBase
getFellow, getSingleSelection, getSingleSelectionIndex, newArg, newEntry, newMap, postCallback, sendCallback
-
-
-
-
Field Detail
-
URI
public static String URI
-
ARG_DISPLAY
public static String ARG_DISPLAY
-
ARG_LINKTYPE
public static String ARG_LINKTYPE
-
ARG_ADDRESS
public static String ARG_ADDRESS
-
mailPreAppend
protected final String mailPreAppend
- See Also:
- Constant Field Values
-
webBtn
protected org.zkoss.zul.Button webBtn
-
docBtn
protected org.zkoss.zul.Button docBtn
-
mailBtn
protected org.zkoss.zul.Button mailBtn
-
displayBox
protected org.zkoss.zul.Textbox displayBox
-
webContent
protected org.zkoss.zk.ui.Component webContent
-
mailContent
protected org.zkoss.zk.ui.Component mailContent
-
docContent
protected org.zkoss.zk.ui.Component docContent
-
linkDisplay
protected String linkDisplay
-
webAddress
protected String webAddress
-
mailAddress
protected String mailAddress
-
subject
protected String subject
-
linkType
protected Hyperlink.HyperlinkType linkType
-
autoDisplay
protected boolean autoDisplay
-
docAddress
protected String docAddress
-
ss
protected Spreadsheet ss
-
book
protected Book book
-
docSelectedItem
protected InsertHyperlinkCtrl.DocItem docSelectedItem
-
cellReference
protected String cellReference
-
-
Method Detail
-
show
public static void show(org.zkoss.zk.ui.event.EventListener<DialogCallbackEvent> callback, Hyperlink.HyperlinkType type, String address, String display, Spreadsheet ss)
-
doAfterCompose
public void doAfterCompose(org.zkoss.zul.Window comp) throws Exception- Specified by:
doAfterComposein interfaceorg.zkoss.zk.ui.util.Composer<org.zkoss.zul.Window>- Overrides:
doAfterComposein classRefocusDialogCtrlBase- Throws:
Exception
-
onChange$displayBox
public void onChange$displayBox()
-
onClick$webBtn
public void onClick$webBtn()
-
onClick$docBtn
public void onClick$docBtn()
-
onClick$mailBtn
public void onClick$mailBtn()
-
onClick$okBtn
public void onClick$okBtn()
-
onCancel
public void onCancel()
-
getAddress
protected String getAddress()
Returns link address- Returns:
-
setLinkType
protected void setLinkType(Hyperlink.HyperlinkType type)
-
initMail
protected void initMail()
-
initWeb
protected void initWeb()
-
getWebAddress
protected String getWebAddress()
Returns the string of web page address, return null if component not found- Returns:
-
getDocAddress
protected String getDocAddress()
-
getMailAddress
protected String getMailAddress()
-
initDoc
protected void initDoc()
-
prepareSheetItems
protected InsertHyperlinkCtrl.DocItem prepareSheetItems(List<InsertHyperlinkCtrl.DocItem> docItems)
-
prepareDefinedNameItems
protected InsertHyperlinkCtrl.DocItem prepareDefinedNameItems(List<InsertHyperlinkCtrl.DocItem> docItems)
-
buildDocumentListbox
protected void buildDocumentListbox(org.zkoss.zul.Combobox refSheet, org.zkoss.zul.Textbox cellRef, Book book)
-
-