public class RichTextCellEditor extends AbstractCellEditor implements DialogActionListener
| 构造器和说明 |
|---|
RichTextCellEditor(ElementCasePane<? extends TemplateElementCase> ePane) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
doCancel()
取消
|
void |
doOk()
确定
|
java.awt.Component |
getCellEditorComponent(Grid grid,
TemplateCellElement cellElement,
int resolution)
Sets an initial
cellElement for the editor. |
java.lang.Object |
getCellEditorValue()
Returns the value contained in the editor.
|
addCellEditorListener, cancelCellEditing, fireEditingCanceled, fireEditingStopped, getLocationOnCellElement, removeCellEditorListener, setLocationOnCellElement, stopCellEditingpublic RichTextCellEditor(ElementCasePane<? extends TemplateElementCase> ePane)
public java.awt.Component getCellEditorComponent(Grid grid, TemplateCellElement cellElement, int resolution)
CellEditorcellElement for the editor. This will cause
the editor to stopCellEditing 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.getCellEditorComponent 在接口中 CellEditorgrid - the Grid that is asking the
editor to edit; can be nullcellElement - the value of the cell to be edited; it is
up to the specific editor to interpret
and draw the value.resolution - the current screen resolutionpublic java.lang.Object getCellEditorValue()
throws java.lang.Exception
CellEditorgetCellEditorValue 在接口中 CellEditorjava.lang.Exceptionpublic void doOk()
doOk 在接口中 DialogActionListenerpublic void doCancel()
doCancel 在接口中 DialogActionListener