Class DefaultConfigTab
java.lang.Object
com.inductiveautomation.ignition.gateway.web.models.DefaultConfigTab
- All Implemented Interfaces:
IConfigTab,INamedTab,Serializable,org.apache.wicket.extensions.markup.html.tabs.ITab,org.apache.wicket.util.io.IClusterable
- Direct Known Subclasses:
TaskPage.TaskPageTab
Default implementation of IConfigPanelTab. Expects a Class of the config panel to instantiate, which MUST have
a public constructor which accepts either no arguments or a single argument: an IConfigPage
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder, just for fun, because who can deal with a 3-arg constructor!? -
Constructor Summary
ConstructorsConstructorDescriptionDefaultConfigTab(ConfigCategory category, String name, String titleKey, Class<? extends ConfigPanel> panelClass) DefaultConfigTab(org.apache.commons.lang3.tuple.Pair<String, String> menuLocation, String titleKey, Class<? extends ConfigPanel> panelClass) -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultConfigTab.Builderbuilder()Get the non-localized, brief (id) of the category this tab belongs to.getPanel(IConfigPage configPage) Create the config panel that this tab represents.Get a list of terms that when searched for should cause this tab to be highlighted.Get the non-localized, brief name of the tab.org.apache.wicket.model.IModel<String>getTitle()booleanvoidsetSearchTerms(List<String> terms) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.inductiveautomation.ignition.gateway.web.models.IConfigTab
getPanel
-
Constructor Details
-
DefaultConfigTab
public DefaultConfigTab(ConfigCategory category, String name, String titleKey, Class<? extends ConfigPanel> panelClass) -
DefaultConfigTab
public DefaultConfigTab(org.apache.commons.lang3.tuple.Pair<String, String> menuLocation, String titleKey, Class<? extends ConfigPanel> panelClass)
-
-
Method Details
-
builder
-
getSearchTerms
Description copied from interface:INamedTabGet a list of terms that when searched for should cause this tab to be highlighted. The tab's name will automatically be a search term, so it does not need to be in this list.- Specified by:
getSearchTermsin interfaceINamedTab
-
setSearchTerms
-
getTabName
Description copied from interface:INamedTabGet the non-localized, brief name of the tab. Should be URL friendly for bookmark-able navigation- Specified by:
getTabNamein interfaceINamedTab
-
getCategoryName
Description copied from interface:INamedTabGet the non-localized, brief (id) of the category this tab belongs to.- Specified by:
getCategoryNamein interfaceINamedTab
-
getMenuLocation
- Specified by:
getMenuLocationin interfaceIConfigTab
-
getTitle
- Specified by:
getTitlein interfaceorg.apache.wicket.extensions.markup.html.tabs.ITab
-
getPanel
Description copied from interface:IConfigTabCreate the config panel that this tab represents. Remember, all ConfigPanel's must have a wicket id of "config-contents"- Specified by:
getPanelin interfaceIConfigTab- Parameters:
configPage- The parent config page that this config panel will be a part of.- Returns:
- the new ConfigPanel instance.
-
isVisible
public boolean isVisible()- Specified by:
isVisiblein interfaceorg.apache.wicket.extensions.markup.html.tabs.ITab
-