public class OptionPanelState
extends com.jme3.app.state.BaseAppState
Constructor and Description |
---|
OptionPanelState() |
OptionPanelState(com.simsilica.lemur.style.ElementId defaultElementId,
java.lang.String style) |
OptionPanelState(com.jme3.scene.Node guiNode) |
OptionPanelState(java.lang.String style) |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanup(com.jme3.app.Application app) |
void |
close()
Closes an open OptionPanel if one is currently open.
|
OptionPanel |
getCurrent()
Returns the currently displayed OptionPanel or null if
no option panel is visible.
|
com.jme3.scene.Node |
getGuiNode()
Returns the GUI node that will be used to display the option
panel.
|
protected java.lang.String |
getName(java.lang.Throwable t) |
java.lang.String |
getStyle()
Returns the style that will be used for created OptionPanels.
|
protected void |
initialize(com.jme3.app.Application app) |
protected void |
onDisable() |
protected void |
onEnable() |
void |
setGuiNode(com.jme3.scene.Node guiNode)
Sets the GUI node that will be used to display the option
panel.
|
void |
setStyle(java.lang.String style)
Sets the style that will be used for created OptionPanels.
|
void |
show(OptionPanel panel)
Modally shows the specified OptionPanel in the guiNode as defined by
getGuiNode().
|
void |
show(java.lang.String title,
java.lang.String message,
Action... options)
Creates and displays a modal OptionPanel with the specified
settings.
|
void |
show(java.lang.String title,
java.lang.String message,
com.simsilica.lemur.style.ElementId elementId,
Action... options)
Creates and displays a modal OptionPanel with the specified
settings.
|
void |
showError(java.lang.String title,
java.lang.Throwable t)
Creates and displays a model OptionPanel with the specified
error information.
|
void |
showError(java.lang.String title,
java.lang.Throwable t,
com.simsilica.lemur.style.ElementId elementId)
Creates and displays a model OptionPanel with the specified
error information.
|
void |
update(float tpf) |
public OptionPanelState()
public OptionPanelState(java.lang.String style)
public OptionPanelState(com.simsilica.lemur.style.ElementId defaultElementId, java.lang.String style)
public OptionPanelState(com.jme3.scene.Node guiNode)
public void show(java.lang.String title, java.lang.String message, Action... options)
public void show(java.lang.String title, java.lang.String message, com.simsilica.lemur.style.ElementId elementId, Action... options)
protected java.lang.String getName(java.lang.Throwable t)
public void showError(java.lang.String title, java.lang.Throwable t)
public void showError(java.lang.String title, java.lang.Throwable t, com.simsilica.lemur.style.ElementId elementId)
public void show(OptionPanel panel)
public void close()
public OptionPanel getCurrent()
public void setStyle(java.lang.String style)
public java.lang.String getStyle()
public void setGuiNode(com.jme3.scene.Node guiNode)
public com.jme3.scene.Node getGuiNode()
protected void initialize(com.jme3.app.Application app)
initialize
in class com.jme3.app.state.BaseAppState
protected void cleanup(com.jme3.app.Application app)
cleanup
in class com.jme3.app.state.BaseAppState
protected void onEnable()
onEnable
in class com.jme3.app.state.BaseAppState
public void update(float tpf)
update
in interface com.jme3.app.state.AppState
update
in class com.jme3.app.state.BaseAppState
protected void onDisable()
onDisable
in class com.jme3.app.state.BaseAppState