Java Doc for Interactive.java in  » Ajax » dwr » jsx3 » gui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » dwr » jsx3.gui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.directwebremoting.proxy.io.Context
      jsx3.lang.Object
         jsx3.gui.Interactive

Interactive
public class Interactive extends jsx3.lang.Object (Code)
Mixin interface. Provides functionality to subclasses of jsx3.gui.Painted that allows them to publish model events. Note that this class requires that implementors of this class extends the jsx3.gui.Painted class and implement the jsx3.util.EventDispatcher interface
author:
   Joe Walker [joe at getahead dot org]
author:
   DRAPGEN - Dwr Reverse Ajax Proxy GENerator


Field Summary
final public static  StringADOPT
    
final public static  StringAFTER_APPEND
    
final public static  StringAFTER_COMMIT
    
final public static  StringAFTER_EDIT
    
final public static  StringAFTER_MOVE
    
final public static  StringAFTER_REORDER
    
final public static  StringAFTER_RESIZE
    
final public static  StringAFTER_RESIZE_VIEW
    
final public static  StringAFTER_SORT
    
final public static  StringBEFORE_APPEND
    
final public static  StringBEFORE_DROP
    
final public static  StringBEFORE_EDIT
    
final public static  StringBEFORE_MOVE
    
final public static  StringBEFORE_RESIZE
    
final public static  StringBEFORE_SELECT
    
final public static  StringBEFORE_SORT
    
final public static  StringCANCEL_DROP
    
final public static  StringCHANGE
    
final public static  StringCTRL_DROP
    
final public static  StringDATA
    
final public static  StringDESTROY
    
final public static  StringDRAG
    
final public static  StringDROP
    
final public static  StringEXECUTE
    
final public static  StringFOCUS_STYLE
    
final public static  StringHIDE
    
final public static  StringINCR_CHANGE
    
final public static  StringINPUT
    
final public static  StringJSXBLUR
    
final public static  StringJSXCHANGE
    
final public static  StringJSXCLICK
    
final public static  StringJSXDOUBLECLICK
    
final public static  StringJSXFOCUS
    
final public static  StringJSXKEYDOWN
    
final public static  StringJSXKEYPRESS
    
final public static  StringJSXKEYUP
    
final public static  StringJSXLOAD
    
final public static  StringJSXMOUSEDOWN
    
final public static  StringJSXMOUSEOUT
    
final public static  StringJSXMOUSEOVER
    
final public static  StringJSXMOUSEUP
    
final public static  StringJSXMOUSEWHEEL
    
final public static  StringMENU
    
final public static  StringSCROLL
    
final public static  StringSELECT
    
final public static  StringSHOW
    
final public static  StringSPYGLASS
    
final public static  StringTOGGLE
    

Constructor Summary
public  Interactive(Context context, String extension, ScriptProxy scriptProxy)
    

Method Summary
public  jsx3.lang.ObjectdoEvent(String strType, jsx3.lang.Object objContext)
     Publishes a model event.
public  TdoEvent(String strType, jsx3.lang.Object objContext, Class<T> returnType)
     Publishes a model event.
public  voidgetCanDrag(org.directwebremoting.proxy.Callback<Integer> callback)
     Returns whether is object supports programmatic drag, meanining it will allow any contained item to be dragged and dropped on another container supporting drop.
public  voidgetCanDrop(org.directwebremoting.proxy.Callback<Integer> callback)
     Returns whether this object can be the target of a drop event.
public  voidgetCanMove(org.directwebremoting.proxy.Callback<Integer> callback)
     Returns whether is object can be moved around the screen (this is not the same as drag/drop).
public  voidgetCanSpy(org.directwebremoting.proxy.Callback<Integer> callback)
     Returns whether is object can be spyglassed.
public  voidgetEvent(String strType, org.directwebremoting.proxy.Callback<String> callback)
     Returns the event script registered for the given event type.
public  jsx3.lang.ObjectgetEvents()
     Returns the associative array containing all the registered event script of this object.
public  TgetEvents(Class<T> returnType)
     Returns the associative array containing all the registered event script of this object.
public  voidgetMenu(org.directwebremoting.proxy.Callback<String> callback)
     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.
public  voidhasEvent(String strType, org.directwebremoting.proxy.Callback<String> callback)
     Returns true if there is a event script registered for the given event type.
