|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.ui.awt.impl.AwtResource<C>
com.sibvisions.rad.ui.awt.impl.AwtComponent<C>
com.sibvisions.rad.ui.awt.impl.AwtContainer<C>
com.sibvisions.rad.ui.swing.impl.SwingComponent<JVxEditor>
com.sibvisions.rad.ui.swing.impl.control.SwingEditor
public class SwingEditor
The SwingEditor
is the IEditor
implementation for swing.
JVxEditor
Field Summary |
---|
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtComponent |
---|
eventComponentMoved, eventComponentResized, eventSource, factory, parent |
Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
---|
resource |
Fields inherited from interface javax.rad.ui.IAlignmentConstants |
---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
Constructor Summary | |
---|---|
SwingEditor()
Creates a new instance of SwingEditor . |
Method Summary | |
---|---|
void |
cancelEditing()
Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook . |
ICellEditor |
getCellEditor()
Gets the CellEditor that edits the given column in the given DataRow. |
CellFormat |
getCellFormat(IDataBook pDataBook,
IDataPage pDataPage,
IDataRow pDataRow,
String pColumnName,
int pRow,
int pColumn)
Gets the format for the given cell. |
ICellFormatter |
getCellFormatter()
Gets the cell formatter. |
String |
getColumnName()
Returns the column name displayed by this control. |
IDataRow |
getDataRow()
Returns the DataRow displayed by this control. |
TranslationMap |
getTranslation()
Gets the possible translation mapping for this UIComponent . |
boolean |
isSavingImmediate()
Tells whether the CellEditor should save immediate. |
void |
notifyRepaint()
The control need to check if the part is visible and then repaint the part. |
void |
saveEditing()
Informs the GUI control, that the last edit should be set into the IDataBook or IDataRow . |
void |
setCellEditor(ICellEditor pCellEditor)
Sets the CellEditor that edits the given column in the given DataRow. |
void |
setCellFormatter(ICellFormatter pCellFormatter)
Sets the cell formatter. |
void |
setColumnName(String pColumnName)
Sets the column name displayed by this control. |
void |
setDataRow(IDataRow pDataRow)
Sets the DataRow displayed by this control. |
void |
setSavingImmediate(boolean pSavingImmediate)
Sets whether the CellEditor should save immediate. |
void |
setTranslation(TranslationMap pTranslation)
Sets the possible translations for this UIComponent . |
Methods inherited from class com.sibvisions.rad.ui.swing.impl.SwingComponent |
---|
capture, getToolTipText, setBackground, setToolTipText |
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtContainer |
---|
add, add, add, add, addIntern, checkAdd, getComponent, getComponentCount, getLayout, indexOf, remove, remove, removeAll, removeIntern, setLayout, setLayoutIntern |
Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
---|
equals, getResource, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.rad.ui.IResource |
---|
getResource |
Constructor Detail |
---|
public SwingEditor()
SwingEditor
.
Method Detail |
---|
public IDataRow getDataRow()
getDataRow
in interface IEditorControl
IEditorControl.setDataRow(javax.rad.model.IDataRow)
public void setDataRow(IDataRow pDataRow) throws ModelException
setDataRow
in interface IEditorControl
pDataRow
- the DataRow
ModelException
- if the column name is invalidIEditorControl.getDataRow()
,
IEditorControl.setColumnName(String)
public String getColumnName()
getColumnName
in interface IEditorControl
IEditorControl.setColumnName(java.lang.String)
public void setColumnName(String pColumnName) throws ModelException
setColumnName
in interface IEditorControl
pColumnName
- the column name.
ModelException
- if the column name is invalidIEditorControl.getColumnName()
public ICellEditor getCellEditor()
getCellEditor
in interface IEditorControl
getCellEditor
in interface IEditor
IEditor.setCellEditor(javax.rad.model.ui.ICellEditor)
public void setCellEditor(ICellEditor pCellEditor) throws ModelException
setCellEditor
in interface IEditorControl
setCellEditor
in interface IEditor
pCellEditor
- the CellEditor.
ModelException
- if the cell editor can not be setIEditor.getCellEditor()
public boolean isSavingImmediate()
isSavingImmediate
in interface IEditor
public void setSavingImmediate(boolean pSavingImmediate)
setSavingImmediate
in interface IEditor
pSavingImmediate
- true, if the CellEditor should save immediate.public void cancelEditing()
DataBook
.
cancelEditing
in interface IControl
public void notifyRepaint()
notifyRepaint
in interface IControl
public void saveEditing() throws ModelException
IDataBook
or IDataRow
.
saveEditing
in interface IControl
ModelException
- if the value can not be stored.public ICellFormatter getCellFormatter()
getCellFormatter
in interface ICellFormatable
public void setCellFormatter(ICellFormatter pCellFormatter)
setCellFormatter
in interface ICellFormatable
pCellFormatter
- the cell formatter.public CellFormat getCellFormat(IDataBook pDataBook, IDataPage pDataPage, IDataRow pDataRow, String pColumnName, int pRow, int pColumn)
getCellFormat
in interface ICellFormatter
pDataBook
- the DataBookpDataPage
- the DataPagepDataRow
- the DataRowpColumnName
- the column namepRow
- the Row numberpColumn
- the Column number
public void setTranslation(TranslationMap pTranslation)
UIComponent
.
setTranslation
in interface ITranslatable
pTranslation
- the translation mappingpublic TranslationMap getTranslation()
UIComponent
.
getTranslation
in interface ITranslatable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |