Class HCTime
- java.lang.Object
-
- com.helger.html.hc.impl.AbstractHCNode
-
- com.helger.html.hc.html.AbstractHCElement<IMPLTYPE>
-
- com.helger.html.hc.html.AbstractHCElementWithInternalChildren<IMPLTYPE,IHCNode>
-
- com.helger.html.hc.html.AbstractHCElementWithChildren<HCTime>
-
- com.helger.html.hc.html.textlevel.HCTime
-
- 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<HCTime>,IHCElement<HCTime>,IHCElementWithChildren<HCTime>,IHCElementWithInternalChildren<HCTime,IHCNode>,IHCHasCSSClasses<HCTime>,IHCHasCSSStyles<HCTime>,IHCHasChildrenMutable<HCTime,IHCNode>,IHCHasID<HCTime>,IHCNode,IHCNodeWithChildren<HCTime>,Serializable
public class HCTime extends AbstractHCElementWithChildren<HCTime>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intLENGTH_DAYstatic intLENGTH_HOURstatic intLENGTH_MINstatic intLENGTH_MONTHstatic intLENGTH_SECstatic intLENGTH_WEEKINYEARstatic intLENGTH_YEAR-
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 HCTime()
-
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 objectStringgetDatetime()HCTimesetAsDate(int nYear, int nMonth, int nDay)HCTimesetAsDate(LocalDate aDate)HCTimesetAsDate(Date aDate)HCTimesetAsDateAndTime(LocalDateTime aDateTime)HCTimesetAsDateAndTime(ZonedDateTime aDateTime)HCTimesetAsMonth(int nYear, int nMonth)HCTimesetAsTime(int nHour, int nMinute)HCTimesetAsTime(int nHour, int nMinute, int nSecond)HCTimesetAsTime(int nHour, int nMinute, int nSecond, int nMilliSeconds)HCTimesetAsTime(LocalTime aTime)HCTimesetAsTime(Date aDate)HCTimesetAsTimezone(int nMinutes)HCTimesetAsWeekInYear(int nYear, int nWeekInYear)HCTimesetAsYear(int nYear)HCTimesetAsYearlessDate(int nMonth, int nDay)-
Methods inherited from class com.helger.html.hc.html.AbstractHCElementWithInternalChildren
addChild, addChildAt, afterAddChild, afterRemoveChild, beforeAddChild, canConvertToMicroNode, children, findFirstChild, findFirstChildMapped, forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getAllChildren, getAllChildrenAsNodeList, getChildAtIndex, getChildCount, getChildren, getChildrenFormEmitting, getFirstChild, getLastChild, getPlainText, hasChildren, removeAllChildren, removeChild, removeChildAt, sortAllChildren, toString
-
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
-
Methods inherited from class com.helger.html.hc.impl.AbstractHCNode
consistencyCheck, convertToMicroNode, customizeNode, finalizeNodeState, getNodeState, 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
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.IHCHasID
ensureID, getID, hasID, hasNoID, setID, setUniqueID
-
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
-
-
-
-
Field Detail
-
LENGTH_YEAR
public static final int LENGTH_YEAR
- See Also:
- Constant Field Values
-
LENGTH_MONTH
public static final int LENGTH_MONTH
- See Also:
- Constant Field Values
-
LENGTH_DAY
public static final int LENGTH_DAY
- See Also:
- Constant Field Values
-
LENGTH_WEEKINYEAR
public static final int LENGTH_WEEKINYEAR
- See Also:
- Constant Field Values
-
LENGTH_HOUR
public static final int LENGTH_HOUR
- See Also:
- Constant Field Values
-
LENGTH_MIN
public static final int LENGTH_MIN
- See Also:
- Constant Field Values
-
LENGTH_SEC
public static final int LENGTH_SEC
- See Also:
- Constant Field Values
-
-
Method Detail
-
setAsMonth
@Nonnull public final HCTime setAsMonth(@Nonnegative int nYear, @Nonnegative int nMonth)
-
setAsDate
@Nonnull public final HCTime setAsDate(@Nonnegative int nYear, @Nonnegative int nMonth, @Nonnegative int nDay)
-
setAsYearlessDate
@Nonnull public final HCTime setAsYearlessDate(@Nonnegative int nMonth, @Nonnegative int nDay)
-
setAsTime
@Nonnull public final HCTime setAsTime(@Nonnegative int nHour, @Nonnegative int nMinute)
-
setAsTime
@Nonnull public final HCTime setAsTime(@Nonnegative int nHour, @Nonnegative int nMinute, @Nonnegative int nSecond)
-
setAsTime
@Nonnull public final HCTime setAsTime(@Nonnegative int nHour, @Nonnegative int nMinute, @Nonnegative int nSecond, @Nonnegative int nMilliSeconds)
-
setAsDateAndTime
@Nonnull public final HCTime setAsDateAndTime(@Nonnull LocalDateTime aDateTime)
-
setAsDateAndTime
@Nonnull public final HCTime setAsDateAndTime(@Nonnull ZonedDateTime aDateTime)
-
setAsTimezone
@Nonnull public final HCTime setAsTimezone(@CheckForSigned int nMinutes)
-
setAsWeekInYear
@Nonnull public final HCTime setAsWeekInYear(@Nonnegative int nYear, @Nonnegative int nWeekInYear)
-
setAsYear
@Nonnull public final HCTime setAsYear(@Nonnegative int nYear)
-
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 classAbstractHCElementWithInternalChildren<HCTime,IHCNode>- Parameters:
aElement- The current micro element to be filled. Nevernull.aConversionSettings- The conversion settings to be used. Nevernull.
-
-