WebWindowclass | webui.t[1667] |
Superclass Tree | Subclass Tree | Global Objects | Property Summary | Method Summary | Property Details | Method Details |
Each WebWindow class corresponds to a particular HTML page that we serve the client. The HTML page is the expression of the window in the browser, and the WebWindow object is the expression of the same information in the game program. The two are different facets of the same conceptual UI object. The reason we need the two separate expressions is that the server controls everything, but the client has to do the actual display work, and the two parts of the program speak different languages - the server is TADS, and the client is HTML.
The WebWindow object on the server lets us easily reconstruct the UI state in a newly opened browser window, or when the user performs a page refresh. This object's job is to send information to the client on demand that allows the client to display the page in its current state.
Note that a given WebWindow/HTML page combination can be used more than once within the same UI. The pages defined in the library are designed to be generic and reusable, so you might use the same window class more than once for different purposes within the UI. The library pages can also be subclassed, by subclassing the WebWindow object and creating a customized copy of the corresponding HTML page resource.
class
WebWindow : WebResourceResFile
WebWindow
WebResourceResFile
WebResource
object
WebWindow
WebCommandWin
WebLayoutWindow
WebStatusWin
name
pathName
src
sthCtx
vpath
Inherited from WebResourceResFile
:
binaryExts
browserExtToMime
Inherited from WebResource
:
group
priority
clearWindow
flushWin
getState
processName
sendWinEvent
sendWinEventTo
winFromPath
write
Inherited from WebResourceResFile
:
isTextFile
matchRequest
processRequest
Inherited from WebResource
:
sendAck
sendXML
name | webui.t[1750] |
pathName | webui.t[1753] |
src | webui.t[1689] |
sthCtx | webui.t[1747] |
vpath OVERRIDDEN | webui.t[1680] |
clearWindow ( ) | webui.t[1718] |
flushWin ( ) | webui.t[1707] |
getState (client) | webui.t[1728] |
processName (n) OVERRIDDEN | webui.t[1692] |
sendWinEvent (evt) | webui.t[1731] |
sendWinEventTo (evt, client) | webui.t[1741] |
winFromPath (path) | webui.t[1699] |
write (txt) | webui.t[1713] |