|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--JSWindow
Method Summary | |
void
|
addTab(<JSTab> jsTab)
Add a tab to the tab manager |
void
|
close()
Close window |
void
|
dragTabStart(<Element> item)
Start of tab dragging, calculate inital positions |
void
|
expand(<boolean> expand)
Expand/collapse a collapsible window |
object
|
getPosition()
Get the current position |
object
|
getSize()
Get the current size |
void
|
initialize(manager, w, h, l, t, options, contents)
|
void
|
maximise()
Maximise / restore window |
void
|
ondrop(drag)
Fires when component is dropped (if set to draggable) |
void
|
onmove(drag)
Fires when component is moved (if set to draggable) |
Object
|
openTab(<Element> contents, <boolean> force)
Open a new tab in a window |
void
|
readObject(<String> serialData)
Read serialised object state data into the window |
void
|
redrawShadow()
Redraws the drop shadow |
void
|
redrawTabList(<boolean> force)
Redraw the tab list |
void
|
setActive()
Set window as active, shortcut to JSWM.setActiveWindow() |
void
|
setActiveTab(<Element> jsTab)
Sets a tab as active |
void
|
setPosition(&l<int> t;int> l, t, <boolean> relative)
Position the window aboslutely or relatively |
void
|
setSize(<int> w, <int> h, <int> fixedCorner, <boolean> relative)
Resize a window |
void
|
setTitle(<string> title, <string> icon)
Set the window title |
void
|
updateMaximise()
Update maximise size if window is resized |
Object
|
writeObject()
Write object state data for serialisation |
Method Detail |
void addTab(<JSTab> jsTab)
jsTab
- Tab to add
void close()
void dragTabStart(<Element> item)
item
- Tab being dragged
void expand(<boolean> expand)
expand
- Mode to expand to, null to toggle
object getPosition()
object getSize()
void initialize(manager, w, h, l, t, options, contents)
void maximise()
void ondrop(drag)
void onmove(drag)
Object openTab(<Element> contents, <boolean> force)
contents
- Contents to place in tab
force
- Add even if contents are already wrapped
void readObject(<String> serialData)
serialData
- Object serialisation data
void redrawShadow()
void redrawTabList(<boolean> force)
force
- Recalculate tab name truncation even if width hasn't changed (for post collapse event)
void setActive()
void setActiveTab(<Element> jsTab)
jsTab
- Tab to make active
void setPosition(&l<int> t;int> l, t, <boolean> relative)
l
- Distance from the left of the viewport
t
- Distance from the top of the viewport
relative
- Indicates that the supplied coordinates a relative to the current position
void setSize(<int> w, <int> h, <int> fixedCorner, <boolean> relative)
w
- New width, null indicates no change
h
- New height, null indicates no change
fixedCorner
- The corner to fix while resizing 0 = NW, 1 = NE, 2 = SW, 3 = SE
relative
- Indicates that the supplied size is relative to the current size
void setTitle(<string> title, <string> icon)
title
- The new title
icon
- Window icon uri
void updateMaximise()
Object writeObject()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |