org.odlabs.wiquery.ui.tabs
Class Tabs

java.lang.Object
  extended by org.apache.wicket.Component
      extended by org.apache.wicket.MarkupContainer
          extended by org.apache.wicket.markup.html.WebMarkupContainer
              extended by org.odlabs.wiquery.ui.tabs.Tabs
All Implemented Interfaces:
Serializable, Iterable<org.apache.wicket.Component>, org.apache.wicket.event.IEventSink, org.apache.wicket.event.IEventSource, org.apache.wicket.IClusterable, 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>, IWiQueryPlugin

public class Tabs
extends org.apache.wicket.markup.html.WebMarkupContainer
implements IWiQueryPlugin

$Id$

Create a tab panel.

Since:
0.9
Author:
Lionel Armanet
See Also:
Serialized Form

Field Summary
static String UI_INDEX
          Properties on the ui parameter (use it into callback functions) : zero-based index of the selected tab
static String UI_PANEL
          Properties on the ui parameter (use it into callback functions) : element, that contains the selected tab contents
static String UI_TAB
          Properties on the ui parameter (use it into callback functions) : anchor element of the selected tab
 
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
Tabs(String id)
          Builds a new tabs container with the given wicket id.
 
Method Summary
 JsStatement abort()
          Method to terminate all running tab ajax requests and animations This will return the element back to its pre-init state.
 void abort(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
          Method to terminate all running tab ajax requests and animations within the ajax request
 void add(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget, int index, String title, org.apache.wicket.Component contentToAdd)
          Add the given component in the tab panel.
 void add(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget, String title, org.apache.wicket.Component contentToAdd)
          Add the given component in the tab panel.
 void add(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget, String url, String label)
          Method to add a new tab within the ajax request
 void add(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget, String url, String label, int index)
          Method to add a new tab within the ajax request
 JsStatement add(int index, String title, org.apache.wicket.Component contentToAdd)
          Returns the JsStatement to add the given component in the tab panel.
 JsStatement add(String title, org.apache.wicket.Component contentToAdd)
          Returns the JsStatement to add the given component at the end of the tab panel.
 JsStatement add(String url, String label)
          Method to add a new tab This will return the element back to its pre-init state.
 JsStatement add(String url, String label, int index)
          Method to add a new tab This will return the element back to its pre-init state.
 JsStatement destroy()
          Method to destroy the tabs This will return the element back to its pre-init state.
 void destroy(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
          Method to destroy the tabs within the ajax request
protected  void detachModel()
           
 JsStatement disable()
          Method to disable the tabs
 void disable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
          Method to disable the tabs within the ajax request
 void disable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget, int index)
          Method to disable a tab within the ajax request
 JsStatement disable(int index)
          Method to disable a tab
 JsStatement enable()
          Method to enable the tabs
 void enable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
          Method to enable the tabs within the ajax request
 void enable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget, int index)
          Method to enable a tab within the ajax request
 JsStatement enable(int index)
          Method to enable a tab
 JQueryAjaxOption getAjaxOptions()
           
 JQueryCookieOption getCookie()
           
 int getDefaultSelectedTabIndex()
          Returns the which tab is selected by default.
 ICollectionItemOptions getDisabled()
           
 EventLabelOptions getEvent()
           
 ICollectionItemOptions getFx()
           
 String getIdPrefix()
           
