public class ImageFloatEditor extends AbstractFloatEditor implements DialogActionListener
构造器和说明 |
---|
ImageFloatEditor()
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
void |
doCancel() |
void |
doOk() |
java.awt.Component |
getFloatEditorComponent(Grid grid,
FloatElement floatElement,
int resolution)
Sets an initial
floatElement for the editor. |
java.lang.Object |
getFloatEditorValue()
Return the value of the FloatEditor.
|
acceptKeyEventToStartFloatEditing, addFloatEditorListener, cancelFloatEditing, fireEditingCanceled, fireEditingStopped, removeFloatEditorListener, stopFloatEditing
public java.lang.Object getFloatEditorValue() throws java.lang.Exception
getFloatEditorValue
在接口中 FloatEditor
java.lang.Exception
public 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.getFloatEditorComponent
在接口中 FloatEditor
grid
- the Grid
that is asking the
editor to edit; can be null
floatElement
- the value of the float to be edited; it is
up to the specific editor to interpret
and draw the value.public void doOk()
doOk
在接口中 DialogActionListener
public void doCancel()
doCancel
在接口中 DialogActionListener