Class TabContainer
- java.lang.Object
-
- be.yildizgames.common.util.BaseRegisterable
-
- be.yildizgames.module.graphic.gui.internal.BaseElement
-
- be.yildizgames.module.graphic.gui.internal.BaseWidget
-
- be.yildizgames.module.graphic.gui.BaseContainerChild
-
- be.yildizgames.module.graphic.gui.table.TabContainer
-
- All Implemented Interfaces:
be.yildizgames.common.util.Registerable,ContainerChild,Element,Widget
public final class TabContainer extends BaseContainerChild
A tab container contains a list of tab panel, only the selected is visible- Author:
- Grégory Van den Borre
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface be.yildizgames.module.graphic.gui.internal.Element
Element.Alignment
-
-
Field Summary
-
Fields inherited from class be.yildizgames.module.graphic.gui.internal.BaseWidget
emptyZones
-
Fields inherited from class be.yildizgames.module.graphic.gui.internal.BaseElement
MAX_OPACITY, virtualHeight
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()Delete the widget.ContainergetContainer(int tab)protected voidhideImpl()Implementation to set the widget invisible.protected voidhighlightImpl(boolean highlightState)Implementation to set the widget highlight.protected ElementsetPositionImpl(int newLeft, int newTop)Implementation to update the widget position.protected voidsetSizeImpl(int newWidth, int newHeight)Implementation to set the widget size.protected voidshowImpl()Implementation to set the widget visible.-
Methods inherited from class be.yildizgames.module.graphic.gui.BaseContainerChild
addEmptyZoneImpl, detachFromParent, getParent, isContainer, setLeftFromParent, setLeftFromParent, setStatic, setTopFromParent, setTopFromParent, setUnaffectedByZoom, updateSizeAfterZoom
-
Methods inherited from class be.yildizgames.module.graphic.gui.internal.BaseWidget
addEmptyZone, addKeyboardListener, addMouseDoubleLeftClickListener, addMouseDragListener, addMouseLeftClickListener, addMouseMoveListener, addMouseReleaseListener, addMouseRightClickListener, addMouseWheelListener, addOnMouseOverListener, align, contains, contains, disableEmptyZone, enableEmptyZone, findParent, focus, forceContainsFalse, getAbsoluteLeft, getAbsolutePosition, getAbsoluteTop, highlight, isFocusable, isMouseOver, keyPressed, mouseLeftClick, playAnimation, registerAnimation, removeAllClickListeners, setFocusable, setHighlightable, setMouseClickActive, setMouseOver, specialKeyPressed, stopAnimation, toString
-
Methods inherited from class be.yildizgames.module.graphic.gui.internal.BaseElement
addToLeft, addToPosition, addToTop, getBottom, getCoordinates, getHeight, getLeft, getOpacity, getRight, getTop, getWidth, hide, isVisible, multiplySize, resetVirtualHeight, setCoordinates, setHeight, setLeft, setLeft, setLeft, setLeft, setPosition, setPosition, setSize, setSize, setTop, setTop, setTop, setTop, setVirtualHeight, setVisible, setWidth, show, updateAddPositionValue
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface be.yildizgames.module.graphic.gui.ContainerChild
updateAddPositionValue
-
Methods inherited from interface be.yildizgames.module.graphic.gui.internal.Element
addToLeft, addToPosition, addToTop, getBottom, getCoordinates, getHeight, getLeft, getRight, getTop, getWidth, hide, isVisible, resetVirtualHeight, setCoordinates, setHeight, setLeft, setLeft, setLeft, setLeft, setPosition, setPosition, setSize, setSize, setTop, setTop, setTop, setTop, setVirtualHeight, setVisible, setWidth, show
-
Methods inherited from interface be.yildizgames.module.graphic.gui.Widget
addEmptyZone, addKeyboardListener, addMouseDoubleLeftClickListener, addMouseDragListener, addMouseLeftClickListener, addMouseMoveListener, addMouseReleaseListener, addMouseRightClickListener, addMouseWheelListener, addOnMouseOverListener, align, contains, contains, focus, getAbsoluteLeft, getAbsoluteTop, highlight, isFocusable, playAnimation, registerAnimation, removeAllClickListeners, stopAnimation
-
-
-
-
Constructor Detail
-
TabContainer
public TabContainer(String name, be.yildizgames.module.coordinate.BaseCoordinate coordinates, View[] containers, Button[] tabSelectors, Image background, Container container)
Full container.- Parameters:
name- Tab container name, must be unique.coordinates- Tab container size and position.containers- List of containers to use.tabSelectors- List of buttons used as tabs.background- Background image.container- Container holding this tab container.
-
-
Method Detail
-
delete
public void delete()
Description copied from class:BaseElementDelete the widget.- Specified by:
deletein classBaseElement
-
highlightImpl
protected void highlightImpl(boolean highlightState)
Description copied from class:BaseWidgetImplementation to set the widget highlight.- Specified by:
highlightImplin classBaseWidget- Parameters:
highlightState- Highlight state.
-
showImpl
protected void showImpl()
Description copied from class:BaseElementImplementation to set the widget visible.- Specified by:
showImplin classBaseElement
-
hideImpl
protected void hideImpl()
Description copied from class:BaseElementImplementation to set the widget invisible.- Specified by:
hideImplin classBaseElement
-
setSizeImpl
protected void setSizeImpl(int newWidth, int newHeight)Description copied from class:BaseElementImplementation to set the widget size.- Specified by:
setSizeImplin classBaseElement- Parameters:
newWidth- New width.newHeight- New height.
-
setPositionImpl
protected Element setPositionImpl(int newLeft, int newTop)
Description copied from class:BaseElementImplementation to update the widget position.- Specified by:
setPositionImplin classBaseElement- Parameters:
newLeft- New widget x position.newTop- New widget y position.- Returns:
- This object for chaining.
-
getContainer
public Container getContainer(int tab)
-
-