Java Doc for Heavyweight.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.Heavyweight

Heavyweight
public class Heavyweight extends jsx3.lang.Object (Code)
GUI utility class that provides a way to display HTML content on-screen in an HTML equivalent of a heavyweight container. Instances of this class are often used to display menu lists, select lists, spyglass, and focus-rectangles. An instance of this class cannot be serialized, it is merely a run-time construct similar to an alert or input box.
author:
   Joe Walker [joe at getahead dot org]
author:
   DRAPGEN - Dwr Reverse Ajax Proxy GENerator


Field Summary
final public static  intDEFAULTZINDEX
    

Constructor Summary
public  Heavyweight(Context context, String extension, ScriptProxy scriptProxy)
    
public  Heavyweight(String strId, jsx3.gui.Painted objOwner)
     instance initializer
Parameters:
  strId - id to identify this HW instance among all others; this id will be used by both jsx3.gui.Heavyweight (to index it in the hash) and by the browser as the HTML tag's "id" attribute.

Method Summary
public  jsx3.gui.HeavyweightGO(String strId)
    
public  jsx3.gui.HeavyweightaddRule(int intPixel, String strPoint, int intOff, String strAxis)
     adds a POSITION RULE ruleset (a simple structure/hash) to the array of position rules; Note that POSITION RULE objects are used by the show() method to determine the best possible location for a heavyweight item
Parameters:
  intPixel - left position (in pixels) for the anchorpoint the heavyweight instance will try to layout in context of
Parameters:
  strPoint - Defines one of the valid 9 compass points: 4 primary: (N, S, E, W); 4 secondary: (NE, SE, SW, NW); and origin: (O).
public  jsx3.gui.HeavyweightaddXRule(jsx3.gui.Event objAnchor, String strAnchorPoint, String strPoint, int intOff)
     adds a POSITION RULE ruleset (X value) (a simple structure/hash) to the array of position rules; Note that POSITION RULE objects are used by the show() method to determine the best possible location for a heavyweight item
Parameters:
  objAnchor - Either an event, or an on-screen HTML element
Parameters:
  strAnchorPoint - REQUIRED if @objAnchor is an HTML element; when used, defines one of the valid 9 compass points: 4 primary: (N, S, E, W); 4 secondary: (NE, SE, SW, NW); and origin: (O).
public  jsx3.gui.HeavyweightaddXRule(jsx3.lang.Object objAnchor, String strAnchorPoint, String strPoint, int intOff)
     adds a POSITION RULE ruleset (X value) (a simple structure/hash) to the array of position rules; Note that POSITION RULE objects are used by the show() method to determine the best possible location for a heavyweight item
Parameters:
  objAnchor - Either an event, or an on-screen HTML element
Parameters:
  strAnchorPoint - REQUIRED if @objAnchor is an HTML element; when used, defines one of the valid 9 compass points: 4 primary: (N, S, E, W); 4 secondary: (NE, SE, SW, NW); and origin: (O).
public  jsx3.gui.HeavyweightaddYRule(jsx3.lang.Object objAnchor, String strAnchorPoint, String strPoint, int intOff)
     adds a POSITION RULE ruleset (Y value) (a simple structure/hash) to the array of position rules; Note that POSITION RULE objects are used by the show() method to determine the best possible location for a heavyweight item
Parameters:
  objAnchor - Either an event or an on-screen HTML element
Parameters:
  strAnchorPoint - REQUIRED if @objAnchor is an HTML element; when used, defines one of the valid 9 compass points: 4 primary: (N, S, E, W); 4 secondary: (NE, SE, SW, NW); and origin: (O).
public  jsx3.gui.HeavyweightaddYRule(jsx3.gui.Event objAnchor, String strAnchorPoint, String strPoint, int intOff)
     adds a POSITION RULE ruleset (Y value) (a simple structure/hash) to the array of position rules; Note that POSITION RULE objects are used by the show() method to determine the best possible location for a heavyweight item
Parameters:
  objAnchor - Either an event or an on-screen HTML element
