|
||||||||||
| 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 |
|---|
bComponentListener, bFocusListener, bKeyListener, bMouseListener, eventComponentMoved, eventComponentResized, eventKeyPressed, eventKeyReleased, eventKeyTyped, eventMouseClicked, eventMouseEntered, eventMouseExited, eventMousePressed, eventMouseReleased, 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_DEFAULT, 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,
java.lang.String pColumnName,
int pRow,
int pColumn)
Gets the format for the given cell. |
ICellFormatter |
getCellFormatter()
Gets the ICellFormatter. |
java.lang.String |
getColumnName()
Returns the column name displayed by this control. |
IDataRow |
getDataRow()
Returns the DataRow displayed by this control. |
java.lang.String |
getName()
Gets the name of the object. |
TranslationMap |
getTranslation()
Gets the possible translation mapping. |
boolean |
isBorderVisible()
Returns whether the the border of the text field is visible. |
boolean |
isSavingImmediate()
Tells whether the CellEditor should save immediate. |
boolean |
isTranslationEnabled()
Gets whether the translation is en- or disabled. |
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 |
setBorderVisible(boolean pVisible)
Sets the border of the text field visible or invisible. |
void |
setCellEditor(ICellEditor pCellEditor)
Sets the CellEditor that edits the given column in the given DataRow. |
void |
setCellFormatter(ICellFormatter pCellFormatter)
Sets the ICellFormatter. |
void |
setColumnName(java.lang.String pColumnName)
Sets the column name displayed by this control. |
void |
setDataRow(IDataRow pDataRow)
Sets the DataRow displayed by this control. |
void |
setHorizontalAlignment(int pHorizontalAlignment)
Sets the horizontal alignment. |
void |
setName(java.lang.String pName)
Sets the name of the object to the specified string. |
void |
setSavingImmediate(boolean pSavingImmediate)
Sets whether the CellEditor should save immediate. |
void |
setTranslation(TranslationMap pTranslation)
Sets the possible translations. |
void |
setTranslationEnabled(boolean pEnabled)
Sets the translation en- or disabled. |
void |
setVerticalAlignment(int pVerticalAlignment)
Sets the vertical alignment. |
java.lang.String |
translate(java.lang.String pText)
Method to translate a given text. |
| Methods inherited from class com.sibvisions.rad.ui.swing.impl.SwingComponent |
|---|
capture, getToolTipText, setBackground, setTabIndex, 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 |
|---|
getResource, 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 |
| Methods inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
getHorizontalAlignment, getVerticalAlignment |
| Constructor Detail |
|---|
public SwingEditor()
SwingEditor.
| Method Detail |
|---|
public IDataRow getDataRow()
getDataRow in interface IEditorControlIEditorControl.setDataRow(javax.rad.model.IDataRow)
public void setDataRow(IDataRow pDataRow)
throws ModelException
setDataRow in interface IEditorControlpDataRow - the DataRow
ModelException - if the column name is invalidIEditorControl.getDataRow(),
IEditorControl.setColumnName(String)public java.lang.String getColumnName()
getColumnName in interface IEditorControlIEditorControl.setColumnName(java.lang.String)
public void setColumnName(java.lang.String pColumnName)
throws ModelException
setColumnName in interface IEditorControlpColumnName - the column name.
ModelException - if the column name is invalidIEditorControl.getColumnName()public ICellEditor getCellEditor()
getCellEditor in interface IEditorControlgetCellEditor in interface IEditorIEditor.setCellEditor(javax.rad.model.ui.ICellEditor)
public void setCellEditor(ICellEditor pCellEditor)
throws ModelException
setCellEditor in interface IEditorControlsetCellEditor in interface IEditorpCellEditor - the CellEditor.
ModelException - if the cell editor can not be setIEditor.getCellEditor()public boolean isSavingImmediate()
isSavingImmediate in interface IEditorpublic void setSavingImmediate(boolean pSavingImmediate)
setSavingImmediate in interface IEditorpSavingImmediate - true, if the CellEditor should save immediate.public void cancelEditing()
DataBook.
cancelEditing in interface IControlpublic void notifyRepaint()
notifyRepaint in interface IControl
public void saveEditing()
throws ModelException
IDataBook or IDataRow.
saveEditing in interface IControlModelException - if the value can not be stored.public ICellFormatter getCellFormatter()
ICellFormatter.
The ICellFormatter will be called for every cell and can return a
style for that cell.
getCellFormatter in interface ICellFormatableICellFormatter.ICellFormatable.setCellFormatter(ICellFormatter)public void setCellFormatter(ICellFormatter pCellFormatter)
ICellFormatter.
The ICellFormatter will be called for every cell and can return a
style for that cell.
setCellFormatter in interface ICellFormatablepCellFormatter - the ICellFormatter.ICellFormatable.getCellFormatter()
public CellFormat getCellFormat(IDataBook pDataBook,
IDataPage pDataPage,
IDataRow pDataRow,
java.lang.String pColumnName,
int pRow,
int pColumn)
throws java.lang.Throwable
getCellFormat in interface ICellFormatterpDataBook - the DataBookpDataPage - the DataPagepDataRow - the DataRowpColumnName - the column namepRow - the Row numberpColumn - the Column number
java.lang.Throwable - if an exception, it is ignored.public void setTranslation(TranslationMap pTranslation)
setTranslation in interface ITranslatablepTranslation - the translation mappingpublic TranslationMap getTranslation()
getTranslation in interface ITranslatablepublic void setTranslationEnabled(boolean pEnabled)
setTranslationEnabled in interface ITranslatablepEnabled - true to enable the translation, false to disablepublic boolean isTranslationEnabled()
isTranslationEnabled in interface ITranslatabletrue if translation is performed, false otherwisepublic java.lang.String translate(java.lang.String pText)
translate in interface ITranslatorpText - the text to translate.
public void setBorderVisible(boolean pVisible)
setBorderVisible in interface IEditorpVisible - true to set the border visible or false to hide
the borderpublic boolean isBorderVisible()
isBorderVisible in interface IEditortrue if the border is visible, false if the border is invisiblepublic void setHorizontalAlignment(int pHorizontalAlignment)
setHorizontalAlignment in interface IAlignmentConstantssetHorizontalAlignment in class AwtComponent<JVxEditor>pHorizontalAlignment - the new vertical alignmentpublic void setVerticalAlignment(int pVerticalAlignment)
setVerticalAlignment in interface IAlignmentConstantssetVerticalAlignment in class AwtComponent<JVxEditor>pVerticalAlignment - the new vertical alignmentpublic java.lang.String getName()
null.
getName in interface IComponentgetName in interface INamedObjectgetName in class AwtComponent<JVxEditor>IComponent.setName(java.lang.String)public void setName(java.lang.String pName)
setName in interface IComponentsetName in interface INamedObjectsetName in class AwtComponent<JVxEditor>pName - the string that is to be this
component's nameIComponent.getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||