public interface FloatEditor
限定符和类型 | 方法和说明 |
---|---|
boolean |
acceptKeyEventToStartFloatEditing(java.awt.event.KeyEvent evt)
Accept keyevent to start editing.
|
void |
addFloatEditorListener(FloatEditorListener floatEditorListener)
Adds a listener to the list that's notified when the editor
stops, or cancels editing.
|
void |
cancelFloatEditing()
Tells the editor to cancel editing and not accept any partially
edited value.
|
java.awt.Component |
getFloatEditorComponent(Grid grid,
FloatElement floatElement,
int resolution)
Sets an initial
floatElement for the editor. |
java.lang.Object |
getFloatEditorValue()
Returns the value contained in the editor.
|
void |
removeFloatEditorListener(FloatEditorListener floatEditorListener)
Removes a listener from the list that's notified
|
boolean |
stopFloatEditing()
Tells the editor to stop editing and accept any partially edited
value as the value of the editor.
|
java.lang.Object getFloatEditorValue() throws java.lang.Exception
java.lang.Exception
java.awt.Component getFloatEditorComponent(Grid grid, FloatElement floatElement, int resolution)
floatElement
for the editor. This will cause
the editor to stopFloatEditing
and lose any partially
edited value if the editor is editing when this method is called. Returns the component that should be added to the client's
Component
hierarchy. Once installed in the client's
hierarchy this component will then be able to draw and receive
user input.grid
- the Grid
that is asking the
editor to edit; can be null
floatElement
- the value of the FloatElement to be edited; it is
up to the specific editor to interpret
and draw the value.boolean acceptKeyEventToStartFloatEditing(java.awt.event.KeyEvent evt)
boolean stopFloatEditing()
void cancelFloatEditing()
void addFloatEditorListener(FloatEditorListener floatEditorListener)
floatEditorListener
- the FloatEditorListenervoid removeFloatEditorListener(FloatEditorListener floatEditorListener)
floatEditorListener
- the FloatEditorListener