Package com.helger.html.hc.html.forms
Interface IHCButton<IMPLTYPE extends IHCButton<IMPLTYPE>>
-
- All Superinterfaces:
com.helger.commons.traits.IGenericImplTrait<IMPLTYPE>,com.helger.commons.hierarchy.IHasChildren<IHCNode>,com.helger.commons.hierarchy.IHasChildrenRecursive<IHCNode>,com.helger.commons.hierarchy.IHasChildrenSorted<IHCNode>,IHCElement<IMPLTYPE>,IHCElementWithChildren<IMPLTYPE>,IHCElementWithInternalChildren<IMPLTYPE,IHCNode>,IHCHasChildrenMutable<IMPLTYPE,IHCNode>,IHCHasCSSClasses<IMPLTYPE>,IHCHasCSSStyles<IMPLTYPE>,IHCHasFocus<IMPLTYPE>,IHCHasID<IMPLTYPE>,IHCHasName<IMPLTYPE>,IHCHasState<IMPLTYPE>,IHCNode,IHCNodeWithChildren<IMPLTYPE>,Serializable
- All Known Implementing Classes:
AbstractHCButton,HCButton,HCButton_Reset,HCButton_Submit,HCLinkButton
public interface IHCButton<IMPLTYPE extends IHCButton<IMPLTYPE>> extends IHCElementWithChildren<IMPLTYPE>, IHCHasState<IMPLTYPE>, IHCHasName<IMPLTYPE>, IHCHasFocus<IMPLTYPE>
-
-
Field Summary
-
Fields inherited from interface com.helger.html.hc.html.IHCElement
DEFAULT_TABINDEX
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default IMPLTYPEaddOnClick(com.helger.commons.url.ISimpleURL aURL)Shortcut foraddOnClick(JSHtml.windowLocationHref (aURL))default IMPLTYPEaddOnClick(IHasJSCode aOnClick)Shortcut foraddEventHandler(EJSEvent.ONCLICK, aOnClick)StringgetForm()IHasJSCodegetFormActionJS()com.helger.commons.url.ISimpleURLgetFormActionURL()com.helger.commons.mime.IMimeTypegetFormEncType()EHCFormMethodgetFormMethod()HC_TargetgetFormTarget()EHCButtonTypegetType()StringgetValue()booleanisFormNoValidate()IMPLTYPEsetForm(String sForm)IMPLTYPEsetFormAction(com.helger.commons.url.ISimpleURL aAction)IMPLTYPEsetFormAction(IHasJSCodeWithSettings aAction)IMPLTYPEsetFormEncType(com.helger.commons.mime.IMimeType aFormEncType)default IMPLTYPEsetFormEncTypeFileUpload()Make this form a file-upload form.default IMPLTYPEsetFormEncTypeTextPlain()Set the enctype to text/plainIMPLTYPEsetFormMethod(EHCFormMethod eFormMethod)IMPLTYPEsetFormNoValidate(boolean bFormNoValidate)IMPLTYPEsetFormTarget(HC_Target aFormTarget)default IMPLTYPEsetFormTargetBlank()default IMPLTYPEsetOnClick(com.helger.commons.url.ISimpleURL aURL)Shortcut forsetOnClick(JSHtml.windowLocationHref (aURL))default IMPLTYPEsetOnClick(IHasJSCode aOnClick)Shortcut forsetEventHandler(EJSEvent.ONCLICK, aOnClick)IMPLTYPEsetType(EHCButtonType eType)Set the type of the button.IMPLTYPEsetValue(String sValue)Set the value of the button.-
Methods inherited from interface com.helger.commons.hierarchy.IHasChildren
forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getChildCount, getChildren, hasChildren, hasNoChildren
-
Methods inherited from interface com.helger.commons.hierarchy.IHasChildrenRecursive
forAllChildrenRecursive, forAllChildrenRecursive
-
Methods inherited from interface com.helger.commons.hierarchy.IHasChildrenSorted
findFirstChild, findFirstChildMapped, getAllChildren, getChildAtIndex, getFirstChild, getLastChild
-
Methods inherited from interface com.helger.html.hc.html.IHCElement
addEventHandler, containsEventHandler, customAttrs, getAccessKey, getContentEditable, getDirection, getDraggable, getElement, getEventHandler, getEventMap, getLanguage, getRole, getTabIndex, getTagName, getTitle, getTranslate, isHidden, isSpellCheck, isTranslateOff, isTranslateOn, isTranslateUndefined, isUnfocusable, prependEventHandler, removeAllEventHandler, setAccessKey, setContentEditable, setDirection, setDraggable, setEventHandler, setHidden, setLanguage, setRole, setSpellCheck, setTabIndex, setTitle, setTranslate, setTranslate, setUnfocusable, withCustomAttrs
-
Methods inherited from interface com.helger.html.hc.html.IHCElementWithInternalChildren
recursiveContainsChildWithTagName
-
Methods inherited from interface com.helger.html.hc.IHCHasChildrenMutable
addAndReturnChild, addAndReturnChildAt, addChild, addChildAt, addChildren, addChildren, addChildren, addChildrenAt, addChildrenAt, getAllChildrenAsNodeList, removeAllChildren, removeChild, removeChildAt, setChild, sortAllChildren
-
Methods inherited from interface com.helger.html.hc.html.IHCHasCSSClasses
addClass, addClasses, addClasses, addClasses, containsClass, getAllClasses, getAllClassesAsString, getAllClassNames, hasAnyClass, removeAllClasses, removeClass
-
Methods inherited from interface com.helger.html.hc.html.IHCHasCSSStyles
addStyle, addStyle, addStyles, addStyles, addStyles, containsStyle, getAllStyles, getAllStylesAsString, getAllStyleValues, getStyleValue, hasAnyStyle, hasStyle, removeAllStyles, removeStyle
-
Methods inherited from interface com.helger.html.hc.html.forms.IHCHasFocus
isAutoFocus, setAutoFocus
-
Methods inherited from interface com.helger.html.hc.IHCHasID
ensureID, getID, hasID, hasNoID, setID, setUniqueID
-
Methods inherited from interface com.helger.html.hc.IHCHasName
getName, setName
-
Methods inherited from interface com.helger.html.hc.html.IHCHasState
isDisabled, setDisabled
-
Methods inherited from interface com.helger.html.hc.IHCNode
canConvertToMicroNode, consistencyCheck, convertToMicroNode, customizeNode, finalizeNodeState, getNodeState, getPlainText, registerExternalResources
-
Methods inherited from interface com.helger.html.hc.IHCNodeWithChildren
addChild, addChildAt, addChildren, addChildren, setChild
-
-
-
-
Method Detail
-
getFormActionURL
@Nullable com.helger.commons.url.ISimpleURL getFormActionURL()
-
getFormActionJS
@Nullable IHasJSCode getFormActionJS()
-
setFormAction
@Nonnull IMPLTYPE setFormAction(@Nullable IHasJSCodeWithSettings aAction)
-
getFormEncType
@Nullable com.helger.commons.mime.IMimeType getFormEncType()
-
setFormEncTypeFileUpload
@Nonnull default IMPLTYPE setFormEncTypeFileUpload()
Make this form a file-upload form.- Returns:
- this
-
setFormEncTypeTextPlain
@Nonnull default IMPLTYPE setFormEncTypeTextPlain()
Set the enctype to text/plain- Returns:
- this
-
setFormEncType
@Nonnull IMPLTYPE setFormEncType(@Nullable com.helger.commons.mime.IMimeType aFormEncType)
-
getFormMethod
@Nullable EHCFormMethod getFormMethod()
-
setFormMethod
@Nonnull IMPLTYPE setFormMethod(@Nullable EHCFormMethod eFormMethod)
-
isFormNoValidate
boolean isFormNoValidate()
-
setValue
@Nonnull IMPLTYPE setValue(@Nullable String sValue)
Set the value of the button.- Parameters:
sValue- The value to set. May benull.- Returns:
- this
-
getType
@Nonnull EHCButtonType getType()
- Returns:
- The type of the button (button, submit or reset). Never
null.
-
setType
@Nonnull IMPLTYPE setType(@Nonnull EHCButtonType eType)
Set the type of the button.- Parameters:
eType- The new type. May not benull.- Returns:
- this
-
setOnClick
@Nonnull default IMPLTYPE setOnClick(@Nullable IHasJSCode aOnClick)
Shortcut forsetEventHandler(EJSEvent.ONCLICK, aOnClick)- Parameters:
aOnClick- JS event to trigger- Returns:
- this
-
setOnClick
@Nonnull default IMPLTYPE setOnClick(@Nonnull com.helger.commons.url.ISimpleURL aURL)
Shortcut forsetOnClick(JSHtml.windowLocationHref (aURL))- Parameters:
aURL- URL to link to- Returns:
- this
-
addOnClick
@Nonnull default IMPLTYPE addOnClick(@Nullable IHasJSCode aOnClick)
Shortcut foraddEventHandler(EJSEvent.ONCLICK, aOnClick)- Parameters:
aOnClick- JS event to trigger- Returns:
- this
-
-