Java Doc for AbstractComponentCG.java in  » Swing-Library » wings3 » org » wings » plaf » css » 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 » Swing Library » wings3 » org.wings.plaf.css 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.wings.plaf.css.AbstractComponentCG

All known Subclasses:   org.wings.plaf.css.SpacerCG,  org.wings.plaf.css.SliderCG,  org.wingx.plaf.css.XTableCG,  org.wingx.plaf.css.PopupFrameCG,  org.wings.plaf.css.AnchorCG,  org.wings.plaf.css.ScrollPaneCG,  org.wings.plaf.css.TableCG,  org.wingx.plaf.css.ColorPickerCG,  org.wings.plaf.css.PopupMenuCG,  org.wings.plaf.css.TreeCG,  org.wings.plaf.css.FormCG,  org.wings.plaf.css.PopupCG,  org.wings.plaf.css.ProgressBarCG,  org.wings.plaf.css.PageScrollerCG,  org.wingx.plaf.css.DivisionCG,  org.wings.plaf.css.FileChooserCG,  org.wings.plaf.css.InternalFrameCG,  org.wings.plaf.css.ContainerCG,  org.wings.plaf.css.SpinnerCG,  org.wings.plaf.css.DesktopPaneCG,  desktop.DpCG,  org.wings.plaf.css.TabbedPaneCG,  org.wings.plaf.css.TextAreaCG,  org.wings.plaf.css.PasswordFieldCG,  org.wings.plaf.css.ComboBoxCG,  org.wingx.plaf.css.XPageScrollerCG,  org.wings.plaf.css.SplitPaneCG,  org.wings.plaf.css.TextFieldCG,  org.wings.plaf.css.AbstractLabelCG,  org.wings.plaf.css.RawTextComponentCG,
AbstractComponentCG
abstract public class AbstractComponentCG implements ComponentCG<COMPONENT_TYPE>,SConstants,Serializable(Code)
Partial CG implementation that is common to all ComponentCGs.
author:
   Holger Engels

Inner Class :protected static class ComponentUpdate extends AbstractUpdate

Field Summary
final public static  SessionLocal<StringBuilder>STRING_BUILDER
     Be careful with this shared StringBuilder.

Constructor Summary
protected  AbstractComponentCG()
    

Method Summary
public  voidcomponentChanged(COMPONENT_TYPE component)
    
final protected  SIcongetBlindIcon()
     Retrieve a empty blind icon.
public  UpdategetComponentUpdate(COMPONENT_TYPE component)
    
protected  StringgetDragHandle(SComponent component)
    
public  voidinstallCG(COMPONENT_TYPE component)
     Install the appropriate CG for component.
final protected  booleanisMSIE(SComponent component)
    
public  voiduninstallCG(COMPONENT_TYPE component)
     Uninstall the CG from component.
protected  voidupdateDragAndDrop(SComponent component)
    
final public  voidwrite(Device device, COMPONENT_TYPE component)
     This method renders the component (and all of its subcomponents) to the given device.
protected static  voidwriteContextMenu(Device device, SComponent component)
     Write JS code for context menus.
final protected  voidwriteDivPrefix(Device device, COMPONENT_TYPE component, Map optionalAttributes)
     Renders a DIV prefix code for a component.
final protected  voidwriteDivSuffix(Device device, COMPONENT_TYPE component)
     Renders the closing suffix for a DIV prefix.
abstract public  voidwriteInternal(Device device, COMPONENT_TYPE component)
    
final protected  voidwritePrefix(Device device, COMPONENT_TYPE component, boolean useTable, Map optionalAttributes)
     Renders the HTML prefix code for a component.
protected  voidwriteRegisterDragHandle(StringBuilder builder, SComponent component)
    
final protected  voidwriteSuffix(Device device, COMPONENT_TYPE component, boolean useTable)
    
final protected  voidwriteTablePrefix(Device device, COMPONENT_TYPE component)
     Renders the default HTML TABLE prefix code for a component.
final protected  voidwriteTablePrefix(Device device, COMPONENT_TYPE component, Map optionalAttributes)
     Renders the default HTML TABLE prefix code for a component.
final protected  voidwriteTableSuffix(Device device, COMPONENT_TYPE component)
     Renders the closing suffix for a TABLE based component prefix.
protected static  voidwriteTooltipMouseOver(Device device, SComponent component)
     Write Tooltip code.

Field Detail
STRING_BUILDER
final public static SessionLocal<StringBuilder> STRING_BUILDER(Code)
Be careful with this shared StringBuilder. Don't use it in situations where unknown code is called, that might use the StringBuilder, too.




Constructor Detail
AbstractComponentCG
protected AbstractComponentCG()(Code)




Method Detail
componentChanged
public void componentChanged(COMPONENT_TYPE component)(Code)



