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 class
InsertHyperlinkCtrl.DocItem
static class
InsertHyperlinkCtrl.DocItemType
-
Nested classes/interfaces inherited from class io.keikaiex.ui.dialog.impl.DialogCtrlBase
DialogCtrlBase.Entry
-
-
Field Summary
Fields Modifier and Type Field 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
-
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 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 addressprotected String
getDocAddress()
protected String
getMailAddress()
protected String
getWebAddress()
Returns the string of web page address, return null if component not foundprotected 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)
-
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:
doAfterCompose
in interfaceorg.zkoss.zk.ui.util.Composer<org.zkoss.zul.Window>
- Overrides:
doAfterCompose
in 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)
-
-