Package com.xwiki.macros.tab.macro
Class TabGroupMacroParameters
java.lang.Object
com.xwiki.macros.tab.macro.TabGroupMacroParameters
Parameters for
TabGroupMacro.- Since:
- 1.24.0
- Version:
- $Id: $
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetId()intgetWidth()booleanvoidsetCssClass(String cssClass) voidsetEffectDuration(int effectDuration) voidsetEffectType(TransitionEffect effectType) voidvoidvoidsetLoopCards(boolean loopCards) voidsetNextAfter(int nextAfter) voidsetTabLocation(TabGroupMacroParameters.Location tabLocation) void
-
Constructor Details
-
TabGroupMacroParameters
public TabGroupMacroParameters()
-
-
Method Details
-
getId
- Returns:
- the id of the element.
-
setId
- Parameters:
id- the id of the element.
-
getTabLocation
- Returns:
- the tabs location related to the macro content.
-
setTabLocation
- Parameters:
tabLocation- the tabs location related to the macro content.
-
getWidth
- Returns:
- with of the macro.
-
setWidth
- Parameters:
width- of the macro.
-
getHeight
- Returns:
- height of the macro.
-
setHeight
- Parameters:
height- height of the macro.
-
getCssClass
- Returns:
- the css class to add on the main element.
-
setCssClass
- Parameters:
cssClass- the css class to add on the main element.
-
getNextAfter
public int getNextAfter()- Returns:
- The number of seconds the tab will stay visible before moving to the next one.
-
setNextAfter
public void setNextAfter(int nextAfter) - Parameters:
nextAfter- The number of seconds the tab will stay visible before moving to the next one.
-
isLoopCards
public boolean isLoopCards()- Returns:
- If true, the tab will loop back to the beginning from the last tab.
-
setLoopCards
public void setLoopCards(boolean loopCards) - Parameters:
loopCards- If true, the tab will loop back to the beginning from the last tab.
-
getEffectType
- Returns:
- The transition animation between each tab.
-
setEffectType
- Parameters:
effectType- The transition animation between each tab.
-
getEffectDuration
public int getEffectDuration()- Returns:
- The transition animation duration.
-
setEffectDuration
public void setEffectDuration(int effectDuration) - Parameters:
effectDuration- The transition animation duration.
-