org.ujorm.wicket.component.tabs
Class UjoTab

java.lang.Object
  extended by org.apache.wicket.extensions.markup.html.tabs.AbstractTab
      extended by org.ujorm.wicket.component.tabs.UjoTab
All Implemented Interfaces:
Serializable, org.apache.wicket.extensions.markup.html.tabs.ITab, org.apache.wicket.util.io.IClusterable

public class UjoTab
extends org.apache.wicket.extensions.markup.html.tabs.AbstractTab

Convenience class that takes care of common ITab functionality

Author:
Pavel Ponec
See Also:
Serialized Form

Constructor Summary
UjoTab(org.apache.wicket.model.IModel<String> title, Class<? extends org.apache.wicket.markup.html.WebMarkupContainer> panel)
          Constructor
UjoTab(org.apache.wicket.model.IModel<String> title, String cssClass, Class<? extends org.apache.wicket.markup.html.WebMarkupContainer> panel)
          Constructor
UjoTab(org.apache.wicket.model.IModel<String> title, String cssClass, Class<? extends org.apache.wicket.markup.html.WebMarkupContainer> panel, org.apache.wicket.model.IModel<Boolean> visible)
          Constructor
UjoTab(String title, String cssClass, Class<? extends org.apache.wicket.markup.html.WebMarkupContainer> panel)
          Constructor
 
Method Summary
 String getCssClass()
          Get CSS class name
 org.apache.wicket.markup.html.WebMarkupContainer getPanel(String panelId)
          Create new instance of the panel class.
 Class<? extends org.apache.wicket.markup.html.WebMarkupContainer> getPanelClass()
          Get panel class
 org.apache.wicket.model.IModel<?> getTabModel()
          Model for constructor of the Tab components
 boolean isVisible()
          The method get a visibleModel if any
 UjoTab setModel(org.apache.wicket.model.IModel<?> tabModel)
          Model for constructor of the Tab components
 void setTabModel(org.apache.wicket.model.IModel<?> tabModel)
          Model for constructor of the Tab components
 
Methods inherited from class org.apache.wicket.extensions.markup.html.tabs.AbstractTab
getTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UjoTab

public UjoTab(org.apache.wicket.model.IModel<String> title,
              Class<? extends org.apache.wicket.markup.html.WebMarkupContainer> panel)
Constructor


UjoTab

public UjoTab(String title,
              String cssClass,
              Class<? extends org.apache.wicket.markup.html.WebMarkupContainer> panel)
Constructor


UjoTab

public UjoTab(org.apache.wicket.model.IModel<String> title,
              String cssClass,
              Class<? extends org.apache.wicket.markup.html.WebMarkupContainer> panel)
Constructor


UjoTab

public UjoTab(@Nonnull
              org.apache.wicket.model.IModel<String> title,
              @Nullable
              String cssClass,
              @Nonnull
              Class<? extends org.apache.wicket.markup.html.WebMarkupContainer> panel,
              @Nullable
              org.apache.wicket.model.IModel<Boolean> visible)
Constructor

Parameters:
title - Title model
cssClass - CSS class
panel - Panel class
visible - Optional visible model
Method Detail

isVisible

public boolean isVisible()
The method get a visibleModel if any

Specified by:
isVisible in interface org.apache.wicket.extensions.markup.html.tabs.ITab
Overrides:
isVisible in class org.apache.wicket.extensions.markup.html.tabs.AbstractTab

getTabModel

public org.apache.wicket.model.IModel<?> getTabModel()
Model for constructor of the Tab components


setTabModel

public void setTabModel(org.apache.wicket.model.IModel<?> tabModel)
Model for constructor of the Tab components


setModel

public UjoTab setModel(org.apache.wicket.model.IModel<?> tabModel)
Model for constructor of the Tab components


getCssClass

public String getCssClass()
Get CSS class name


getPanel

public org.apache.wicket.markup.html.WebMarkupContainer getPanel(String panelId)
                                                          throws IllegalStateException
Create new instance of the panel class. You can overwrite the method for a special requirements.
Original documentation: @{inheritDoc}

Specified by:
getPanel in interface org.apache.wicket.extensions.markup.html.tabs.ITab
Specified by:
getPanel in class org.apache.wicket.extensions.markup.html.tabs.AbstractTab
Throws:
IllegalStateException

getPanelClass

public Class<? extends org.apache.wicket.markup.html.WebMarkupContainer> getPanelClass()
Get panel class



Copyright © 2015. All Rights Reserved.