Parameters:
  strAnchorPoint - REQUIRED if @objAnchor is an HTML element; when used, defines one of the valid 9 compass points: 4 primary: (N, S, E, W); 4 secondary: (NE, SE, SW, NW); and origin: (O).
public  voidapplyRatio()
    
public  voidapplyRules(String strAxis, int intSize)
     can be called if show() has been called; allows an existing HW window to re-apply its rules (used for complex layouts requiring a multi-pass)
Parameters:
  strAxis - character (string) representing whether the rule is for the X or Y axis.
public  voiddestroy()
    
public  voidgetDomParent(org.directwebremoting.proxy.Callback<String> callback)
    
public  voidgetHTML(org.directwebremoting.proxy.Callback<String> callback)
    
public  voidgetHeight(org.directwebremoting.proxy.Callback<Integer> callback)
     Returns the CSS height property (in pixels); if this value is set, it is assumed that the Heavyweight container will not have its height lessened to fit on-screen.
public  voidgetId(org.directwebremoting.proxy.Callback<String> callback)
    
public  voidgetOverflow(org.directwebremoting.proxy.Callback<String> callback)
    
public  voidgetPoint(int objGUI, String strPoint)
    
public  voidgetPoint(jsx3.gui.Block objGUI, String strPoint)
    
public  voidgetPoint(String objGUI, String strPoint)
    
public  voidgetPositionRule(int intIndex, String strAxis, org.directwebremoting.proxy.Callback<String> callback)
     Returns a POSITION RULE object at the given index; Note that POSITION RULE objects are JavaScript objects that implement the following 3 properties: _pixel (the on-screen point around which to pivot/place), _offset (amount to nudge the placement), _point (compass direction)
Parameters:
  intIndex - the index (in rank order of execution) of the POSITION RULEing rule set to apply (it is assumed that at least one POSITION RULE ruleset exists)
Parameters:
  strAxis - character (string) representing whether the rule is for the X or Y axis.
public  jsx3.lang.ObjectgetPositionRules()
     Returns a JavaScript object array (hash).
public  TgetPositionRules(Class<T> returnType)
     Returns a JavaScript object array (hash).
public  voidgetRatio(org.directwebremoting.proxy.Callback<Integer> callback)
     Returns the ratio (a decimal between .01 and .99) to multiply the "Rise + Run" by.
public  voidgetRendered(jsx3.gui.Event objGUI, org.directwebremoting.proxy.Callback<String> callback)
    
public  voidgetRendered(String objGUI, org.directwebremoting.proxy.Callback<String> callback)
    
public  voidgetWidth(org.directwebremoting.proxy.Callback<Integer> callback)
     Returns the CSS width property (in pixels); if this value is set, it is assumed that the Heavyweight container will not have its width lessened to fit on-screen.
public  voidgetZIndex(org.directwebremoting.proxy.Callback<Integer> callback)
    
public  voidhide()
    
public  jsx3.gui.HeavyweightsetDomParent(String objGUI)
     Sets an object reference to the Browser Element parent to be used; if none specified, the browser BODY will be used.
public  jsx3.gui.HeavyweightsetHTML(String strHTML, boolean bRepaint)
    
public  jsx3.gui.HeavyweightsetHeight(int intHeight)
     Sets the CSS height property (in pixels); if this value is set, it is assumed that the Heavyweight container will not have its height lessened to fit on-screen.
public  jsx3.gui.HeavyweightsetOverflow(String strOverflow)
    
public  jsx3.gui.HeavyweightsetRatio(Integer vntRatio)
     Sets the ratio (a decimal between .01 and .99) to multiply the "Rise + Run" by.
public  jsx3.gui.HeavyweightsetVisibility(String strVisibility)
     if the HW instance has an on-screen VIEW, this method can be used to toggle its visibility; it has no effect on the MODEL; it is most commonly used when "[object].show(false);" is called, allowing the developer to manually adjust layout before actually showing the HW instance.
public  voidsetWidth(int intWidth)
     Sets the CSS width property (in pixels); if this value is set, it is assumed that the Heavyweight container will not have its width lessened to fit on-screen.
