|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.genui.UIResource<C>
javax.rad.genui.UIComponent<ITree>
javax.rad.genui.control.UITree
public class UITree
Platform and technology independent Tree. It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .
| Field Summary |
|---|
| Fields inherited from class javax.rad.genui.UIComponent |
|---|
lLastTranslationModified, parent |
| Fields inherited from class javax.rad.genui.UIResource |
|---|
uiResource |
| Constructor Summary | |
|---|---|
|
UITree()
Creates a new instance of UITree. |
protected |
UITree(ITree pTree)
Creates a new instance of UITree with the given
tree. |
| Method Summary | |
|---|---|
void |
cancelEditing()
Informs the GUI control, that the last edit should be canceled(restored) the correct value is in the DataBook. |
ICellFormatter |
getCellFormatter()
Gets the cell formatter. |
IDataBook[] |
getDataBooks()
Returns the DataBooks displayed by this control. |
INodeFormatter |
getNodeFormatter()
Gets the node formatter. |
boolean |
isDetectEndNode()
Gets if a node should be detected to be an end node or not. |
boolean |
isEditable()
Gets if editable or not. |
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 cell formatter. |
void |
setCellFormatter(Object pCellFormatter,
String pMethodName)
Sets the cell formatter. |
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 |
setNodeFormatter(Object pNodeFormatter,
String pMethodName)
Sets the node formatter. |
void |
startEditing()
Informs the GUI control, that the editor should be opened. |
void |
updateTranslation()
Notification for updating the translation. |
| Methods inherited from class javax.rad.genui.UIResource |
|---|
equals, getUIResource, 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 |
| Methods inherited from interface javax.rad.model.ui.ITranslatable |
|---|
getTranslation, setTranslation |
| Constructor Detail |
|---|
public UITree()
UITree.
ITreeprotected UITree(ITree pTree)
UITree with the given
tree.
pTree - the treeITree| 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 boolean isDetectEndNode()
isDetectEndNode in interface ITreepublic void setDetectEndNode(boolean pDetectEndNode)
setDetectEndNode in interface ITreepDetectEndNode - true, if end node detection is enabled.public boolean isEditable()
isEditable in interface ITreepublic void setEditable(boolean pEditable)
setEditable in interface ITreepEditable - if editable or not.public void notifyRepaint()
notifyRepaint in interface IControlpublic void startEditing()
startEditing in interface ITreeControl
public void saveEditing()
throws ModelException
IDataBook or IDataRow.
saveEditing in interface IControlModelException - if the value can not be stored.public void cancelEditing()
DataBook.
cancelEditing in interface IControlpublic ICellFormatter getCellFormatter()
getCellFormatter in interface ICellFormatablepublic void setCellFormatter(ICellFormatter pCellFormatter)
setCellFormatter in interface ICellFormatablepCellFormatter - the cell formatter.
public void setCellFormatter(Object pCellFormatter,
String pMethodName)
pCellFormatter - the cell formatter.pMethodName - the method name.public INodeFormatter getNodeFormatter()
getNodeFormatter in interface ITreepublic void setNodeFormatter(INodeFormatter pNodeFormatter)
setNodeFormatter in interface ITreepNodeFormatter - the node formatter.
public void setNodeFormatter(Object pNodeFormatter,
String pMethodName)
pNodeFormatter - the node formatter.pMethodName - the method name.public void updateTranslation()
UIComponent will be added to a displayable containment hierarchy,
when its containment hierarchy is made displayable or the translation table will
be changed.
updateTranslation in class UIComponent<ITree>UIComponent.setTranslation(TranslationMap),
UIComponent.addNotify()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||