Class CronScheduleEditorPanel
java.lang.Object
org.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.html.panel.Panel
com.inductiveautomation.ignition.gateway.web.components.CronScheduleEditorPanel
- All Implemented Interfaces:
- Serializable,- Iterable<org.apache.wicket.Component>,- org.apache.wicket.event.IEventSink,- org.apache.wicket.event.IEventSource,- org.apache.wicket.IConverterLocator,- org.apache.wicket.markup.html.IHeaderContributor,- org.apache.wicket.request.component.IRequestableComponent,- org.apache.wicket.util.IHierarchical<org.apache.wicket.Component>,- org.apache.wicket.util.io.IClusterable
public class CronScheduleEditorPanel
extends org.apache.wicket.markup.html.panel.Panel
implements Serializable
The CronScheduleEditor allows a user to construct a cron string by entering the component parts as text or choosing
 them from dropdowns. Individual parts are validated, and the dropdowns listen to the text fields to see if there's a
 value they recognize. Ported from CronScheduleEditor.java. Created on 5/11/15.
- Since:
- 1.8.0
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected Stringstatic final intprotected Stringprotected Stringprotected Stringstatic final intprotected Stringprotected Stringstatic final intprotected Stringprotected Stringstatic final intprotected Stringprotected Stringstatic final intprotected Stringprotected StringFields inherited from class org.apache.wicket.markup.html.panel.PanelPANELFields inherited from class org.apache.wicket.ComponentENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER
- 
Constructor SummaryConstructorsConstructorDescriptionCronScheduleEditorPanel(String id, org.apache.wicket.model.IModel<String> model) Instantiates a new Cron Schedule Editor panel.
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringgetCronDescriptor(String cronString) Takes a cron String and converts it into a human-readable form.Methods inherited from class org.apache.wicket.markup.html.panel.PanelnewMarkupSourcingStrategyMethods inherited from class org.apache.wicket.markup.html.WebMarkupContainergetWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionMethods inherited from class org.apache.wicket.MarkupContaineradd, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenMethods inherited from class org.apache.wicket.Componentadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrapMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.IterableforEach, spliterator
- 
Field Details- 
MINUTESpublic static final int MINUTES- See Also:
 
- 
HOURSpublic static final int HOURS- See Also:
 
- 
DAYSpublic static final int DAYS- See Also:
 
- 
MONTHSpublic static final int MONTHS- See Also:
 
- 
WEEKDAYSpublic static final int WEEKDAYS- See Also:
 
- 
commonSelection
- 
minutesSelection
- 
hoursSelection
- 
daysSelection
- 
monthsSelection
- 
weekdaysSelection
- 
minutesInput
- 
hoursInput
- 
daysInput
- 
monthsInput
- 
weekdaysInput
- 
descriptorText
 
- 
- 
Constructor Details- 
CronScheduleEditorPanelInstantiates a new Cron Schedule Editor panel.- Parameters:
- id- the component id
- model- the String model. The cron string is written to this model's object.
 
 
- 
- 
Method Details- 
getCronDescriptorTakes a cron String and converts it into a human-readable form. Example: '0 * * 3 *' will convert to 'Every hour, only in March (0 * * 3 *)'- Throws:
- ParseException
 
 
-