jsx3.gui.Painted class and
implement the jsx3.util.EventDispatcher interface
| Field Summary | |
|---|---|
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| static String | |
| Method Summary | |
|---|---|
| Object | Publishes a model event. |
| int | Returns whether is object supports programmatic drag, meanining it will allow any contained item to be
dragged and dropped on another container supporting drop. |
| int | Returns whether this object can be the target of a drop event. |
| int | Returns whether is object can be moved around the screen (this is not the same as drag/drop). |
| int | Returns whether is object can be spyglassed. |
| String | Returns the event script registered for the given event type. |
| Object<String, String> | Returns the associative array containing all the registered event script of this object. |
| String | getMenu() Returns the name of the jsx3.gui.Menu instance to display (as a context menu) when a user
clicks on this object with the right button. |
| static String | Deprecated. |
| String | Returns true if there is a event script registered for the given event type. |
| jsx3.gui.HotKey | registerHotKey(vntCallback : String | Function | jsx3.gui.HotKey, vntKey : int | String, bShift : boolean, bControl : boolean, bAlt : boolean) Registers a hot key with this JSX model node. |
| jsx3.gui.Interactive | removeEvent(strType : String) Removes an event script registered for the given model event type. |
| jsx3.gui.Interactive | Removes all events scripts registered with this object. |
| jsx3.gui.Interactive | setCanDrag(bDrag : int) Sets whether is object supports programmatic drag, meanining it will allow any contained item to be dragged/dropped. |
| jsx3.gui.Interactive | setCanDrop(bDrop : int) Sets whether this object can be the target of a drop event. |
| jsx3.gui.Interactive | setCanMove(bMovable : int) Sets whether is object can be moved around the screen (this is not the same as drag/drop). |
| jsx3.gui.Interactive | Sets whether is object can be spyglassed. |
| jsx3.gui.Interactive | Programmatically sets an event of this instance. |
| jsx3.gui.Interactive | Sets the name of the jsx3.gui.Menu instance to display when a user
clicks on this object with the right button. |
| void | setSpyStyles(strCSS : String) Sets the CSS definition to apply to an HTML element when a spyglass is shown for that element |
| void | called by 'window.setTimeout()' to display the spyglass hover for a given object; |
| Field Detail |
|---|
| Method Detail |
|---|
EventDispatcher interface. This method ensures that any
registered event script is executed in isolation to prevent most side effects.context
property of the event object that is published through the EventDispatcher interface.null if not event script is registered
jsx3.Boolean.TRUE or jsx3.Boolean.FALSE
jsx3.Boolean.TRUE or jsx3.Boolean.FALSE
jsx3.Boolean.TRUE or jsx3.Boolean.FALSE
jsx3.Boolean.TRUE or jsx3.Boolean.FALSE
setEvent() method or during component deserialization.jsx3.gui.Menu instance to display (as a context menu) when a user
clicks on this object with the right button.keydown events that bubble up to this object
will be checked against the hot key. If an event matches, the callback function will execute and the event
bubble will be canceled.
If the four parameters vntKey, bShift, bControl, and bAlt
match a previously registered hot key, the previous hot key is clobbered by the new one. Only one hot key callback
function (the most recently registered) will be executed by a single keydown event.false then this hot key will not cancel the
key event. This parameter can also be an instance of HotKey, in which case all
other parameters are ignored.HotKey.keyDownCharToCode()). If it is an integer, the hot key will match that
keycode value.null the shift key state of the keydown event must match this value
to invoke the hot key.null the control key state of the keydown event must match this value
to invoke the hot key.null the alt key state of the keydown event must match this value
to invoke the hot key.jsx3.Boolean.TRUE or jsx3.Boolean.FALSEjsx3.Boolean.TRUE or jsx3.Boolean.FALSEjsx3.Boolean.TRUE or jsx3.Boolean.FALSEjsx3.Boolean.TRUE or jsx3.Boolean.FALSEjsx3.util.EventDispatcher.subscribe() instead of this method. Whenever a model
event is published, it is published using the EventDispatcher interface as well as by executing
any registered event script.obj.setEvent("alert('hello.');", jsx3.gui.Interactive.EXECUTE);jsx3.gui.Menu instance to display when a user
clicks on this object with the right button. The name is a pointer by-name to a JSX object in the same server.jsx3.gui.Event instance to have the system automatically calculate the x/y position.intLeft also uses an integer. Otherwise, use null.