|
||||||||||
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
public class FloatingWindow
A simple floating window, non-blocking, with a title bar which can be dragged. This also acts as an error fence, limiting all errors generated within this control to be displayed within this window.
Constructor Summary | |
---|---|
protected |
FloatingWindow()
|
protected |
FloatingWindow(boolean modal,
java.lang.String txt)
Create a floating window with the specified title in the title bar. |
Method Summary | |
---|---|
void |
close()
Close this floater and cause it to be destroyed from the UI. |
void |
closePressed()
Close the window !AND CALL THE CLOSE HANDLER!. |
static FloatingWindow |
create(NodeBase parent)
Create and link a modal floating window. |
static FloatingWindow |
create(NodeBase parent,
java.lang.String ttl)
|
static FloatingWindow |
create(NodeBase parent,
java.lang.String ttl,
boolean modal)
|
void |
createContent()
Create the floater. |
protected NodeContainer |
createTitleBar()
Create the title bar for the floater. |
IClicked<FloatingWindow> |
getOnClose()
Get the current "onClose" handler. |
java.lang.String |
getWindowTitle()
Return the floater's title bar title string. |
boolean |
isClosable()
Returns T if the window can be closed using a close button on the title bar. |
void |
linkToPageModally(NodeBase parent)
This links this floater as a "modal" window to the page specified by the base node. |
void |
onAddedToPage(Page p)
|
void |
onRemoveFromPage(Page p)
|
void |
setClosable(boolean closable)
When set to TRUE, the floater will display a close button on it's title bar, and will close if that thingy is pressed. |
void |
setIcon(java.lang.String ico)
Set an icon for the title bar, using the absolute path to a web resource. |
void |
setOnClose(IClicked<FloatingWindow> onClose)
Set a Clicked handler to be called when this floater is closed by it's close button. |
void |
setWindowTitle(java.lang.String windowTitle)
Set the floater's title bar string. |
Methods inherited from class to.etc.domui.dom.html.Div |
---|
afterCreateContent, componentHandleWebAction, fadeIn, fadeIn, fadeOut, 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 |
---|
protected FloatingWindow()
protected FloatingWindow(boolean modal, java.lang.String txt)
txt
- Method Detail |
---|
public static FloatingWindow create(NodeBase parent)
public static FloatingWindow create(NodeBase parent, java.lang.String ttl)
public static FloatingWindow create(NodeBase parent, java.lang.String ttl, boolean modal)
public void onAddedToPage(Page p)
onAddedToPage
in class NodeBase
public void onRemoveFromPage(Page p)
onRemoveFromPage
in class NodeBase
public void createContent() throws java.lang.Exception
createContent
in class NodeBase
java.lang.Exception
NodeBase.createContent()
public void setIcon(java.lang.String ico)
ico
- protected NodeContainer createTitleBar()
public void closePressed() throws java.lang.Exception
java.lang.Exception
public boolean isClosable()
public void setClosable(boolean closable)
closable
- public void close()
public IClicked<FloatingWindow> getOnClose()
public void setOnClose(IClicked<FloatingWindow> onClose)
onClose
- public java.lang.String getWindowTitle()
public void setWindowTitle(java.lang.String windowTitle)
windowTitle
- public void linkToPageModally(NodeBase parent)
parent
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |