|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.mdl.WModel
at.spardat.xma.mdl.tree.TreeWM
at.spardat.xma.mdl.tree.TreeWMClient
The representation of a TreeWM at the client side of XMA.
| Field Summary |
| Fields inherited from class at.spardat.xma.mdl.tree.TreeWM |
selection_ |
| Fields inherited from class at.spardat.xma.mdl.WModel |
S_NULL |
| Fields inherited from interface at.spardat.xma.mdl.tree.ITreeWM |
S_LAST, S_MULTI_SELECT |
| Constructor Summary | |
TreeWMClient(short id,
Page pm,
int style)
Constructor |
|
| Method Summary | |
UIDelegateClient |
getUIDelegate()
Returns the UI-delegate. |
boolean |
handle(ModelChangeEvent event)
All events that might change a WidgetModel are executed via this method. |
boolean |
isEditable()
Returns true if this model's widget may be modified by the end-user. |
boolean |
isEnabled()
Returns true, if this model's widget is enabled. |
void |
setEditable(boolean what)
Sets the editable-state of this models's widget. |
void |
setEnabled(boolean what)
Sets the enabled-state of this model's widget. |
void |
setExpanded(int depth,
boolean expanded)
Sets the expanded state of the top depth levels of the tree. |
| Methods inherited from class at.spardat.xma.mdl.tree.TreeWM |
changed, clear, commit, containsKey, describe, deselect, deselectAll, equalsCS, estimateMemory, externalize, getNode, getPage, getRootCount, getRoots, getSelected, getSelectedNode, getSelection, getSelectionCount, getSelectionOrdered, internalize, isMultiSelect, isSelected, isStrict, randomlyChange, rollback, select, selectAll, size |
| Methods inherited from class at.spardat.xma.mdl.WModel |
cleanUpAfterServerEvent, getId, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface at.spardat.xma.mdl.tree.ITreeWM |
clear, containsKey, getNode, getRootCount, getRoots, getSelectedNode, getSelectionOrdered, selectAll, size |
| Methods inherited from interface at.spardat.xma.mdl.ISelectable |
deselect, deselectAll, getSelected, getSelection, getSelectionCount, isMultiSelect, isSelected, isStrict, select |
| Constructor Detail |
public TreeWMClient(short id,
Page pm,
int style)
id - id of the widget model within the pagepm - the page that this widget model is part ofstyle - bit or combination of style constants beginning with S_
in this class or a superclass.| Method Detail |
public boolean handle(ModelChangeEvent event)
WModel
handle in class TreeWMWModel.handle(at.spardat.xma.mdl.ModelChangeEvent)
public void setExpanded(int depth,
boolean expanded)
ITreeWMClient
setExpanded in interface ITreeWMClientdepth - number of levels to expand or collapseITreeWMClient.setExpanded(int, boolean)public UIDelegateClient getUIDelegate()
getUIDelegate in interface IWModelClientpublic boolean isEditable()
IWModelClient
isEditable in interface IWModelClientIWModelClient.isEditable()public boolean isEnabled()
IWModelClient
isEnabled in interface IWModelClientIWModelClient.isEnabled()public void setEditable(boolean what)
IWModelClientUsually, this method is called on all widget-models of a page to set the whole page to a read-only mode.
If this method is not called, the default is true.
setEditable in interface IWModelClientwhat - true if the model's widget should be editable, false otherwise.IWModelClient.setEditable(boolean)public void setEnabled(boolean what)
IWModelClient
setEnabled in interface IWModelClientwhat - the state to set.IWModelClient.setEnabled(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||