Class StatusPanel<T>
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.LiveviewPanel
com.inductiveautomation.ignition.gateway.web.components.StatusPanel<T>
- 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
A panel that wraps a repeater that displays a list of items wrapped in titled panels that are collapsible and
live-view enabled.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from class org.apache.wicket.markup.html.panel.Panel
PANEL
Fields inherited from class org.apache.wicket.Component
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER
-
Constructor Summary
ConstructorsConstructorDescriptionStatusPanel
(String id, String titleKey, org.apache.wicket.model.IModel<? extends List<? extends T>> listModel) StatusPanel
(String id, org.apache.wicket.model.IModel<String> titleModel, org.apache.wicket.model.IModel<? extends List<? extends T>> listModel) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Override this and return true to have live view enabled by defaultprotected org.apache.wicket.markup.html.panel.Fragment
getItemContents
(int index, T modelObject) protected org.apache.wicket.model.IModel
protected String
protected boolean
Override this and return false to have live view link hiddenprotected boolean
protected boolean
protected org.apache.wicket.Component
protected abstract org.apache.wicket.Component
newItemComponent
(String id, T modelObject) Return a component that will be used to display an item.protected org.apache.wicket.Component
newItemNameLabel
(String id, int itemIndex, T modelObject) Override this to create the component used as the label for each status panel.Methods inherited from class org.apache.wicket.markup.html.panel.Panel
newMarkupSourcingStrategy
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
Methods inherited from class org.apache.wicket.MarkupContainer
add, 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, visitChildren
Methods inherited from class org.apache.wicket.Component
add, 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, wrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
listView
-
-
Constructor Details
-
StatusPanel
-
StatusPanel
-
-
Method Details
-
isTitleVisible
protected boolean isTitleVisible() -
getItemContents
-
defaultLiveViewOn
protected boolean defaultLiveViewOn()Override this and return true to have live view enabled by default -
isLiveViewLinkVisible
protected boolean isLiveViewLinkVisible()Override this and return false to have live view link hidden -
getNoItemsLabel
protected org.apache.wicket.model.IModel getNoItemsLabel() -
getNoItemsLabelKey
-
newItemNameLabel
Override this to create the component used as the label for each status panel. By default, the key will be used if it is a string. If the key isn't a string, it will try and use the "name" property of the key, if it exists. -
newItemComponent
Return a component that will be used to display an item. This component will be placed in a ListItem whose model is a CompoundPropertyModel on an element of the item list -
isStartExpanded
protected boolean isStartExpanded()
-