public  jsx3.gui.HotKeyregisterHotKey(org.directwebremoting.proxy.CodeBlock vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt)
     Registers a hot key with this JSX model node.
public  jsx3.gui.HotKeyregisterHotKey(jsx3.gui.HotKey vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt)
     Registers a hot key with this JSX model node.
public  jsx3.gui.HotKeyregisterHotKey(jsx3.gui.HotKey vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt)
     Registers a hot key with this JSX model node.
public  jsx3.gui.HotKeyregisterHotKey(org.directwebremoting.proxy.CodeBlock vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt)
     Registers a hot key with this JSX model node.
public  jsx3.gui.HotKeyregisterHotKey(String vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt)
     Registers a hot key with this JSX model node.
public  jsx3.gui.HotKeyregisterHotKey(String vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt)
     Registers a hot key with this JSX model node.
public  jsx3.gui.InteractiveremoveEvent(String strType)
     Removes an event script registered for the given model event type.
public  TremoveEvent(String strType, Class<T> returnType)
     Removes an event script registered for the given model event type.
public  jsx3.gui.InteractiveremoveEvents()
     Removes all events scripts registered with this object.
public  TremoveEvents(Class<T> returnType)
     Removes all events scripts registered with this object.
public  jsx3.gui.InteractivesetCanDrag(int bDrag)
     Sets whether is object supports programmatic drag, meanining it will allow any contained item to be dragged/dropped.
public  jsx3.gui.InteractivesetCanDrop(int bDrop)
     Sets whether this object can be the target of a drop event.
public  jsx3.gui.InteractivesetCanMove(int bMovable)
     Sets whether is object can be moved around the screen (this is not the same as drag/drop).
public  jsx3.gui.InteractivesetCanSpy(int bSpy)
     Sets whether is object can be spyglassed.
public  jsx3.gui.InteractivesetEvent(String strScript, String strType)
     Programmatically sets an event of this instance.
public  jsx3.gui.InteractivesetMenu(String strMenu)
     Sets the name of the jsx3.gui.Menu instance to display when a user clicks on this object with the right button.
public  voidsetSpyStyles(String strCSS)
     Sets the CSS definition to apply to an HTML element when a spyglass is shown for that element
Parameters:
  strCSS - valid CSS.
public  voidshowSpy(String strHTML, jsx3.gui.Event intLeft, int intTop)
     called by 'window.setTimeout()' to display the spyglass hover for a given object;
Parameters:
  strHTML - HTML/text to display in the spyglass; as the spyglass does not define a height/width, this content willhave improved layout if it specifies a preferred width in its in-line-style or referenced-css rule.
Parameters:
  intLeft - use an integer to specify an on-screen location; otherwise, use a jsx3.gui.Event instance to have the system automatically calculate the x/y position.
Parameters:
  intTop - use an integer if intLeft also uses an integer.
public  voidshowSpy(String strHTML, int intLeft, int intTop)
     called by 'window.setTimeout()' to display the spyglass hover for a given object;
Parameters:
  strHTML - HTML/text to display in the spyglass; as the spyglass does not define a height/width, this content willhave improved layout if it specifies a preferred width in its in-line-style or referenced-css rule.
Parameters:
  intLeft - use an integer to specify an on-screen location; otherwise, use a jsx3.gui.Event instance to have the system automatically calculate the x/y position.
Parameters:
  intTop - use an integer if intLeft also uses an integer.

Field Detail
ADOPT
final public static String ADOPT(Code)



AFTER_APPEND
final public static String AFTER_APPEND(Code)



AFTER_COMMIT
final public static String AFTER_COMMIT(Code)



AFTER_EDIT
final public static String AFTER_EDIT(Code)



AFTER_MOVE
final public static String AFTER_MOVE(Code)



AFTER_REORDER
final public static String AFTER_REORDER(Code)



AFTER_RESIZE
final public static String AFTER_RESIZE(Code)



AFTER_RESIZE_VIEW
final public static String AFTER_RESIZE_VIEW(Code)



AFTER_SORT
final public static String AFTER_SORT(Code)



BEFORE_APPEND
final public static String BEFORE_APPEND(Code)



BEFORE_DROP
final public static String BEFORE_DROP(Code)



BEFORE_EDIT
final public static String BEFORE_EDIT(Code)



BEFORE_MOVE
final public static String BEFORE_MOVE(Code)



BEFORE_RESIZE
final public static String BEFORE_RESIZE(Code)



BEFORE_SELECT
final public static String BEFORE_SELECT(Code)



BEFORE_SORT
final public static String BEFORE_SORT(Code)



CANCEL_DROP
final public static String CANCEL_DROP(Code)



CHANGE
final public static String CHANGE(Code)



CTRL_DROP
final public static String CTRL_DROP(Code)



DATA
final public static String DATA(Code)



DESTROY
final public static String DESTROY(Code)



DRAG
final public static String DRAG(Code)



DROP
final public static String DROP(Code)



EXECUTE
final public static String EXECUTE(Code)



FOCUS_STYLE
final public static String FOCUS_STYLE(Code)



HIDE
final public static String HIDE(Code)



INCR_CHANGE
final public static String INCR_CHANGE(Code)



INPUT
final public static String INPUT(Code)



JSXBLUR
final public static String JSXBLUR(Code)



JSXCHANGE
final public static String JSXCHANGE(Code)



JSXCLICK
final public static String JSXCLICK(Code)



JSXDOUBLECLICK
final public static String JSXDOUBLECLICK(Code)



JSXFOCUS
final public static String JSXFOCUS(Code)



JSXKEYDOWN
final public static String JSXKEYDOWN(Code)



JSXKEYPRESS
final public static String JSXKEYPRESS(Code)



JSXKEYUP
final public static String JSXKEYUP(Code)



JSXLOAD
final public static String JSXLOAD(Code)



JSXMOUSEDOWN
final public static String JSXMOUSEDOWN(Code)



JSXMOUSEOUT
final public static String JSXMOUSEOUT(Code)



JSXMOUSEOVER
final public static String JSXMOUSEOVER(Code)



JSXMOUSEUP
final public static String JSXMOUSEUP(Code)



JSXMOUSEWHEEL
final public static String JSXMOUSEWHEEL(Code)



MENU
final public static String MENU(Code)



SCROLL
final public static String SCROLL(Code)



SELECT
final public static String SELECT(Code)



SHOW
final public static String SHOW(Code)



SPYGLASS
final public static String SPYGLASS(Code)



TOGGLE
final public static String TOGGLE(Code)




Constructor Detail
Interactive
public Interactive(Context context, String extension, ScriptProxy scriptProxy)(Code)
All reverse ajax proxies need context to work from
Parameters:
  scriptProxy - The place we are writing scripts to
Parameters:
  context - The script that got us to where we are now




Method Detail
doEvent
public jsx3.lang.Object doEvent(String strType, jsx3.lang.Object objContext)(Code)
Publishes a model event. This method both evaluates any registered event script for the given event type and publishes the event through the EventDispatcher interface. This method ensures that any registered event script is executed in isolation to prevent most side effects.
Parameters:
  strType - the event type, one of the model event types defined as static fields in this class
Parameters:
  objContext - JavaScript object array with name/value pairs that provide a localvariable stack for the execution of the event script. This argument is also passed as the contextproperty of the event object that is published through the EventDispatcher interface. the result of evaluating the event script or null if not event script is registered



doEvent
public T doEvent(String strType, jsx3.lang.Object objContext, Class<T> returnType)(Code)
Publishes a model event. This method both evaluates any registered event script for the given event type and publishes the event through the EventDispatcher interface. This method ensures that any registered event script is executed in isolation to prevent most side effects.
Parameters:
  strType - the event type, one of the model event types defined as static fields in this class
Parameters:
  objContext - JavaScript object array with name/value pairs that provide a localvariable stack for the execution of the event script. This argument is also passed as the contextproperty of the event object that is published through the EventDispatcher interface.
Parameters:
  returnType - The expected return type the result of evaluating the event script or null if not event script is registered