protected  Options getOptions()
          Method retrieving the options of the component
 String getPanelTemplate()
           
 String getSpinner()
           
 String getTabTemplate()
           
 boolean isCache()
           
 boolean isCollapsible()
           
 boolean isDisabled()
           
 JsStatement length()
          Method retrieving the number of tabs of the first matched tab pane
 void load(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget, int index)
          Method to reload the content of an Ajax tab programmatically within the ajax request
 JsStatement load(int index)
          Method to reload the content of an Ajax tab programmatically
 void remove(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget, int index)
          Method to remove a tab within the ajax request
 JsStatement remove(int index)
          Returns the JsStatement to remove the tab at the given index.
 void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
           
 void rotate(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget, int ms)
          Method to set up an automatic rotation through tabs of a tab pane within the ajax request
 void rotate(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget, int ms, boolean continuing)
          Method to set up an automatic rotation through tabs of a tab pane within the ajax request
 JsStatement rotate(int ms)
          Method to set up an automatic rotation through tabs of a tab pane
 JsStatement rotate(int ms, boolean continuing)
          Method to set up an automatic rotation through tabs of a tab pane
 void select(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget, int index)
          Method to select a tab within the ajax request
 JsStatement select(int index)
          Method to select a tab
 Tabs setAddEvent(JsScopeUiEvent add)
          Set the callback when a tab is added
 void setAjaxOptions(JQueryAjaxOption ajaxOptions)
          Additional Ajax options to consider when loading tab content (see $.ajax).
 Tabs setCache(boolean cache)
          Whether or not to cache remote tabs content, e.g.
 Tabs setCollapsible(boolean collapsible)
          Set to true to allow an already selected tab to become unselected again upon reselection.
 void setCookie(JQueryCookieOption cookie)
          Method to store the latest selected tab in a cookie.
 Tabs setDefaultSelectedTabIndex(int selectedTabIndex)
          Sets which tab is displayed.
 Tabs setDisabled(ArrayItemOptions<IntegerItemOptions> disabled)
          Set an array containing the position of the tabs (zero-based index) that should be disabled on initialization
 Tabs setDisabled(boolean disabled)
          Disables (true) or enables (false) the tabs.
 Tabs setDisableEvent(JsScopeUiEvent disable)
          Set the callback when a tab is disabled
 Tabs setEnableEvent(JsScopeUiEvent enable)
          Set the callback when a tab is enabled
 Tabs setEvent(EventLabelOptions event)
          Set the type of event to be used for selecting a tab
 Tabs setFx(ListItemOptions<IListItemOption> fx)
          Enable animations for hiding and showing tab panels.
 Tabs setIdPrefix(String idPrefix)
          If the remote tab, its anchor element that is, has no title attribute to generate an id from, an id/fragment identifier is created from this prefix and a unique id returned by $.data(el), for example "ui-tabs-54".
 Tabs setLoadEvent(JsScopeUiEvent load)
          Set the callback when the content of a remote tab has been loaded
 Tabs setPanelTemplate(String panelTemplate)
          Set the HTML template from which a new tab panel is created in case of adding a tab with the add method or when creating a panel for a remote tab on the fly.
 Tabs setRemoveEvent(JsScopeUiEvent remove)
          Set the callback when a tab is removed
 Tabs setSelectEvent(JsScopeUiEvent select)
          Set the callback when the user is clicking the tab
 Tabs setShowEvent(JsScopeUiEvent show)
          Set the callback when a tab is shown
 Tabs setSpinner(String spinner)
          Set the HTML content of this string is shown in a tab title while remote content is loading.
 Tabs setTabTemplate(String tabTemplate)
          Set the HTML template from which a new tab is created and added.
 JsStatement statement()
          Returns the main JsStatement used to create the plugin.
 void url(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget, int index, String url)
          Method to change the url from which an Ajax (remote) tab will be loaded within the ajax request
 JsStatement url(int index, String url)
          Method to change the url from which an Ajax (remote) tab will be loaded
 JsStatement widget()
          Method to returns the .ui-slider element
 void widget(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
          Method to returns the .ui-slider element within the ajax request
 
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer
getWebPage, getWebRequest
 
Methods inherited from class org.apache.wicket.MarkupContainer
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, hasAssociatedMarkup, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onMarkupAttached, 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, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, 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, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onDetach, onEvent, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, 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, urlFor, urlFor, visitParents, warn, wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UI_TAB

public static final String UI_TAB
Properties on the ui parameter (use it into callback functions) : anchor element of the selected tab

See Also:
Constant Field Values

UI_PANEL

public static final String UI_PANEL
Properties on the ui parameter (use it into callback functions) : element, that contains the selected tab contents

See Also:
Constant Field Values

UI_INDEX

public static final String UI_INDEX
Properties on the ui parameter (use it into callback functions) : zero-based index of the selected tab

See Also:
Constant Field Values
Constructor Detail

Tabs

public Tabs(String id)
Builds a new tabs container with the given wicket id.

Method Detail

detachModel

protected void detachModel()
Overrides:
detachModel in class org.apache.wicket.Component

renderHead

public void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
Specified by:
renderHead in interface org.apache.wicket.markup.html.IHeaderContributor
Overrides:
renderHead in class org.apache.wicket.Component

statement

public JsStatement statement()
Description copied from interface: IWiQueryPlugin
Returns the main JsStatement used to create the plugin.

Specified by:
statement in interface IWiQueryPlugin
Returns:
The JsStatement corresponding to this component.

getOptions

protected Options getOptions()
Method retrieving the options of the component

Returns:
the options

setAjaxOptions

public void setAjaxOptions(JQueryAjaxOption ajaxOptions)
Additional Ajax options to consider when loading tab content (see $.ajax).

Parameters:
ajaxOptions -

getAjaxOptions

public JQueryAjaxOption getAjaxOptions()
Returns:
the ajaxOptions option value

setCookie

public void setCookie(JQueryCookieOption cookie)
Method to store the latest selected tab in a cookie. The cookie is then used to determine the initially selected tab if the selected option is not defined. Requires cookie plugin. The object needs to have key/value pairs of the form the cookie plugin expects as options. Available options (example): { expires: 7, path: '/', domain: 'jquery.com', secure: true }. Since jQuery UI 1.7 it is also possible to define the cookie name being used via name property.

Parameters:
cookie -

getCookie

public JQueryCookieOption getCookie()
Returns:
the cookie option value

setCache

public Tabs setCache(boolean cache)
Whether or not to cache remote tabs content, e.g. load only once or with every click. Cached content is being lazy loaded, e.g once and only once for the first click. Note that to prevent the actual Ajax requests from being cached by the browser you need to provide an extra cache: false flag to ajaxOptions.

Parameters:
cache -
Returns:
instance of the current component

isCache

public boolean isCache()
Returns:
the cache option value

setCollapsible

public Tabs setCollapsible(boolean collapsible)
Set to true to allow an already selected tab to become unselected again upon reselection. (Old version of this option : deselectable)

Parameters:
collapsible -
Returns:
instance of the current component

isCollapsible

public boolean isCollapsible()
Returns:
the collapsible option value

setDefaultSelectedTabIndex

public Tabs setDefaultSelectedTabIndex(int selectedTabIndex)
Sets which tab is displayed.

Returns:
instance of the current component

getDefaultSelectedTabIndex

public int getDefaultSelectedTabIndex()
Returns the which tab is selected by default.


setDisabled

public Tabs setDisabled(boolean disabled)
Disables (true) or enables (false) the tabs. Can be set when initialising (first creating) the tabs.

Parameters:
disabled -
Returns:
instance of the current behavior

isDisabled

public boolean isDisabled()
Returns:
the disabled option

setDisabled

public Tabs setDisabled(ArrayItemOptions<IntegerItemOptions> disabled)
Set an array containing the position of the tabs (zero-based index) that should be disabled on initialization

Parameters:
disabled -
Returns:
instance of the current component

getDisabled

public ICollectionItemOptions getDisabled()
Returns:
the disabled option value

setEvent

public Tabs setEvent(EventLabelOptions event)
Set the type of event to be used for selecting a tab

Parameters:
event -
Returns:
instance of the current component

getEvent

public EventLabelOptions getEvent()
Returns:
the event option value

setFx

public Tabs setFx(ListItemOptions<IListItemOption> fx)
Enable animations for hiding and showing tab panels. The duration option can be a string representing one of the three predefined speeds ("slow", "normal", "fast") or the duration in milliseconds to run an animation (default is "normal").

Parameters:
fx -
Returns:
instance of the current component

getFx

public ICollectionItemOptions getFx()
Returns:
the fx option value

setIdPrefix

public Tabs setIdPrefix(String idPrefix)
If the remote tab, its anchor element that is, has no title attribute to generate an id from, an id/fragment identifier is created from this prefix and a unique id returned by $.data(el), for example "ui-tabs-54".

Parameters:
idPrefix -
Returns:
instance of the current component

getIdPrefix

public String getIdPrefix()
Returns:
the idPrefix value

setPanelTemplate

public Tabs setPanelTemplate(String panelTemplate)
Set the HTML template from which a new tab panel is created in case of adding a tab with the add method or when creating a panel for a remote tab on the fly.

Parameters:
panelTemplate -
Returns:
instance of the current component

getPanelTemplate

public String getPanelTemplate()
Returns:
the panelTemplate value

setSpinner

public Tabs setSpinner(String spinner)
Set the HTML content of this string is shown in a tab title while remote content is loading. Pass in empty string to deactivate that behavior.

Parameters:
spinner -
Returns:
instance of the current component

getSpinner

public String getSpinner()
Returns:
the spinner value

setTabTemplate

public Tabs setTabTemplate(String tabTemplate)
Set the HTML template from which a new tab is created and added. The placeholders #{href} and #{label} are replaced with the url and tab label that are passed as arguments to the add method.

Parameters:
tabTemplate -
Returns:
instance of the current component

getTabTemplate

public String getTabTemplate()
Returns:
the tabTemplate value

setAddEvent

public Tabs setAddEvent(JsScopeUiEvent add)
Set the callback when a tab is added

Parameters:
add -
Returns:
instance of the current component

setDisableEvent

public Tabs setDisableEvent(JsScopeUiEvent disable)
Set the callback when a tab is disabled

Parameters:
disable -
Returns:
instance of the current component

setEnableEvent

public Tabs setEnableEvent(JsScopeUiEvent enable)
Set the callback when a tab is enabled

Parameters:
enable -
Returns:
instance of the current component

setLoadEvent

public Tabs setLoadEvent(JsScopeUiEvent load)
Set the callback when the content of a remote tab has been loaded

Parameters:
load -
Returns:
instance of the current component

setRemoveEvent

public Tabs setRemoveEvent(JsScopeUiEvent remove)
Set the callback when a tab is removed

Parameters:
remove -
Returns:
instance of the current component

setSelectEvent

public Tabs setSelectEvent(JsScopeUiEvent select)
Set the callback when the user is clicking the tab

Parameters:
select -
Returns:
instance of the current component

setShowEvent

public Tabs setShowEvent(JsScopeUiEvent show)
Set the callback when a tab is shown

Parameters:
show -
Returns:
instance of the current component

add

public JsStatement add(int index,
                       String title,
                       org.apache.wicket.Component contentToAdd)
Returns the JsStatement to add the given component in the tab panel.

Parameters:
index - the insertion index.
title - the tab title.
contentToAdd - the Component to add.
Returns:
a non null JsStatement.

add

public void add(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
                int index,
                String title,
                org.apache.wicket.Component contentToAdd)
Add the given component in the tab panel.

Parameters:
ajaxRequestTarget -
index - the insertion index.
title - the tab title.
contentToAdd - the Component to add.

add

public JsStatement add(String title,
                       org.apache.wicket.Component contentToAdd)
Returns the JsStatement to add the given component at the end of the tab panel.

Parameters:
title - the tab title.
contentToAdd - the Component to add.
Returns:
a non null JsStatement.

add

public void add(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
                String title,
                org.apache.wicket.Component contentToAdd)
Add the given component in the tab panel.

Parameters:
ajaxRequestTarget -
title - the tab title.
contentToAdd - the Component to add.

add

public JsStatement add(String url,
                       String label)
Method to add a new tab This will return the element back to its pre-init state.

Parameters:
url - URL
label - Label of the tab
Returns:
the associated JsStatement

add

public void add(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
                String url,
                String label)
Method to add a new tab within the ajax request

Parameters:
ajaxRequestTarget -
url - URL
label - Label of the tab

add

public JsStatement add(String url,
                       String label,
                       int index)
Method to add a new tab This will return the element back to its pre-init state.

Parameters:
url - URL
label - Label of the tab
index - Index of insertion
Returns:
the associated JsStatement

add

public void add(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
                String url,
                String label,
                int index)
Method to add a new tab within the ajax request

Parameters:
ajaxRequestTarget -
url - URL
label - Label of the tab
index - Index of insertion

abort

public JsStatement abort()
Method to terminate all running tab ajax requests and animations This will return the element back to its pre-init state.

Returns:
the associated JsStatement

abort

public void abort(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to terminate all running tab ajax requests and animations within the ajax request

Parameters:
ajaxRequestTarget -

destroy

public JsStatement destroy()
Method to destroy the tabs This will return the element back to its pre-init state.

Returns:
the associated JsStatement

destroy

public void destroy(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to destroy the tabs within the ajax request

Parameters:
ajaxRequestTarget -

disable

public JsStatement disable()
Method to disable the tabs

Returns:
the associated JsStatement

disable

public void disable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to disable the tabs within the ajax request

Parameters:
ajaxRequestTarget -

disable

public JsStatement disable(int index)
Method to disable a tab

Parameters:
index - Index tab to disable
Returns:
the associated JsStatement

disable

public void disable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
                    int index)
Method to disable a tab within the ajax request

Parameters:
index - Index tab to disable
ajaxRequestTarget -

enable

public JsStatement enable()
Method to enable the tabs

Returns:
the associated JsStatement

enable

public void enable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to enable the tabs within the ajax request

Parameters:
ajaxRequestTarget -

enable

public JsStatement enable(int index)
Method to enable a tab

Parameters:
index - Index tab to enable
Returns:
the associated JsStatement

enable

public void enable(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
                   int index)
Method to enable a tab within the ajax request

Parameters:
index - Index tab to enable
ajaxRequestTarget -

length

public JsStatement length()
Method retrieving the number of tabs of the first matched tab pane

Returns:
the associated JsStatement

load

public JsStatement load(int index)
Method to reload the content of an Ajax tab programmatically

Parameters:
index - Index tab to select
Returns:
the associated JsStatement

load

public void load(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
                 int index)
Method to reload the content of an Ajax tab programmatically within the ajax request

Parameters:
index - Index tab to select
ajaxRequestTarget -

remove

public JsStatement remove(int index)
Returns the JsStatement to remove the tab at the given index.

Parameters:
index - the remove index.
Returns:
a non null JsStatement.

remove

public void remove(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
                   int index)
Method to remove a tab within the ajax request

Parameters:
index - the remove index
ajaxRequestTarget -

rotate

public JsStatement rotate(int ms)
Method to set up an automatic rotation through tabs of a tab pane

Parameters:
ms - Amount of time in milliseconds
Returns:
the associated JsStatement

rotate

public void rotate(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
                   int ms)
Method to set up an automatic rotation through tabs of a tab pane within the ajax request

Parameters:
ms - Amount of time in milliseconds
ajaxRequestTarget -

rotate

public JsStatement rotate(int ms,
                          boolean continuing)
Method to set up an automatic rotation through tabs of a tab pane

Parameters:
ms - Amount of time in milliseconds
continuing - Continue the rotation after a tab has been selected by a user
Returns:
the associated JsStatement

rotate

public void rotate(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
                   int ms,
                   boolean continuing)
Method to set up an automatic rotation through tabs of a tab pane within the ajax request

Parameters:
ms - Amount of time in milliseconds
continuing - Continue the rotation after a tab has been selected by a user
ajaxRequestTarget -

select

public JsStatement select(int index)
Method to select a tab

Parameters:
index - Index tab to select
Returns:
the associated JsStatement

select

public void select(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
                   int index)
Method to select a tab within the ajax request

Parameters:
index - Index tab to select
ajaxRequestTarget -

url

public JsStatement url(int index,
                       String url)
Method to change the url from which an Ajax (remote) tab will be loaded

Parameters:
index - Index tab to select
url - URL
Returns:
the associated JsStatement

url

public void url(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget,
                int index,
                String url)
Method to change the url from which an Ajax (remote) tab will be loaded within the ajax request

Parameters:
index - Index tab to select
url - URL
ajaxRequestTarget -

widget

public JsStatement widget()
Method to returns the .ui-slider element

Returns:
the associated JsStatement

widget

public void widget(org.apache.wicket.ajax.AjaxRequestTarget ajaxRequestTarget)
Method to returns the .ui-slider element within the ajax request

Parameters:
ajaxRequestTarget -


Copyright © 2012. All Rights Reserved.