JavaXT
|
|||||||||||||||||||||||||||||||
Horizon ClassUser interface with a fixed header and horizontal tabs. The user interface is initialized via the update() method. Websockets are used to relay events between the client and the server.
ConstructorsUsed to instantiate this class
Config Optionsname Name of the application. By default, the name will be used as the document title. As a user switches tabs, the tab name will be appended to the title.
style Style for individual elements within the component. In addition, there is a general "javaxt" config for javaxt-components. This is a complex, nested config. See "default.js" in the javaxt-webcontrols. Note that you can provide CSS class names or an inline set of css style definitions for each components and javaxt subcomponents.
autoLogoff Used to define the maximum idle time for a user before calling logoff(). Units are in milliseconds. Default is false (i.e. no auto-logoff).
useBrowserHistory If true, will enable users to navigate between tabs using the browser's forward and back buttons. Default is false.
windows A shared array of javaxt.dhtml.Window components. All the windows in the array are automatically closed when a user logs off or when the logoff() method is called. You are encouraged to create your own array and pass it to the constructor via this config setting and update the array whenever you create a new window.
renderers
messages
EventsbeforeTabChange( currTab, nextTab ) Called immediately before a tab is raised in the tab bar.
onTabChange( currTab ) Called whenever a tab is raised in the tab bar.
onMessage( msg ) Called whenever a message is recieved from the server via websockets. Used the onModelChangeEvent() event listener to receive CRUD events specifically. onModelChangeEvent( op, model, id, userID ) Called whenever a Model created, updated, or deleted.
onUserInteration( e ) Called whenever a user interacts with the app (mouse click, mouse move, keypress, or touch event). Public Methodsupdate( user, tabs ) Used to initialize the app with a new user and a set of tabs
getTabs( ) Returns an array of tabs. Each entry includes:
addHistory( params ) Used to add a "page" to the browser history
updateHistory( params ) Used to update browser history for the current "page"
|