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.ButtonStylebackButtonStylethe styles of the buttonscom.badlogic.gdx.scenes.scene2d.utils.Drawablebackgroundoptionalcom.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStylecancelButtonStylethe styles of the buttonscom.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStylechooseButtonStylethe styles of the buttonscom.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStylecontentsPaneStyleoptionalcom.badlogic.gdx.scenes.scene2d.ui.List.ListStylecontentsStylethe style ofListFileChooser.contentscom.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyleopenButtonStylethe styles of the buttonscom.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyleparentButtonStylethe styles of the buttonscom.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldStylepathFieldStylethe style ofListFileChooser.pathFieldfloatspacethe 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 voidread(com.badlogic.gdx.utils.Json json, com.badlogic.gdx.utils.JsonValue jsonData)voidset(ListFileChooser.Style style)voidsetButtonStyles(com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle style)voidwrite(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 pathFieldStylethe style ofListFileChooser.pathField -
contentsStyle
public com.badlogic.gdx.scenes.scene2d.ui.List.ListStyle contentsStylethe style ofListFileChooser.contents -
chooseButtonStyle
public com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle chooseButtonStylethe styles of the buttons -
openButtonStyle
public com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle openButtonStylethe styles of the buttons -
cancelButtonStyle
public com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle cancelButtonStylethe styles of the buttons -
backButtonStyle
public com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle backButtonStylethe styles of the buttons -
parentButtonStyle
public com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle parentButtonStylethe styles of the buttons -
space
public float spacethe spacing between the Widgets -
contentsPaneStyle
public com.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStyle contentsPaneStyleoptional -
background
public com.badlogic.gdx.scenes.scene2d.utils.Drawable backgroundoptional
-
-
Constructor Details
-
Style
public 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
- Parameters:
style- theListFileChooser.Styleto 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- thebackButtonStyle,cancelButtonStyle,chooseButtonStyle,openButtonStyleandparentButtonStyleto set
-
write
public void write(com.badlogic.gdx.utils.Json json)- Specified by:
writein interfacecom.badlogic.gdx.utils.Json.Serializable
-
read
public void read(com.badlogic.gdx.utils.Json json, com.badlogic.gdx.utils.JsonValue jsonData)- Specified by:
readin interfacecom.badlogic.gdx.utils.Json.Serializable
-