Class HCCommand
- java.lang.Object
-
- com.helger.html.hc.impl.AbstractHCNode
-
- com.helger.html.hc.html.AbstractHCElement<HCCommand>
-
- com.helger.html.hc.html.interactive.HCCommand
-
- All Implemented Interfaces:
com.helger.commons.hierarchy.IHasChildren<IHCNode>,com.helger.commons.hierarchy.IHasChildrenRecursive<IHCNode>,com.helger.commons.hierarchy.IHasChildrenSorted<IHCNode>,com.helger.commons.traits.IGenericImplTrait<HCCommand>,IHCElement<HCCommand>,IHCHasCSSClasses<HCCommand>,IHCHasCSSStyles<HCCommand>,IHCHasState<HCCommand>,IHCHasID<HCCommand>,IHCNode,Serializable
public class HCCommand extends AbstractHCElement<HCCommand> implements IHCHasState<HCCommand>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_CHECKEDBy default checked is disabledstatic booleanDEFAULT_DEFAULTBy default default is disabledstatic booleanDEFAULT_DISABLEDBy default disabled is disabled-
Fields inherited from class com.helger.html.hc.html.AbstractHCElement
DEFAULT_HIDDEN, DEFAULT_SPELLCHECK, DEFAULT_TRANSLATE, DEFAULT_UNFOCUSABLE
-
Fields inherited from interface com.helger.html.hc.html.IHCElement
DEFAULT_TABINDEX
-
-
Constructor Summary
Constructors Constructor Description HCCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfillMicroElement(com.helger.xml.microdom.IMicroElement aElement, IHCConversionSettingsToNode aConversionSettings)Set all attributes and child elements of this objectcom.helger.commons.url.ISimpleURLgetIcon()StringgetLabel()StringgetPlainText()StringgetRadioGroup()EHCCommandTypegetType()booleanisChecked()booleanisDefault()booleanisDisabled()HCCommandsetChecked(boolean bChecked)HCCommandsetDefault(boolean bDefault)HCCommandsetDisabled(boolean bDisabled)Set the disabled state of this element.HCCommandsetIcon(com.helger.commons.url.ISimpleURL aIcon)HCCommandsetLabel(String sLabel)HCCommandsetRadioGroup(String sRadioGroup)HCCommandsetType(EHCCommandType eType)-
Methods inherited from class com.helger.html.hc.html.AbstractHCElement
addClass, addEventHandler, addStyle, containsClass, containsEventHandler, containsStyle, createMicroElement, customAttrs, finishMicroElement, getAccessKey, getAllClasses, getAllClassesAsString, getAllClassNames, getAllStyles, getAllStylesAsString, getAllStyleValues, getContentEditable, getDirection, getDraggable, getElement, getEventHandler, getEventMap, getID, getLanguage, getRole, getStyleValue, getTabIndex, getTagName, getTitle, getTranslate, hasAnyClass, hasAnyStyle, hasStyle, internalConvertToMicroNode, isHidden, isSpellCheck, isTranslateOff, isTranslateOn, isTranslateUndefined, isUnfocusable, isValidID, onConsistencyCheck, onFinalizeNodeState, prependEventHandler, removeAllClasses, removeAllEventHandler, removeAllStyles, removeClass, removeStyle, setAccessKey, setContentEditable, setDirection, setDraggable, setEventHandler, setHidden, setID, setID, setLanguage, setRole, setSpellCheck, setTabIndex, setTitle, setTranslate, setUnfocusable, toString
-
Methods inherited from class com.helger.html.hc.impl.AbstractHCNode
canConvertToMicroNode, consistencyCheck, convertToMicroNode, customizeNode, finalizeNodeState, findFirstChild, findFirstChildMapped, forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getAllChildren, getChildAtIndex, getChildCount, getChildren, getFirstChild, getLastChild, getNodeState, hasChildren, internalSetNodeState, onCustomizeNode, onRegisterExternalResources, registerExternalResources
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
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
setTranslate, withCustomAttrs
-
Methods inherited from interface com.helger.html.hc.html.IHCHasCSSClasses
addClasses, addClasses, addClasses
-
Methods inherited from interface com.helger.html.hc.html.IHCHasCSSStyles
addStyle, addStyles, addStyles, addStyles
-
Methods inherited from interface com.helger.html.hc.IHCHasID
ensureID, hasID, hasNoID, setUniqueID
-
Methods inherited from interface com.helger.html.hc.IHCNode
canConvertToMicroNode, consistencyCheck, convertToMicroNode, customizeNode, finalizeNodeState, getNodeState, registerExternalResources
-
-
-
-
Field Detail
-
DEFAULT_CHECKED
public static final boolean DEFAULT_CHECKED
By default checked is disabled- See Also:
- Constant Field Values
-
DEFAULT_DEFAULT
public static final boolean DEFAULT_DEFAULT
By default default is disabled- See Also:
- Constant Field Values
-
DEFAULT_DISABLED
public static final boolean DEFAULT_DISABLED
By default disabled is disabled- See Also:
- Constant Field Values
-
-
Method Detail
-
isChecked
public final boolean isChecked()
-
isDefault
public final boolean isDefault()
-
isDisabled
public final boolean isDisabled()
- Specified by:
isDisabledin interfaceIHCHasState<HCCommand>- Returns:
trueif the element is disabled,falseotherwise.
-
setDisabled
@Nonnull public final HCCommand setDisabled(boolean bDisabled)
Description copied from interface:IHCHasStateSet the disabled state of this element.- Specified by:
setDisabledin interfaceIHCHasState<HCCommand>- Parameters:
bDisabled-trueto disable,falseto enable- Returns:
- this
-
getIcon
@Nullable public final com.helger.commons.url.ISimpleURL getIcon()
-
getType
@Nonnull public final EHCCommandType getType()
-
setType
@Nonnull public final HCCommand setType(@Nonnull EHCCommandType eType)
-
fillMicroElement
protected void fillMicroElement(com.helger.xml.microdom.IMicroElement aElement, IHCConversionSettingsToNode aConversionSettings)Description copied from class:AbstractHCElementSet all attributes and child elements of this object- Overrides:
fillMicroElementin classAbstractHCElement<HCCommand>- Parameters:
aElement- The current micro element to be filled. Nevernull.aConversionSettings- The conversion settings to be used. Nevernull.
-
getPlainText
@Nonnull public String getPlainText()
- Specified by:
getPlainTextin interfaceIHCNode- Overrides:
getPlainTextin classAbstractHCNode- Returns:
- The plain text representation of this text. May not be
null.
-
-