|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.dom.css.CssBase
to.etc.domui.dom.html.NodeBase
to.etc.domui.dom.html.NodeContainer
to.etc.domui.dom.html.Div
to.etc.domui.component.layout.FloatingWindow
to.etc.domui.component.tree.TreeSelectionWindow<T>
public class TreeSelectionWindow<T>
A popup window that shows a tree and lets the user select one entry from it. It shows a tree with the specified model, user controllable node content renderer. It adds a button bar with select and cancel buttons, and has setClicked() and setCancelClicked() handlers to handle selection events.
Constructor Summary | |
---|---|
TreeSelectionWindow(boolean modal,
java.lang.String txt,
ITreeModel<T> model)
|
Method Summary | |
---|---|
protected void |
cancel()
|
void |
cellClicked(NodeBase tr,
T rowval)
Internally called when tree node is clicked. |
void |
createContent()
Create the floater. |
IClickBase<?> |
getCancelClicked()
|
IClickBase<?> |
getClicked()
Return the click handler for this node, or null if none is associated with it. |
INodeContentRenderer<T> |
getContentRenderer()
|
T |
getSelected()
|
boolean |
internalNeedClickHandler()
Inhibit a Javascript clicked handler so we can override the clicked handler for selection. |
protected void |
select()
|
void |
setCancelClicked(IClickBase<?> cancelClicked)
|
void |
setClicked(IClickBase<?> clicked)
Set a click handler for this node. |
void |
setContentRenderer(INodeContentRenderer<T> contentRenderer)
|
void |
setSelected(T selected)
|
Methods inherited from class to.etc.domui.component.layout.FloatingWindow |
---|
close, closePressed, create, create, create, createTitleBar, getOnClose, getWindowTitle, isClosable, linkToPageModally, onAddedToPage, onRemoveFromPage, setClosable, setIcon, setOnClose, setWindowTitle |
Methods inherited from class to.etc.domui.dom.html.Div |
---|
afterCreateContent, componentHandleWebAction, fadeIn, fadeOut, getCustomUpdatesCallJS, getDragHandler, getDropBody, getDropHandler, getDropMode, getReturnPressed, setDragHandler, setDropBody, setDropHandler, setReturnPressed, slideDown, slideUp, tb, visit |
Methods inherited from class to.etc.domui.dom.html.NodeContainer |
---|
add, add, add, addTable, canContain, delegateTo, findChildIndex, forceRebuild, getChild, getChildCount, getChildren, getDeepChild, getDeepChildren, getErrorFence, internalCheckNotDirty, internalClearDelta, internalClearDeltaFully, internalGetOldChildren, internalShelve, internalUnshelve, iterator, moveControlToModel, moveModelToControl, onRefresh, removeAllChildren, removeChild, removeChild, replaceChild, setControlsEnabled, setErrorFence, setErrorFence, setText, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TreeSelectionWindow(boolean modal, java.lang.String txt, @Nonnull ITreeModel<T> model)
Method Detail |
---|
public void createContent() throws java.lang.Exception
FloatingWindow
createContent
in class FloatingWindow
java.lang.Exception
NodeBase.createContent()
protected void cancel() throws java.lang.Exception
java.lang.Exception
protected void select() throws java.lang.Exception
java.lang.Exception
public final void cellClicked(NodeBase tr, T rowval) throws java.lang.Exception
cellClicked
in interface ICellClicked<T>
java.lang.Exception
ICellClicked.cellClicked(to.etc.domui.dom.html.NodeBase, java.lang.Object)
public boolean internalNeedClickHandler()
internalNeedClickHandler
in class NodeBase
public T getSelected()
public void setSelected(T selected)
public IClickBase<?> getClicked()
NodeBase
getClicked
in class NodeBase
public void setClicked(IClickBase<?> clicked)
NodeBase
setClicked
in class NodeBase
public IClickBase<?> getCancelClicked()
public void setCancelClicked(IClickBase<?> cancelClicked)
public INodeContentRenderer<T> getContentRenderer()
public void setContentRenderer(INodeContentRenderer<T> contentRenderer)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |