public interface ValueEditor<T>
extends com.simsilica.lemur.core.VersionedObject<T>
Modifier and Type | Method and Description |
---|---|
void |
configureStyle(com.simsilica.lemur.style.ElementId elementId,
java.lang.String style)
Called by the using component to set the preferred ElementId
and style for the editor.
|
com.simsilica.lemur.Panel |
getEditor()
Returns the GUI element that is providing editing support.
|
T |
getObject()
Returns the current committed value of the editor.
|
boolean |
isActive()
Returns true if this editor is still active.
|
void |
setObject(T object)
Sets the initial value of the object to be edited.
|
com.simsilica.lemur.Panel |
startEditing(T initialValue)
Starts editing and returns the Panel that should be added
to the parent to facilitate that editing.
|
boolean |
updateState(float tpf)
Called to update the state of the editor and returns true
or false if editing should continue.
|
void setObject(T object)
T getObject()
getObject
in interface com.simsilica.lemur.core.VersionedObject<T>
boolean updateState(float tpf)
boolean isActive()
void configureStyle(com.simsilica.lemur.style.ElementId elementId, java.lang.String style)
com.simsilica.lemur.Panel startEditing(T initialValue)
com.simsilica.lemur.Panel getEditor()