public  voidsetZIndex(int intZIndex)
    
public  voidshow(boolean bDisplay)
    

Field Detail
DEFAULTZINDEX
final public static int DEFAULTZINDEX(Code)
32000




Constructor Detail
Heavyweight
public Heavyweight(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



Heavyweight
public Heavyweight(String strId, jsx3.gui.Painted objOwner)(Code)
instance initializer
Parameters:
  strId - id to identify this HW instance among all others; this id will be used by both jsx3.gui.Heavyweight (to index it in the hash) and by the browser as the HTML tag's "id" attribute. If no ID is passed, a unique ID will be assigned by the system and is available by calling, [object].getId();
Parameters:
  objOwner -




Method Detail
GO
public jsx3.gui.Heavyweight GO(String strId)(Code)
Returns the instance of the heavyweight object with the given ID; to get the on-screen HTML instance call: jsx3.gui.Heavyweight.GO([id]).getRendered()
Parameters:
  strId - unique ID for the heavyweight instance



addRule
public jsx3.gui.Heavyweight addRule(int intPixel, String strPoint, int intOff, String strAxis)(Code)
adds a POSITION RULE ruleset (a simple structure/hash) to the array of position rules; Note that POSITION RULE objects are used by the show() method to determine the best possible location for a heavyweight item
Parameters:
  intPixel - left position (in pixels) for the anchorpoint the heavyweight instance will try to layout in context of
Parameters:
  strPoint - Defines one of the valid 9 compass points: 4 primary: (N, S, E, W); 4 secondary: (NE, SE, SW, NW); and origin: (O). Note that itis from this point (on the Heavyweight instance) that the heavyweight item will try to position itself
Parameters:
  intOff - offset (in pixels) by which to nudge the vertical placement of the HW instance before displaying (useful for submenus, for example, where their left has a -10px offset to overlay the parent menu item)
Parameters:
  strAxis - character (string) representing whether the rule is for the X or Y axis. Rememeber to capitalize! this object (this)



addXRule
public jsx3.gui.Heavyweight addXRule(jsx3.gui.Event objAnchor, String strAnchorPoint, String strPoint, int intOff)(Code)
adds a POSITION RULE ruleset (X value) (a simple structure/hash) to the array of position rules; Note that POSITION RULE objects are used by the show() method to determine the best possible location for a heavyweight item
Parameters:
  objAnchor - Either an event, or an on-screen HTML element
Parameters:
  strAnchorPoint - REQUIRED if @objAnchor is an HTML element; when used, defines one of the valid 9 compass points: 4 primary: (N, S, E, W); 4 secondary: (NE, SE, SW, NW); and origin: (O). Note that itis from this point (on @objAnchor) that the heavyweight item will try to position itself
Parameters:
  strPoint - Defines one of the valid 9 compass points: 4 primary: (N, S, E, W); 4 secondary: (NE, SE, SW, NW); and origin: (O). Note that itis from this point (on the Heavyweight instance) that the heavyweight item will try to position itself
Parameters:
  intOff - offset (in pixels) by which to nudge the horizontal placement of the HW instance before displaying (useful for submenus, for example, where their left has a -10px offset to overlay the parent menu item) this object (this)



addXRule
public jsx3.gui.Heavyweight addXRule(jsx3.lang.Object objAnchor, String strAnchorPoint, String strPoint, int intOff)(Code)
adds a POSITION RULE ruleset (X value) (a simple structure/hash) to the array of position rules; Note that POSITION RULE objects are used by the show() method to determine the best possible location for a heavyweight item
Parameters:
  objAnchor - Either an event, or an on-screen HTML element
Parameters:
  strAnchorPoint - REQUIRED if @objAnchor is an HTML element; when used, defines one of the valid 9 compass points: 4 primary: (N, S, E, W); 4 secondary: (NE, SE, SW, NW); and origin: (O). Note that itis from this point (on @objAnchor) that the heavyweight item will try to position itself
Parameters:
  strPoint - Defines one of the valid 9 compass points: 4 primary: (N, S, E, W); 4 secondary: (NE, SE, SW, NW); and origin: (O). Note that itis from this point (on the Heavyweight instance) that the heavyweight item will try to position itself
Parameters:
  intOff - offset (in pixels) by which to nudge the horizontal placement of the HW instance before displaying (useful for submenus, for example, where their left has a -10px offset to overlay the parent menu item) this object (this)



addYRule
public jsx3.gui.Heavyweight addYRule(jsx3.lang.Object objAnchor, String strAnchorPoint, String strPoint, int intOff)(Code)
adds a POSITION RULE ruleset (Y value) (a simple structure/hash) to the array of position rules; Note that POSITION RULE objects are used by the show() method to determine the best possible location for a heavyweight item
Parameters:
  objAnchor - Either an event or an on-screen HTML element
Parameters:
  strAnchorPoint - REQUIRED if @objAnchor is an HTML element; when used, defines one of the valid 9 compass points: 4 primary: (N, S, E, W); 4 secondary: (NE, SE, SW, NW); and origin: (O). Note that itis from this point (on @objAnchor) that the heavyweight item will try to position itself
Parameters:
  strPoint - Defines one of the valid 9 compass points: 4 primary: (N, S, E, W); 4 secondary: (NE, SE, SW, NW); and origin: (O). Note that itis from this point (on the Heavyweight instance) that the heavyweight item will try to position itself
Parameters:
  intOff - offset (in pixels) by which to nudge the vertical placement of the HW instance before displaying (useful for submenus, for example, where their left has a -10px offset to overlay the parent menu item) this object (this)



addYRule
public jsx3.gui.Heavyweight addYRule(jsx3.gui.Event objAnchor, String strAnchorPoint, String strPoint, int intOff)(Code)
adds a POSITION RULE ruleset (Y value) (a simple structure/hash) to the array of position rules; Note that POSITION RULE objects are used by the show() method to determine the best possible location for a heavyweight item
Parameters:
  objAnchor - Either an event or an on-screen HTML element
Parameters:
  strAnchorPoint - REQUIRED if @objAnchor is an HTML element; when used, defines one of the valid 9 compass points: 4 primary: (N, S, E, W); 4 secondary: (NE, SE, SW, NW); and origin: (O). Note that itis from this point (on @objAnchor) that the heavyweight item will try to position itself
Parameters:
  strPoint - Defines one of the valid 9 compass points: 4 primary: (N, S, E, W); 4 secondary: (NE, SE, SW, NW); and origin: (O). Note that itis from this point (on the Heavyweight instance) that the heavyweight item will try to position itself
Parameters:
  intOff - offset (in pixels) by which to nudge the vertical placement of the HW instance before displaying (useful for submenus, for example, where their left has a -10px offset to overlay the parent menu item) this object (this)



applyRatio
public void applyRatio()(Code)
can be called if show() has been called; resets the ratio (width/total) of the VIEW to be that of [object].getRatio()



applyRules
public void applyRules(String strAxis, int intSize)(Code)
can be called if show() has been called; allows an existing HW window to re-apply its rules (used for complex layouts requiring a multi-pass)
Parameters:
  strAxis - character (string) representing whether the rule is for the X or Y axis. Rememeber to capitalize!
Parameters:
  intSize -



destroy
public void destroy()(Code)
destroy's the on-screen VIEW for the HW container AND removes any reference to the instance from the hash; Destroy() affects the MODEL and the VIEW



getDomParent
public void getDomParent(org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns an object reference to the Browser Element parent to be used; if none specified, the browser BODY will be used



getHTML
public void getHTML(org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns the HTML content to display inside the HW instance on-screen



getHeight
public void getHeight(org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Returns the CSS height property (in pixels); if this value is set, it is assumed that the Heavyweight container will not have its height lessened to fit on-screen.
Parameters:
  callback - height (in pixels)



getId
public void getId(org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns the unique id for this heavyweight instance



getOverflow
public void getOverflow(org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns the overflow property for CONTENTS of the HW container; it is assumed that anytime a perfect fit cannot occur that the content will have its overflow property set to 'auto' unless specified otherwise
Parameters:
  callback - [jsx3.gui.Block.OVERFLOWSCROLL, jsx3.gui.Block.OVERFLOWHIDDEN, jsx3.gui.Block.OVERFLOWEXPAND]



getPoint
public void getPoint(int objGUI, String strPoint)(Code)
Returns a JavaScript object with properties: X,Y (Left and Top); relating to the 4 primary (N, S, E, W), 4 secondary (NE, SE, SW, NW), and origin (O) compass positions for O
Parameters:
  objGUI - GUI object in the browser DOM (typically an HTML element such as a DIV or SPAN) for which to provide the X,Y for
Parameters:
  strPoint - a character denoting one of the valid 9 compass points: 4 primary: (N, S, E, W); 4 secondary: (NE, SE, SW, NW); and origin: (O)



getPoint
public void getPoint(jsx3.gui.Block objGUI, String strPoint)(Code)
Returns a JavaScript object with properties: X,Y (Left and Top); relating to the 4 primary (N, S, E, W), 4 secondary (NE, SE, SW, NW), and origin (O) compass positions for O
Parameters:
  objGUI - GUI object in the browser DOM (typically an HTML element such as a DIV or SPAN) for which to provide the X,Y for
Parameters:
  strPoint - a character denoting one of the valid 9 compass points: 4 primary: (N, S, E, W); 4 secondary: (NE, SE, SW, NW); and origin: (O)



getPoint
public void getPoint(String objGUI, String strPoint)(Code)
Returns a JavaScript object with properties: X,Y (Left and Top); relating to the 4 primary (N, S, E, W), 4 secondary (NE, SE, SW, NW), and origin (O) compass positions for O
Parameters:
  objGUI - GUI object in the browser DOM (typically an HTML element such as a DIV or SPAN) for which to provide the X,Y for
Parameters:
  strPoint - a character denoting one of the valid 9 compass points: 4 primary: (N, S, E, W); 4 secondary: (NE, SE, SW, NW); and origin: (O)



getPositionRule
public void getPositionRule(int intIndex, String strAxis, org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns a POSITION RULE object at the given index; Note that POSITION RULE objects are JavaScript objects that implement the following 3 properties: _pixel (the on-screen point around which to pivot/place), _offset (amount to nudge the placement), _point (compass direction)
Parameters:
  intIndex - the index (in rank order of execution) of the POSITION RULEing rule set to apply (it is assumed that at least one POSITION RULE ruleset exists)
Parameters:
  strAxis - character (string) representing whether the rule is for the X or Y axis. Rememeber to capitalize!



getPositionRules
public jsx3.lang.Object getPositionRules()(Code)
Returns a JavaScript object array (hash). This hash contains the Y rules and the X rules for positioning the object



getPositionRules
public T getPositionRules(Class<T> returnType)(Code)
Returns a JavaScript object array (hash). This hash contains the Y rules and the X rules for positioning the object
Parameters:
  returnType - The expected return type



getRatio
public void getRatio(org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Returns the ratio (a decimal between .01 and .99) to multiply the "Rise + Run" by. When applied by the 'show' command during a double-pass, a width to height ratio can be established to provide a consistent L&F for the text content. For example, a value of .8 would mean that the width of the heavyweight container would represent 80% and the height would represent 20% of the total perimiter



getRendered
public void getRendered(jsx3.gui.Event objGUI, org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns handle/reference to the Heavyweight Object's on-screen counterpartÑbasically a handle to a DHTML SPAN;
Parameters:
  objGUI - optional argument improves efficiency if provided.
Parameters:
  callback - Browser-Native DHTML object



getRendered
public void getRendered(String objGUI, org.directwebremoting.proxy.Callback<String> callback)(Code)
Returns handle/reference to the Heavyweight Object's on-screen counterpartÑbasically a handle to a DHTML SPAN;
Parameters:
  objGUI - optional argument improves efficiency if provided.
Parameters:
  callback - Browser-Native DHTML object



getWidth
public void getWidth(org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Returns the CSS width property (in pixels); if this value is set, it is assumed that the Heavyweight container will not have its width lessened to fit on-screen.
Parameters:
  callback - width (in pixels)



getZIndex
public void getZIndex(org.directwebremoting.proxy.Callback<Integer> callback)(Code)
Returns the z-index property; assumes jsx3.gui.Heavyweight.DEFAULTZINDEX if none supplied



hide
public void hide()(Code)
destorys the on-screen VIEW for the HW container; Hide() only affects the VIEW; this is not the same as setting visibility to "hidden", which doesn't actually destroy the VIEW



setDomParent
public jsx3.gui.Heavyweight setDomParent(String objGUI)(Code)
Sets an object reference to the Browser Element parent to be used; if none specified, the browser BODY will be used. Note that this method must be called before setting any point rules for the hW instance, so those functions know the true origin from which to calculate left/top positions; returns ref to self
Parameters:
  objGUI - HTML element in the browser this



setHTML
public jsx3.gui.Heavyweight setHTML(String strHTML, boolean bRepaint)(Code)
Sets the HTML content to display inside the HW instance on-screen; returns ref to self
Parameters:
  strHTML - HTML
Parameters:
  bRepaint - this



setHeight
public jsx3.gui.Heavyweight setHeight(int intHeight)(Code)
Sets the CSS height property (in pixels); if this value is set, it is assumed that the Heavyweight container will not have its height lessened to fit on-screen. returns reference to self to facilitate method chaining;
Parameters:
  intHeight - height (in pixels) this object



setOverflow
public jsx3.gui.Heavyweight setOverflow(String strOverflow)(Code)
Sets the overflow property for CONTENTS of the HW container; it is assumed that anytime a perfect fit cannot occur that the content will have its overflow property set to 'auto' unless specified otherwise returns reference to self to facilitate method chaining;
Parameters:
  strOverflow - [jsx3.gui.Block.OVERFLOWSCROLL, jsx3.gui.Block.OVERFLOWHIDDEN, jsx3.gui.Block.OVERFLOWEXPAND] this object



setRatio
public jsx3.gui.Heavyweight setRatio(Integer vntRatio)(Code)
Sets the ratio (a decimal between .01 and .99) to multiply the "Rise + Run" by. When applied by the 'show' command during a double-pass, a width to height ratio can be established to provide a consistent L&F for the text content. For example, a value of .8 would mean that the width of the heavyweight container would represent 80% and the height would represent 20% of the total perimiter; returns a ref to self
Parameters:
  vntRatio - any value between .01 and .99 this



setVisibility
public jsx3.gui.Heavyweight setVisibility(String strVisibility)(Code)
if the HW instance has an on-screen VIEW, this method can be used to toggle its visibility; it has no effect on the MODEL; it is most commonly used when "[object].show(false);" is called, allowing the developer to manually adjust layout before actually showing the HW instance. returns a ref to self for method chaining
Parameters:
  strVisibility - [jsx3.gui.Block.VISIBILITYVISIBLE, jsx3.gui.Block.VISIBILITYHIDDEN] this object



setWidth
public void setWidth(int intWidth)(Code)
Sets the CSS width property (in pixels); if this value is set, it is assumed that the Heavyweight container will not have its width lessened to fit on-screen.
Parameters:
  intWidth - width (in pixels)



setZIndex
public void setZIndex(int intZIndex)(Code)
Sets the CSS z-index for the object; if null, is passed, jsx3.gui.Heavyweight.DEFAULTZINDEX will be used as the default value
Parameters:
  intZIndex - z-index value



show
public void show(boolean bDisplay)(Code)
Sets the text/HTML for the control to be displayed on-screen; returns reference to self to facilitate method chaining;
Parameters:
  bDisplay - true if null; if true, the heavyweight container is positioned and displayed immediately; if false, the container is painted on-screen, but its CSS 'visibility' property is set to 'hidden', allowing the developer to adjust as needed (via 2-pass, etc) before actually displaying;



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.