|
||||||||||
| 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<C>
com.sibvisions.rad.ui.swing.impl.SwingScrollComponent<JVxTree,javax.swing.JTree>
com.sibvisions.rad.ui.swing.impl.control.SwingTree
public class SwingTree
The SwingTree is the ITree
implementation for swing.
JTree| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.ui.swing.impl.SwingScrollComponent |
|---|
component |
| 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 | |
|---|---|
SwingTree()
Creates a new instance of SwingTable. |
|
| Method Summary | |
|---|---|
void |
cancelEditing()
Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook. |
IDataBook |
getActiveDataBook()
Gets the active data book. |
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. |
IDataBook[] |
getDataBooks()
Returns the DataBooks displayed by this control. |
INodeFormatter |
getNodeFormatter()
Gets the node formatter. |
javax.swing.Icon |
getNodeImage(IDataBook pDataBook,
IDataPage pDataPage,
IDataRow pDataRow,
java.lang.String pColumnName,
int pRow,
boolean pExpanded,
boolean pLeaf)
Gets the image for the given node. |
TranslationMap |
getTranslation()
Gets the possible translation mapping. |
boolean |
isDetectEndNode()
Gets if a node should be detected to be an end node or not. |
boolean |
isEditable()
Gets if editable or not. |
boolean |
isMouseEventOnSelectedCell()
True, if the mouse event occured on current selected cell. |
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 |
setCellFormatter(ICellFormatter pCellFormatter)
Sets the ICellFormatter. |
void |
setDataBooks(IDataBook... pDataBooks)
Sets the DataBooks displayed by this control. |
void |
setDetectEndNode(boolean pDetectEndNode)
Sets if a node should be detected to be an end node or not. |
void |
setEditable(boolean pEditable)
Sets if editable or not. |
void |
setNodeFormatter(INodeFormatter pNodeFormatter)
Sets the node formatter. |
void |
setTranslation(TranslationMap pTranslation)
Sets the possible translations. |
void |
setTranslationEnabled(boolean pEnabled)
Sets the translation en- or disabled. |
void |
startEditing()
Informs the GUI control, that the editor should be opened. |
java.lang.String |
translate(java.lang.String pText)
Method to translate a given text. |
| Methods inherited from class com.sibvisions.rad.ui.swing.impl.SwingScrollComponent |
|---|
addFocusListener, addKeyListener, addMouseListener, getBackground, getComponent, getCursor, getFont, getForeground, getName, getToolTipText, isBackgroundSet, isCursorSet, isEnabled, isFocusable, isFontSet, isForegroundSet, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setForeground, setName, setTabIndex, setToolTipText |
| Methods inherited from class com.sibvisions.rad.ui.swing.impl.SwingComponent |
|---|
capture |
| 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 |
| Constructor Detail |
|---|
public SwingTree()
SwingTable.
| Method Detail |
|---|
public IDataBook[] getDataBooks()
getDataBooks in interface ITreeControlITreeControl.setDataBooks(javax.rad.model.IDataBook...)public void setDataBooks(IDataBook... pDataBooks)
setDataBooks in interface ITreeControlpDataBooks - the DataBooksITreeControl.getDataBooks()public IDataBook getActiveDataBook()
getActiveDataBook in interface ITreeControlpublic boolean isEditable()
isEditable in interface ITreepublic void setEditable(boolean pEditable)
setEditable in interface ITreepEditable - if editable or not.public boolean isDetectEndNode()
isDetectEndNode in interface ITreepublic void setDetectEndNode(boolean pDetectEndNode)
setDetectEndNode in interface ITreepDetectEndNode - true, if end node detection is enabled.public void notifyRepaint()
notifyRepaint in interface IControlpublic void startEditing()
startEditing in interface ITreeControlpublic void cancelEditing()
DataBook.
cancelEditing in interface IControl
public void saveEditing()
throws ModelException
IDataBook or IDataRow.
saveEditing in interface IControlModelException - if the value can not be stored.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 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 INodeFormatter getNodeFormatter()
getNodeFormatter in interface ITreepublic void setNodeFormatter(INodeFormatter pNodeFormatter)
setNodeFormatter in interface ITreepNodeFormatter - the node formatter.
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 javax.swing.Icon getNodeImage(IDataBook pDataBook,
IDataPage pDataPage,
IDataRow pDataRow,
java.lang.String pColumnName,
int pRow,
boolean pExpanded,
boolean pLeaf)
getNodeImage in interface INodeFormatterpDataBook - the IDataBook.pDataPage - the IDataPage.pDataRow - the IDataRow.pColumnName - the column name.pRow - the row index.pExpanded - true if expanded.pLeaf - true if leaf.
public boolean isMouseEventOnSelectedCell()
isMouseEventOnSelectedCell in interface ITree
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||