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 Object
implements com.badlogic.gdx.utils.Json.Serializable
defines styles for the widgets of a
ListFileChooser-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStylethe styles of the buttonscom.badlogic.gdx.scenes.scene2d.utils.Drawableoptionalcom.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStylethe styles of the buttonscom.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStylethe styles of the buttonscom.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStyleoptionalcom.badlogic.gdx.scenes.scene2d.ui.List.ListStylethe style ofListFileChooser.contentscom.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStylethe styles of the buttonscom.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStylethe styles of the buttonscom.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldStylethe style ofListFileChooser.pathFieldfloatthe spacing between the Widgets -
Constructor Summary
ConstructorsConstructorDescriptionStyle()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 TypeMethodDescriptionvoidread(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)
-
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
-