getCanDrag
public void getCanDrag(org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Returns whether is object supports programmatic drag, meanining it will allow any contained item to be dragged and dropped on another container supporting drop.
Parameters:
  callback - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE



getCanDrop
public void getCanDrop(org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Returns whether this object can be the target of a drop event.
Parameters:
  callback - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE



getCanMove
public void getCanMove(org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Returns whether is object can be moved around the screen (this is not the same as drag/drop).
Parameters:
  callback - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE



getCanSpy
public void getCanSpy(org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Returns whether is object can be spyglassed.
Parameters:
  callback - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE



getEvent
public void getEvent(String strType, org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns the event script registered for the given event type. This script could have been set by the setEvent() method or during component deserialization.
Parameters:
  strType - the event type, one of the model event types defined as static fields in this class
Parameters:
  callback - the JavaScript event script



getEvents
public jsx3.lang.Object getEvents()(Code)
Returns the associative array containing all the registered event script of this object. This method returns the instance field itself and not a copy. an associative array mapping event type to event script



getEvents
public T getEvents(Class<T> returnType)(Code)
Returns the associative array containing all the registered event script of this object. This method returns the instance field itself and not a copy.
Parameters:
  returnType - The expected return type an associative array mapping event type to event script



getMenu
public void getMenu(org.directwebremoting.proxy.Callback<String> callback)(Code)
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.



hasEvent
public void hasEvent(String strType, org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns true if there is a event script registered for the given event type.
Parameters:
  strType - the event type, one of the model event types defined as static fields in this class
Parameters:
  callback - the JavaScript event script



registerHotKey
public jsx3.gui.HotKey registerHotKey(org.directwebremoting.proxy.CodeBlock vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code)
Registers a hot key with this JSX model node. All 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.
Parameters:
  vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey, in which case allother parameters are ignored.
Parameters:
  vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode()). If it is an integer, the hot key will match thatkeycode value.
Parameters:
  bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key.
Parameters:
  bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key.
Parameters:
  bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key.



registerHotKey
public jsx3.gui.HotKey registerHotKey(jsx3.gui.HotKey vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code)
Registers a hot key with this JSX model node. All 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.
Parameters:
  vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey, in which case allother parameters are ignored.
Parameters:
  vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode()). If it is an integer, the hot key will match thatkeycode value.
Parameters:
  bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key.
Parameters:
  bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key.
Parameters:
  bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key.



registerHotKey
public jsx3.gui.HotKey registerHotKey(jsx3.gui.HotKey vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code)
Registers a hot key with this JSX model node. All 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.
Parameters:
  vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey, in which case allother parameters are ignored.
Parameters:
  vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode()). If it is an integer, the hot key will match thatkeycode value.
Parameters:
  bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key.
Parameters:
  bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key.
Parameters:
  bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key.



registerHotKey
public jsx3.gui.HotKey registerHotKey(org.directwebremoting.proxy.CodeBlock vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code)
Registers a hot key with this JSX model node. All 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.
Parameters:
  vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey, in which case allother parameters are ignored.
Parameters:
  vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode()). If it is an integer, the hot key will match thatkeycode value.
Parameters:
  bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key.
Parameters:
  bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key.
Parameters:
  bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key.



registerHotKey
public jsx3.gui.HotKey registerHotKey(String vntCallback, int vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code)
Registers a hot key with this JSX model node. All 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.
Parameters:
  vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey, in which case allother parameters are ignored.
Parameters:
  vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode()). If it is an integer, the hot key will match thatkeycode value.
Parameters:
  bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key.
Parameters:
  bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key.
Parameters:
  bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key.



registerHotKey
public jsx3.gui.HotKey registerHotKey(String vntCallback, String vntKey, boolean bShift, boolean bControl, boolean bAlt)(Code)
Registers a hot key with this JSX model node. All 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.
Parameters:
  vntCallback - either a function, or the name of a method bound to this object.When a keydown event bubbles up to this object that matches the hot key created by this method, this functionis called on this object. If this function returns false then this hot key will not cancel thekey event. This parameter can also be an instance of HotKey, in which case allother parameters are ignored.
Parameters:
  vntKey - if this parameter is a String, the hot key matches that key (the keycode to match isdetermined by HotKey.keyDownCharToCode()). If it is an integer, the hot key will match thatkeycode value.
Parameters:
  bShift - if not null the shift key state of the keydown event must match this valueto invoke the hot key.
Parameters:
  bControl - if not null the control key state of the keydown event must match this valueto invoke the hot key.
Parameters:
  bAlt - if not null the alt key state of the keydown event must match this valueto invoke the hot key. the registered hot key.



removeEvent
public jsx3.gui.Interactive removeEvent(String strType)(Code)
Removes an event script registered for the given model event type.
Parameters:
  strType - the event type, one of the model event types defined as static fields in this class this object



removeEvent
public T removeEvent(String strType, Class<T> returnType)(Code)
Removes an event script registered for the given model event type.
Parameters:
  strType - the event type, one of the model event types defined as static fields in this class
Parameters:
  returnType - The expected return type this object



removeEvents
public jsx3.gui.Interactive removeEvents()(Code)
Removes all events scripts registered with this object. this object



removeEvents
public T removeEvents(Class<T> returnType)(Code)
Removes all events scripts registered with this object.
Parameters:
  returnType - The expected return type this object



setCanDrag
public jsx3.gui.Interactive setCanDrag(int bDrag)(Code)
Sets whether is object supports programmatic drag, meanining it will allow any contained item to be dragged/dropped. Implementing classes can decide whether to consult this value or ignore it.
Parameters:
  bDrag - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE this object



setCanDrop
public jsx3.gui.Interactive setCanDrop(int bDrop)(Code)
Sets whether this object can be the target of a drop event. Implementing classes can decide whether to consult this value or ignore it.
Parameters:
  bDrop - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE this object



setCanMove
public jsx3.gui.Interactive setCanMove(int bMovable)(Code)
Sets whether is object can be moved around the screen (this is not the same as drag/drop). Implementing classes can decide whether to consult this value or ignore it.
Parameters:
  bMovable - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE this object



setCanSpy
public jsx3.gui.Interactive setCanSpy(int bSpy)(Code)
Sets whether is object can be spyglassed. Implementing classes can decide whether to consult this value or ignore it.
Parameters:
  bSpy - jsx3.Boolean.TRUE or jsx3.Boolean.FALSE this object



setEvent
public jsx3.gui.Interactive setEvent(String strScript, String strType)(Code)
Programmatically sets an event of this instance. Sets the script that will execute when this object publishes a model event. The script value will be saved in the serialization file of a component. Not all classes that implement this interface will publish events of every type. Consult the documentation of a class for a description of the events it publishes. For programmatic registering of event handlers when persistence in a serialization file is not required, consider using jsx3.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.
Parameters:
  strScript - the actual JavaScript code that will execute when the given event is published.For example: obj.setEvent("alert('hello.');", jsx3.gui.Interactive.EXECUTE);
Parameters:
  strType - the event type. Must be one of the model event types defined as static fields in this class reference to this



setMenu
public jsx3.gui.Interactive setMenu(String strMenu)(Code)
Sets the name of the 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.
Parameters:
  strMenu - name or id (jsxname or jsxid) of the context menu this object



setSpyStyles
public void setSpyStyles(String strCSS)(Code)
Sets the CSS definition to apply to an HTML element when a spyglass is shown for that element
Parameters:
  strCSS - valid CSS. For example, text-decoration:underline;color:red;



showSpy
public void showSpy(String strHTML, jsx3.gui.Event intLeft, int intTop)(Code)
called by 'window.setTimeout()' to display the spyglass hover for a given object;
Parameters:
  strHTML - HTML/text to display in the spyglass; as the spyglass does not define a height/width, this content willhave improved layout if it specifies a preferred width in its in-line-style or referenced-css rule.
Parameters:
  intLeft - use an integer to specify an on-screen location; otherwise, use a jsx3.gui.Event instance to have the system automatically calculate the x/y position.
Parameters:
  intTop - use an integer if intLeft also uses an integer. Otherwise, use null.



showSpy
public void showSpy(String strHTML, int intLeft, int intTop)(Code)
called by 'window.setTimeout()' to display the spyglass hover for a given object;
Parameters:
  strHTML - HTML/text to display in the spyglass; as the spyglass does not define a height/width, this content willhave improved layout if it specifies a preferred width in its in-line-style or referenced-css rule.
Parameters:
  intLeft - use an integer to specify an on-screen location; otherwise, use a jsx3.gui.Event instance to have the system automatically calculate the x/y position.
Parameters:
  intTop - use an integer if intLeft also uses an integer. Otherwise, use null.



Methods inherited from jsx3.lang.Object
public void ignoreReturn()(Code)(Java Doc)

Methods inherited from org.directwebremoting.proxy.io.Context
protected String getContextPath()(Code)(Java Doc)
protected ScriptBuffer getInitScript()(Code)(Java Doc)
protected ScriptProxy getScriptProxy()(Code)(Java Doc)
protected void setInitScript(ScriptBuffer initScript)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.