Package demo
Class TextEntryDemoState
java.lang.Object
com.jme3.app.state.BaseAppState
demo.TextEntryDemoState
- All Implemented Interfaces:
AppState
A demo of a Textfield that allows direct entry as well as provides
some buttons for manipulating the DocumentModel separately.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
back()
protected void
cleanup
(Application app) Called after the app state is detached or during application shutdown if the state is still attached.protected void
close()
Added this to test the bug where elements removed from the scene graph would still retain focus...protected void
delete()
protected void
end()
protected void
forward()
protected void
home()
protected void
initialize
(Application app) Called during initialization once the app state is attached and before onEnable() is called.protected void
insert()
protected void
Called when the state was previously enabled but is now disabled either because setEnabled(false) was called or the state is being cleaned up.protected void
onEnable()
Called when the state is fully enabled, ie: is attached and isEnabled() is true or when the setEnabled() status changes after the state is attached.Methods inherited from class com.jme3.app.state.BaseAppState
cleanup, getApplication, getId, getState, getState, getState, getState, getStateManager, initialize, isEnabled, isInitialized, postRender, render, setEnabled, setId, stateAttached, stateDetached, update
-
Constructor Details
-
TextEntryDemoState
public TextEntryDemoState()
-
-
Method Details
-
initialize
Description copied from class:BaseAppState
Called during initialization once the app state is attached and before onEnable() is called.- Specified by:
initialize
in classBaseAppState
- Parameters:
app
- the application
-
cleanup
Description copied from class:BaseAppState
Called after the app state is detached or during application shutdown if the state is still attached. onDisable() is called before this cleanup() method if the state is enabled at the time of cleanup.- Specified by:
cleanup
in classBaseAppState
- Parameters:
app
- the application
-
onEnable
protected void onEnable()Description copied from class:BaseAppState
Called when the state is fully enabled, ie: is attached and isEnabled() is true or when the setEnabled() status changes after the state is attached.- Specified by:
onEnable
in classBaseAppState
-
onDisable
protected void onDisable()Description copied from class:BaseAppState
Called when the state was previously enabled but is now disabled either because setEnabled(false) was called or the state is being cleaned up.- Specified by:
onDisable
in classBaseAppState
-
home
protected void home() -
end
protected void end() -
forward
protected void forward() -
back
protected void back() -
insert
protected void insert() -
delete
protected void delete() -
close
protected void close()Added this to test the bug where elements removed from the scene graph would still retain focus... thus their focus actions like 'space' to activate buttons would still be active.
-