Class SelectBox.SelectBoxScrollPane<T>
- java.lang.Object
-
- com.badlogic.gdx.scenes.scene2d.Actor
-
- com.badlogic.gdx.scenes.scene2d.Group
-
- com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup
-
- com.badlogic.gdx.scenes.scene2d.ui.ScrollPane
-
- com.badlogic.gdx.scenes.scene2d.ui.SelectBox.SelectBoxScrollPane<T>
-
public static class SelectBox.SelectBoxScrollPane<T> extends ScrollPane
The scroll pane shown when a select box is open.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.badlogic.gdx.scenes.scene2d.ui.ScrollPane
ScrollPane.ScrollPaneStyle
-
-
Constructor Summary
Constructors Constructor Description SelectBoxScrollPane(SelectBox<T> selectBox)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidact(float delta)Updates the actor based on time.voiddraw(Batch batch, float parentAlpha)If this method is overridden, the super method orWidgetGroup.validate()should be called to ensure the widget group is laid out.List<T>getList()SelectBox<T>getSelectBox()voidhide()protected List<T>newList()Allows a subclass to customize the select box list.protected voidsetStage(Stage stage)Called by the framework when this actor or any ascendant is added to a group that is in the stage.voidshow(Stage stage)-
Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.ScrollPane
addActor, addActorAfter, addActorAt, addActorBefore, addCaptureListener, addScrollListener, cancel, cancelTouchFocus, drawDebug, drawScrollBars, fling, getActor, getFadeScrollBars, getFlickScrollListener, getMaxX, getMaxY, getMinHeight, getMinWidth, getMouseWheelX, getMouseWheelY, getOverscrollDistance, getPrefHeight, getPrefWidth, getScrollBarHeight, getScrollBarWidth, getScrollHeight, getScrollPercentX, getScrollPercentY, getScrollWidth, getScrollX, getScrollY, getStyle, getVariableSizeKnobs, getVelocityX, getVelocityY, getVisualScrollPercentX, getVisualScrollPercentY, getVisualScrollX, getVisualScrollY, getWidget, hit, isBottomEdge, isDragging, isFlinging, isForceScrollX, isForceScrollY, isLeftEdge, isPanning, isRightEdge, isScrollingDisabledX, isScrollingDisabledY, isScrollX, isScrollY, isTopEdge, layout, removeActor, removeActor, removeActorAt, scrollTo, scrollTo, scrollX, scrollY, setActor, setCancelTouchFocus, setClamp, setFadeScrollBars, setFlickScroll, setFlickScrollTapSquareSize, setFlingTime, setForceScroll, setOverscroll, setScrollBarPositions, setScrollbarsOnTop, setScrollbarsVisible, setScrollBarTouch, setScrollingDisabled, setScrollPercentX, setScrollPercentY, setScrollX, setScrollY, setSmoothScrolling, setStyle, setupFadeScrollBars, setupOverscroll, setVariableSizeKnobs, setVelocityX, setVelocityY, setWidget, updateVisualScroll, visualScrollX, visualScrollY
-
Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup
childrenChanged, getMaxHeight, getMaxWidth, invalidate, invalidateHierarchy, needsLayout, pack, setFillParent, setLayoutEnabled, sizeChanged, validate
-
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Group
applyTransform, applyTransform, clear, clear, clearChildren, clearChildren, computeTransform, debugAll, drawChildren, drawDebugChildren, findActor, getChild, getChildren, getCullingArea, hasChildren, isTransform, localToDescendantCoordinates, resetTransform, resetTransform, setCullingArea, setDebug, setTransform, swapActor, swapActor, toString
-
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor
addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebugBounds, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, getX, getX, getY, getY, getZIndex, hasActions, hasKeyboardFocus, hasParent, hasScrollFocus, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, scaleChanged, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront
-
-
-
-
Method Detail
-
newList
protected List<T> newList()
Allows a subclass to customize the select box list. The default implementation returns a list that delegatesList.toString(Object)toSelectBox.toString(Object).
-
show
public void show(Stage stage)
-
hide
public void hide()
-
draw
public void draw(Batch batch, float parentAlpha)
Description copied from class:WidgetGroupIf this method is overridden, the super method orWidgetGroup.validate()should be called to ensure the widget group is laid out.- Overrides:
drawin classScrollPaneparentAlpha- The parent alpha, to be multiplied with this actor's alpha, allowing the parent's alpha to affect all children.
-
act
public void act(float delta)
Description copied from class:ActorUpdates the actor based on time. Typically this is called each frame byStage.act(float).The default implementation calls
Action.act(float)on each action and removes actions that are complete.- Overrides:
actin classScrollPane- Parameters:
delta- Time in seconds since the last frame.
-
setStage
protected void setStage(Stage stage)
Description copied from class:ActorCalled by the framework when this actor or any ascendant is added to a group that is in the stage.
-
-