Interface HyperlinkControl
- All Superinterfaces:
AriaControlProperties,BackgroundStyleProperties,BootstrapButtonStyle,BorderStyleProperties,Control,Element,EventOwner,HyperlinkProperties,MarginStyleProperties,MessageContainer,PaddingStyleProperties,java.io.Serializable,TextStyleProperties,WebFormEventOwner
- All Known Subinterfaces:
ListHyperlinkControl
public interface HyperlinkControl extends Control, HyperlinkProperties, BackgroundStyleProperties, TextStyleProperties, PaddingStyleProperties, MarginStyleProperties, BorderStyleProperties, BootstrapButtonStyle, AriaControlProperties
A hyperlink can be either external meaning that the link is to a URL outside of the current form,
or internal meaning that the link should trigger an internal event.
This is configured by property useExternalUrl.
When the link is configured as external, the hyperlink can be configured with properties hRef
and target; when the link is internal, the event scripts are configured in the designer via the On Click event.
-
Method Summary
Modifier and Type Method Description java.lang.StringgetHref()The URL of the hyperlink when propertyuseExternalUrlistrue.java.lang.StringgetTarget()The target window id when the link is configured asexternal.TextgetText()Returns theTextobject for the hyperlink text.TextgetTitle()Returns theTextobject for the mouse over text.booleanisSkipValidation()Returns the skip validation flag that indicates whether or not validation of controls higher on the page is skipped prior to executing the hyperlink's on click event.booleanisUseExternalURL()Indicates whether the link is external or internal.voidsetHref(java.lang.String href)Sets the URL of the hyperlink when propertyuseExternalUrlistrue.voidsetSkipValidation(boolean skipValidation)Specifies whether or not validation of controls higher on the page is skipped prior to executing the hyperlink's on click event.voidsetTarget(java.lang.String target)Sets the target window id when the link is configured asexternal.voidsetUseExternalURL(boolean useExternalURL)Sets the link type.Methods inherited from interface com.ebasetech.xi.api.controls.AriaControlProperties
addAriaCustomAttribute, getAriaCustomAttributes, getAriaDescribedBy, getAriaLabelledBy, getAriaLabelText, getAriaRole, removeAriaCustomAttribute, setAriaCustomAttributes, setAriaRoleMethods inherited from interface com.ebasetech.xi.api.controls.BackgroundStyleProperties
getBackgroundColor, getBackgroundImage, getBackgroundImagePosition, getBackgroundImageRepeat, setBackgroundColor, setBackgroundImage, setBackgroundImagePosition, setBackgroundImageRepeatMethods inherited from interface com.ebasetech.xi.api.controls.BootstrapButtonStyle
getBootstrapSize, getBootstrapState, getBootstrapStyle, setBootstrapSize, setBootstrapState, setBootstrapStyleMethods inherited from interface com.ebasetech.xi.api.controls.BorderStyleProperties
getBorderColor, getBorderRadius, getBorderStyle, getBorderWidth, getBottomBorderWidth, getLeftBorderWidth, getRightBorderWidth, getTopBorderWidth, setBorderColor, setBorderRadius, setBorderStyle, setBorderWidth, setBottomBorderWidth, setLeftBorderWidth, setRightBorderWidth, setTopBorderWidthMethods inherited from interface com.ebasetech.xi.api.controls.Control
addCssClass, getAll, getCssClass, getErrorMsgClass, getErrorMsgStyle, getInfoMsgClass, getInfoMsgStyle, getLayoutCell, getNextSiblingControl, getPage, getParentControl, getPreviousSiblingControl, getRootHtmlElementProperties, getStyle, getWarningMsgClass, getWarningMsgStyle, hasModifier, hide, isContainer, isDisplayOnly, isDisplayOnlyIncludingParents, isEventField, isHidden, isInheritMsg, isLocalMsg, isNewLine, isShowing, refresh, removeCssClass, requestFocus, setCssClass, setDisplayOnly, setErrorMsgClass, setErrorMsgStyle, setHidden, setInfoMsgClass, setInfoMsgStyle, setNewLine, setStyle, setWarningMsgClass, setWarningMsgStyle, showMethods inherited from interface com.ebasetech.xi.api.Element
getElementName, getElementTypeMethods inherited from interface com.ebasetech.xi.api.controls.HyperlinkProperties
getActiveTextStyle, getHoverTextStyle, getLinkedTextStyle, getVisitedTextStyleMethods inherited from interface com.ebasetech.xi.api.controls.MarginStyleProperties
getAllMargin, getBottomMargin, getLeftMargin, getRightMargin, getTopMargin, setAllMargin, setBottomMargin, setLeftMargin, setRightMargin, setTopMarginMethods inherited from interface com.ebasetech.xi.api.MessageContainer
addErrorMessage, addErrorMessage, addErrorMessage, addErrorMessage, addErrorMessage, addErrorMessageText, addErrorMessageText, addErrorMessageText, addInfoMessage, addInfoMessage, addInfoMessageText, addInfoMessageText, addInfoMessageText, addWarningMessage, addWarningMessage, addWarningMessage, addWarningMessage, addWarningMessage, addWarningMessageText, addWarningMessageText, addWarningMessageText, existErrorMessages, existInfoMessages, existMessages, existWarningMessagesMethods inherited from interface com.ebasetech.xi.api.controls.PaddingStyleProperties
getAllPadding, getBottomPadding, getLeftPadding, getRightPadding, getTopPadding, setAllPadding, setBottomPadding, setLeftPadding, setRightPadding, setTopPaddingMethods inherited from interface com.ebasetech.xi.api.controls.TextStyleProperties
getLineHeight, getTextBold, getTextColor, getTextDecoration, getTextFont, getTextItalic, getTextSize, setLineHeight, setTextBold, setTextColor, setTextDecoration, setTextFont, setTextItalic, setTextSize
-
Method Details
-
getText
Text getText()Returns theTextobject for the hyperlink text.- Since:
- V4.4
-
getHref
java.lang.String getHref()The URL of the hyperlink when propertyuseExternalUrlistrue. The URL can be either relative or absolute.- Since:
- V4.4
-
setHref
void setHref(java.lang.String href)Sets the URL of the hyperlink when propertyuseExternalUrlistrue. The URL can be either relative or absolute. When absolute, it should start with the protocol e.g.http://www.google.com.- Since:
- V4.4
-
getTitle
Text getTitle()Returns theTextobject for the mouse over text.- Since:
- V4.4
-
isSkipValidation
boolean isSkipValidation()Returns the skip validation flag that indicates whether or not validation of controls higher on the page is skipped prior to executing the hyperlink's on click event.Note that field type validation is always executed regardless of the setting of this flag (e.g. check that only numeric data is entered for numeric fields).
- Since:
- V4.4
-
setSkipValidation
void setSkipValidation(boolean skipValidation)Specifies whether or not validation of controls higher on the page is skipped prior to executing the hyperlink's on click event.Note that field type validation is always executed regardless of the setting of this flag (e.g. check that only numeric data is entered for numeric fields).
- Since:
- V4.4
-
isUseExternalURL
boolean isUseExternalURL()Indicates whether the link is external or internal.- external: the link is to a URL outside of the current form
- internal: the link triggers an internal event
- Since:
- V4.4
-
setUseExternalURL
void setUseExternalURL(boolean useExternalURL)Sets the link type. Whentrue, the link type is external, whenfalsethe link type is internal.- Since:
- V4.4
-
getTarget
java.lang.String getTarget()The target window id when the link is configured asexternal.- Since:
- V4.4
-
setTarget
void setTarget(java.lang.String target)Sets the target window id when the link is configured asexternal.- Since:
- V4.4
-