Class ListFileChooser.Style

java.lang.Object
net.dermetfan.gdx.scenes.scene2d.ui.ListFileChooser.Style
All Implemented Interfaces:
com.badlogic.gdx.utils.Json.Serializable
Enclosing class:
ListFileChooser

public static class ListFileChooser.Style
extends java.lang.Object
implements com.badlogic.gdx.utils.Json.Serializable
defines styles for the widgets of a ListFileChooser
  • Field Summary

    Fields
    Modifier and Type Field Description
    com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle backButtonStyle
    the styles of the buttons
    com.badlogic.gdx.scenes.scene2d.utils.Drawable background
    optional
    com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle cancelButtonStyle
    the styles of the buttons
    com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle chooseButtonStyle
    the styles of the buttons
    com.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStyle contentsPaneStyle
    optional
    com.badlogic.gdx.scenes.scene2d.ui.List.ListStyle contentsStyle
    the style of ListFileChooser.contents
    com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle openButtonStyle
    the styles of the buttons
    com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle parentButtonStyle
    the styles of the buttons
    com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldStyle pathFieldStyle
    the style of ListFileChooser.pathField
    float space
    the spacing between the Widgets
  • Constructor Summary

    Constructors
    Constructor Description
    Style()  
    Style​(com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldStyle pathFieldStyle, com.badlogic.gdx.scenes.scene2d.ui.List.ListStyle contentsStyle, com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle chooseButtonStyle, com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle openButtonStyle, com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle cancelButtonStyle, com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle backButtonStyle, com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle parentButtonStyle, com.badlogic.gdx.scenes.scene2d.utils.Drawable background)  
    Style​(com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldStyle textFieldStyle, com.badlogic.gdx.scenes.scene2d.ui.List.ListStyle listStyle, com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle buttonStyles, com.badlogic.gdx.scenes.scene2d.utils.Drawable background)  
    Style​(ListFileChooser.Style style)  
  • Method Summary

    Modifier and Type Method Description
    void read​(com.badlogic.gdx.utils.Json json, com.badlogic.gdx.utils.JsonValue jsonData)  
    void set​(ListFileChooser.Style style)  
    void setButtonStyles​(com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle style)  
    void write​(com.badlogic.gdx.utils.Json json)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • pathFieldStyle

      public com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldStyle pathFieldStyle
      the style of ListFileChooser.pathField
    • contentsStyle

      public com.badlogic.gdx.scenes.scene2d.ui.List.ListStyle contentsStyle
      the style of ListFileChooser.contents
    • chooseButtonStyle

      public com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle chooseButtonStyle
      the styles of the buttons
    • openButtonStyle

      public com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle openButtonStyle
      the styles of the buttons
    • cancelButtonStyle

      public com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle cancelButtonStyle
      the styles of the buttons
    • backButtonStyle

      public com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle backButtonStyle
      the styles of the buttons
    • parentButtonStyle

      public com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle parentButtonStyle
      the styles of the buttons
    • space

      public float space
      the spacing between the Widgets
    • contentsPaneStyle

      public com.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStyle contentsPaneStyle
      optional
    • background

      public com.badlogic.gdx.scenes.scene2d.utils.Drawable background
      optional
  • Constructor Details

    • Style

      public Style()
    • Style

      public Style​(ListFileChooser.Style style)
    • Style

      public Style​(com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldStyle textFieldStyle, com.badlogic.gdx.scenes.scene2d.ui.List.ListStyle listStyle, com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle buttonStyles, com.badlogic.gdx.scenes.scene2d.utils.Drawable background)
    • Style

      public Style​(com.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldStyle pathFieldStyle, com.badlogic.gdx.scenes.scene2d.ui.List.ListStyle contentsStyle, com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle chooseButtonStyle, com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle openButtonStyle, com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle cancelButtonStyle, com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle backButtonStyle, com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle parentButtonStyle, com.badlogic.gdx.scenes.scene2d.utils.Drawable background)
  • Method Details

    • set

      public void set​(ListFileChooser.Style style)
      Parameters:
      style - the ListFileChooser.Style to set this instance to (giving all fields the same value)
    • setButtonStyles

      public void setButtonStyles​(com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle style)
      Parameters:
      style - the backButtonStyle, cancelButtonStyle, chooseButtonStyle, openButtonStyle and parentButtonStyle to set
    • write

      public void write​(com.badlogic.gdx.utils.Json json)
      Specified by:
      write in interface com.badlogic.gdx.utils.Json.Serializable
    • read

      public void read​(com.badlogic.gdx.utils.Json json, com.badlogic.gdx.utils.JsonValue jsonData)
      Specified by:
      read in interface com.badlogic.gdx.utils.Json.Serializable