NiftyEventpublic class TabSelectedEvent extends java.lang.Object implements NiftyEvent
| Constructor | Description |
|---|---|
TabSelectedEvent(TabGroup tabGroup,
Tab tabControl,
int tabIndex) |
+ Create a instance of this event and set all the values that are transferred in such a event.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getIndex() |
Get the index of the tab that was set visible.
|
TabGroup |
getParentGroup() |
Get the tab group that is the parent of the tab that became visible.
|
Tab |
getTab() |
Get the tab that became visible.
|
public TabSelectedEvent(@Nonnull
TabGroup tabGroup,
@Nonnull
Tab tabControl,
int tabIndex)
tabGroup - the tab group control that is the parent of the effected tabtabControl - the tab that is now visibletabIndex - the index of the tab that is now visible@Nonnull public TabGroup getParentGroup()
@Nonnull public Tab getTab()
null in case no tab is visiblepublic int getIndex()
Copyright © 2018. All rights reserved.