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 buttonscom.badlogic.gdx.scenes.scene2d.utils.Drawable
background
optionalcom.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle
cancelButtonStyle
the styles of the buttonscom.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle
chooseButtonStyle
the styles of the buttonscom.badlogic.gdx.scenes.scene2d.ui.ScrollPane.ScrollPaneStyle
contentsPaneStyle
optionalcom.badlogic.gdx.scenes.scene2d.ui.List.ListStyle
contentsStyle
the style ofListFileChooser.contents
com.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle
openButtonStyle
the styles of the buttonscom.badlogic.gdx.scenes.scene2d.ui.Button.ButtonStyle
parentButtonStyle
the styles of the buttonscom.badlogic.gdx.scenes.scene2d.ui.TextField.TextFieldStyle
pathFieldStyle
the style ofListFileChooser.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 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.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
- thebackButtonStyle
,cancelButtonStyle
,chooseButtonStyle
,openButtonStyle
andparentButtonStyle
to set
-
write
public void write(com.badlogic.gdx.utils.Json json)- Specified by:
write
in interfacecom.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 interfacecom.badlogic.gdx.utils.Json.Serializable
-