Class SelectBox.SelectBoxScrollPane<T>

  • All Implemented Interfaces:
    Cullable, Layout
    Enclosing class:
    SelectBox<T>

    public static class SelectBox.SelectBoxScrollPane<T>
    extends ScrollPane
    The scroll pane shown when a select box is open.
    • Constructor Detail

      • SelectBoxScrollPane

        public SelectBoxScrollPane​(SelectBox<T> selectBox)
    • Method Detail

      • show

        public void show​(Stage stage)
      • hide

        public void hide()
      • draw

        public void draw​(Batch batch,
                         float parentAlpha)
        Description copied from class: WidgetGroup
        If this method is overridden, the super method or WidgetGroup.validate() should be called to ensure the widget group is laid out.
        Overrides:
        draw in class ScrollPane
        parentAlpha - 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: Actor
        Updates the actor based on time. Typically this is called each frame by Stage.act(float).

        The default implementation calls Action.act(float) on each action and removes actions that are complete.

        Overrides:
        act in class ScrollPane
        Parameters:
        delta - Time in seconds since the last frame.
      • setStage

        protected void setStage​(Stage stage)
        Description copied from class: Actor
        Called by the framework when this actor or any ascendant is added to a group that is in the stage.
        Overrides:
        setStage in class Group
        Parameters:
        stage - May be null if the actor or any ascendant is no longer in a stage.
      • getList

        public List<T> getList()
      • getSelectBox

        public SelectBox<T> getSelectBox()