getBlindIcon
final protected SIcon getBlindIcon()(Code)
Retrieve a empty blind icon. A empty blind icon.



getComponentUpdate
public Update getComponentUpdate(COMPONENT_TYPE component)(Code)



getDragHandle
protected String getDragHandle(SComponent component)(Code)



installCG
public void installCG(COMPONENT_TYPE component)(Code)
Install the appropriate CG for component.
Parameters:
  component - the component



isMSIE
final protected boolean isMSIE(SComponent component)(Code)
true if current browser is Microsoft Internet Explorer



uninstallCG
public void uninstallCG(COMPONENT_TYPE component)(Code)
Uninstall the CG from component.
Parameters:
  component - the component



updateDragAndDrop
protected void updateDragAndDrop(SComponent component)(Code)



write
final public void write(Device device, COMPONENT_TYPE component) throws IOException(Code)
This method renders the component (and all of its subcomponents) to the given device.



writeContextMenu
protected static void writeContextMenu(Device device, SComponent component) throws IOException(Code)
Write JS code for context menus. Common implementaton for MSIE and gecko. Utils.writeContextMenu(DeviceSComponent)



writeDivPrefix
final protected void writeDivPrefix(Device device, COMPONENT_TYPE component, Map optionalAttributes) throws IOException(Code)
Renders a DIV prefix code for a component. Discouraged This prefix will handle
  • All CSS Attrbiutes declared on the SComponent
  • Components CSS class
  • Components id
  • Borders and insets (only if TABLE is used)
  • Components ToolTip hooks
  • Components Popup menu hooks
  • components event id eid

Parameters:
  device - The output device to use
Parameters:
  component - The component to render
Parameters:
  optionalAttributes - A map of additional CSS attributes
throws:
  IOException - on error on the output device



writeDivSuffix
final protected void writeDivSuffix(Device device, COMPONENT_TYPE component) throws IOException(Code)
Renders the closing suffix for a DIV prefix.
Parameters:
  device - The output device to use
Parameters:
  component - The component to render
throws:
  IOException - on error on the output device



writeInternal
abstract public void writeInternal(Device device, COMPONENT_TYPE component) throws IOException(Code)



writePrefix
final protected void writePrefix(Device device, COMPONENT_TYPE component, boolean useTable, Map optionalAttributes) throws IOException(Code)
Renders the HTML prefix code for a component. This prefix will handle
  • All CSS Attrbiutes declared on the SComponent
  • Components CSS class
  • Components id
  • Borders and insets (only if TABLE is used)
  • Components ToolTip hooks
  • Components Popup menu hooks
  • components event id eid

Parameters:
  device - The output device to use
Parameters:
  component - The component to render
Parameters:
  useTable - true if it should be wrapped into a TABLE element (recommended!) or a DIV
Parameters:
  optionalAttributes - A map of additional CSS attributes
throws:
  IOException - on error on the output device



writeRegisterDragHandle
protected void writeRegisterDragHandle(StringBuilder builder, SComponent component)(Code)



writeSuffix
final protected void writeSuffix(Device device, COMPONENT_TYPE component, boolean useTable) throws IOException(Code)



writeTablePrefix
final protected void writeTablePrefix(Device device, COMPONENT_TYPE component) throws IOException(Code)
Renders the default HTML TABLE prefix code for a component. This prefix will handle
  • All CSS Attrbiutes declared on the SComponent
  • Components CSS class
  • Components id
  • Borders and insets (only if TABLE is used)
  • Components ToolTip hooks
  • Components Popup menu hooks
  • components event id eid

Parameters:
  device - The output device to use
Parameters:
  component - The component to render
throws:
  IOException - on error on the output device



writeTablePrefix
final protected void writeTablePrefix(Device device, COMPONENT_TYPE component, Map optionalAttributes) throws IOException(Code)
Renders the default HTML TABLE prefix code for a component. This prefix will handle
  • All CSS Attrbiutes declared on the SComponent
  • Components CSS class
  • Components id
  • Borders and insets (only if TABLE is used)
  • Components ToolTip hooks
  • Components Popup menu hooks
  • components event id eid

Parameters:
  device - The output device to use
Parameters:
  component - The component to render
throws:
  IOException - on error on the output device



writeTableSuffix
final protected void writeTableSuffix(Device device, COMPONENT_TYPE component) throws IOException(Code)
Renders the closing suffix for a TABLE based component prefix.
Parameters:
  device - The output device to use
Parameters:
  component - The component to render
throws:
  IOException - on error on the output device



writeTooltipMouseOver
protected static void writeTooltipMouseOver(Device device, SComponent component) throws IOException(Code)
Write Tooltip code. Utils.writeTooltipMouseOver(DeviceSComponent)



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.