Java Doc for HtmlText.java in  » J2EE » Sofia » com » salmonllc » html » 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 » J2EE » Sofia » com.salmonllc.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.salmonllc.html.HtmlComponent
      com.salmonllc.html.HtmlText

HtmlText
public class HtmlText extends HtmlComponent (Code)
This type can be used to add text to your page.


Field Summary
final public static  intAGGREGATE_AVERAGE
    
final public static  intAGGREGATE_COUNT
    
final public static  intAGGREGATE_SUM
    
final public static  StringFONT_BUTTON
    
final public static  StringFONT_COLUMN_CAPTION
    
final public static  StringFONT_DEFAULT
    
final public static  StringFONT_DEFAULT_DISPLAY_DATA
    
final public static  StringFONT_DEFAULT_LABEL_TEXT
    
final public static  StringFONT_EMPHASIS
    
final public static  StringFONT_ERROR
    
final public static  StringFONT_LARGE_LINK
    
final public static  StringFONT_LINK
    
final public static  StringFONT_NONE
    
final public static  StringFONT_PAGE_HEADING
    
final public static  StringFONT_SECTION_HEADING
    
final public static  StringFONT_SMALL
    
final public static  StringFONT_TABLE_HEADING
    
final public static  StringFONT_TEXT_EDIT
    
public  boolean_center
    

Constructor Summary
public  HtmlText(String text, HtmlPage p)
     Constructs an html text object for the page using the default font.
public  HtmlText(String text, HtmlStyle style, HtmlPage p)
     This method was created in VisualAge.
public  HtmlText(String text, String font, HtmlPage p)
    
public  HtmlText(String text, String font, HtmlPage p, String theme)
    
public  HtmlText(String name, String text, HtmlStyle style, HtmlPage p)
    
public  HtmlText(String name, String text, HtmlStyle style, HtmlPage p, String theme)
    
public  HtmlText(String name, String text, String font, HtmlPage p)
    
public  HtmlText(String name, String text, String font, HtmlPage p, String theme)
    

Method Summary
public  voidgenerateHTML(java.io.PrintWriter p, int rowNo)
    
public  voidgenerateHTML(java.io.PrintWriter p, int rowStart, int rowEnd)
    
public  booleangetCenter()
     Use this method to find out if the that the text will be centered.
public  StringgetDisplayFormat()
    
public  StringgetDisplayFormatLocaleKey()
    
public  DataStoreEvaluatorgetExpressionEvaluator()
     This method returns the DataStore Evaluator used to parse and evaluate the expression set in the setExpression method.
public  booleangetFixSpecialHtmlCharacters()
     Returns whether special html characters (<,>,&,; etc..) should be converted to Html Escape Sequences before being generated.
public  StringgetFont()
     This method will return the font type used by this control.See the Constants at the top of the class for valid font types.
public  StringgetOnMouseOut()
    
public  StringgetOnMouseOver()
    
public  HtmlStylegetStyle()
    
public  StringgetText()
     This method returns the text in the component.
public  StringgetText(int rowNo)
     This method returns the text in the component.
public  StringgetTextLocaleKey()
    
public  StringgetTheme()
     This method returns the property theme for the component.
public  booleanprocessParms(java.util.Hashtable h, int row)
    
public  voidsetCenter(boolean center)
     Use this method to indicate that the text should be centered.
public  voidsetDisplayFormat(String displayFormat)
     Sets the default display format for the text.
public  voidsetDisplayFormatLocaleKey(String formatLocaleKey)
    
public  voidsetExpression(DataStoreBuffer ds, DataStoreExpression expression)
    
public  voidsetExpression(DataStoreBuffer ds, DataStoreExpression expression, int aggregateType)
     Use this method to bind this component to an expression in a DataStoreBuffer.
public  voidsetExpression(DataStoreBuffer ds, DataStoreExpression expression, int aggregateType, String format)
     Use this method to bind this component to an expression in a DataStoreBuffer.
public  voidsetExpression(DataStoreBuffer ds, DataStoreExpression expression, String format)
     Use this method to bind this component to an expression in a DataStoreBuffer.
public  voidsetExpression(DataStoreBuffer ds, String expression)
    
public  voidsetExpression(DataStoreBuffer ds, String expression, int aggregateType)
     Use this method to bind this component to an expression in a DataStoreBuffer.
public  voidsetExpression(DataStoreBuffer ds, String expression, int aggregateType, String format)
     Use this method to bind this component to an expression in a DataStoreBuffer.
public  voidsetExpression(DataStoreBuffer ds, String expression, String format)
     Use this method to bind this component to an expression in a DataStoreBuffer.
public  voidsetFixSpecialHtmlCharacters(boolean fix)
     Specify whether special html characters (<,>,&,; etc..) should be converted to Html Escape Sequences before being generated.
public  voidsetFont(String font)
     This method will load the font start and end tags from the page properties object.See the Constants at the top of the class for valid values to pass to this method.
public  voidsetFontEndTag(String value)
     This method sets the end font tag for the component.
public  voidsetFontStartTag(String value)
     This method sets the start font tag for the component.
public  voidsetOnMouseOut(String onMouseOut)
    
public  voidsetOnMouseOver(String onMouseOver)
    
public  voidsetStyle(HtmlStyle style)
    
public  voidsetText(String text)
     This method sets the text that the componnt will generate.
public  voidsetTextLocaleKey(String textLocaleKey)
    
public  voidsetTheme(String theme)
     This method sets the property theme for the component.
public  voidupdateLocale()
    

Field Detail
AGGREGATE_AVERAGE
final public static int AGGREGATE_AVERAGE(Code)



AGGREGATE_COUNT
final public static int AGGREGATE_COUNT(Code)



AGGREGATE_SUM
final public static int AGGREGATE_SUM(Code)



FONT_BUTTON
final public static String FONT_BUTTON(Code)



FONT_COLUMN_CAPTION
final public static String FONT_COLUMN_CAPTION(Code)



FONT_DEFAULT
final public static String FONT_DEFAULT(Code)



FONT_DEFAULT_DISPLAY_DATA
final public static String FONT_DEFAULT_DISPLAY_DATA(Code)



FONT_DEFAULT_LABEL_TEXT
final public static String FONT_DEFAULT_LABEL_TEXT(Code)



FONT_EMPHASIS
final public static String FONT_EMPHASIS(Code)



FONT_ERROR
final public static String FONT_ERROR(Code)



FONT_LARGE_LINK
final public static String FONT_LARGE_LINK(Code)



FONT_LINK
final public static String FONT_LINK(Code)



FONT_NONE
final public static String FONT_NONE(Code)



FONT_PAGE_HEADING
final public static String FONT_PAGE_HEADING(Code)



FONT_SECTION_HEADING
final public static String FONT_SECTION_HEADING(Code)



FONT_SMALL
final public static String FONT_SMALL(Code)



FONT_TABLE_HEADING
final public static String FONT_TABLE_HEADING(Code)



FONT_TEXT_EDIT
final public static String FONT_TEXT_EDIT(Code)



_center
public boolean _center(Code)




Constructor Detail
HtmlText
public HtmlText(String text, HtmlPage p)(Code)
Constructs an html text object for the page using the default font.
Parameters:
  text - The text to place in the page.
Parameters:
  p - The page to put the text in.



HtmlText
public HtmlText(String text, HtmlStyle style, HtmlPage p)(Code)
This method was created in VisualAge.
Parameters:
  text - java.lang.String
Parameters:
  style - com.salmonllc.html.HtmlStyle
Parameters:
  p - com.salmonllc.html.HtmlPage



HtmlText
public HtmlText(String text, String font, HtmlPage p)(Code)
Constructs an html text object
Parameters:
  text - The text to place in the page.
Parameters:
  font - The font to use (See the constants at the top of the class).
Parameters:
  p - The page to put the text in.



HtmlText
public HtmlText(String text, String font, HtmlPage p, String theme)(Code)
Constructs an html text object
Parameters:
  text - The text to place in the page.
Parameters:
  font - The font to use (See the constants at the top of the class).
Parameters:
  p - The page to put the text in.
Parameters:
  theme - The theme to use for loading properties



HtmlText
public HtmlText(String name, String text, HtmlStyle style, HtmlPage p)(Code)
Constructs an html text object
Parameters:
  name - java.lang.String
Parameters:
  text - java.lang.String
Parameters:
  style - com.salmonllc.html.HtmlStyle
Parameters:
  p - com.salmonllc.html.HtmlPage



HtmlText
public HtmlText(String name, String text, HtmlStyle style, HtmlPage p, String theme)(Code)
Constructs an html text object
Parameters:
  name - java.lang.String
Parameters:
  text - java.lang.String
Parameters:
  style - com.salmonllc.html.HtmlStyle
Parameters:
  p - com.salmonllc.html.HtmlPage
Parameters:
  theme - java.lang.String



HtmlText
public HtmlText(String name, String text, String font, HtmlPage p)(Code)
Constructs an html text object
Parameters:
  text - The text to place in the page.
Parameters:
  font - The font to use (See the constants at the top of the class).
Parameters:
  p - The page to put the text in.



HtmlText
public HtmlText(String name, String text, String font, HtmlPage p, String theme)(Code)
Constructs an html text object for the page
Parameters:
  text - The text to place in the page.
Parameters:
  font - The font to use (See the constants at the top of the class).
Parameters:
  p - The page to put the text in.
Parameters:
  theme - The theme to use for loading properties




Method Detail
generateHTML
public void generateHTML(java.io.PrintWriter p, int rowNo) throws Exception(Code)



generateHTML
public void generateHTML(java.io.PrintWriter p, int rowStart, int rowEnd) throws Exception(Code)



getCenter
public boolean getCenter()(Code)
Use this method to find out if the that the text will be centered.



getDisplayFormat
public String getDisplayFormat()(Code)
Gets the default display format for the text String



getDisplayFormatLocaleKey
public String getDisplayFormatLocaleKey()(Code)
Returns the Locale key used for display format



getExpressionEvaluator
public DataStoreEvaluator getExpressionEvaluator()(Code)
This method returns the DataStore Evaluator used to parse and evaluate the expression set in the setExpression method.



getFixSpecialHtmlCharacters
public boolean getFixSpecialHtmlCharacters()(Code)
Returns whether special html characters (<,>,&,; etc..) should be converted to Html Escape Sequences before being generated.



getFont
public String getFont()(Code)
This method will return the font type used by this control.See the Constants at the top of the class for valid font types.



getOnMouseOut
public String getOnMouseOut()(Code)
Use this method to get the javascript that will be executed when the mouse passes over out of all the components



getOnMouseOver
public String getOnMouseOver()(Code)
Use this method to get the javascript that will be executed when the mouse passes over any component in the link



getStyle
public HtmlStyle getStyle()(Code)
Gets the CSS Style used to display this text



getText
public String getText()(Code)
This method returns the text in the component.



getText
public String getText(int rowNo)(Code)
This method returns the text in the component.



getTextLocaleKey
public String getTextLocaleKey()(Code)
Returns the Locale key used for the text of this component



getTheme
public String getTheme()(Code)
This method returns the property theme for the component.



processParms
public boolean processParms(java.util.Hashtable h, int row)(Code)



setCenter
public void setCenter(boolean center)(Code)
Use this method to indicate that the text should be centered.



setDisplayFormat
public void setDisplayFormat(String displayFormat)(Code)
Sets the default display format for the text. This only works for components bound to a datastore expression.
Parameters:
  displayFormat - The displayFormat to set



setDisplayFormatLocaleKey
public void setDisplayFormatLocaleKey(String formatLocaleKey)(Code)
Sets the Locale key used for display format



setExpression
public void setExpression(DataStoreBuffer ds, DataStoreExpression expression) throws Exception(Code)
Use this method to bind this component to an expression in a DataStore
Parameters:
  ds - The DataStore to bind to.
Parameters:
  expression - The expression to bind to.
See Also:   DataStoreEvaluator



setExpression
public void setExpression(DataStoreBuffer ds, DataStoreExpression expression, int aggregateType) throws Exception(Code)
Use this method to bind this component to an expression in a DataStoreBuffer. The expression will be evaluated for all rows in the datastore.
Parameters:
  ds - The DataStore to bind to.
Parameters:
  expression - The expression to bind to.
Parameters:
  aggregateType - valid values are AGGREGATE_SUM and AGGREGATE_COUNT
See Also:   DataStoreEvaluator



setExpression
public void setExpression(DataStoreBuffer ds, DataStoreExpression expression, int aggregateType, String format) throws Exception(Code)
Use this method to bind this component to an expression in a DataStoreBuffer. The expression will be evaluated for all rows in the datastore.
Parameters:
  ds - The DataStore to bind to.
Parameters:
  expression - The expression to bind to.
Parameters:
  aggregateType - valid values are AGGREGATE_SUM and AGGREGATE_COUNT
Parameters:
  format - The patter to use to format the result
See Also:   com.salmonllc.sql.DataStore.setFormat
See Also:   DataStoreEvaluator



setExpression
public void setExpression(DataStoreBuffer ds, DataStoreExpression expression, String format) throws Exception(Code)
Use this method to bind this component to an expression in a DataStoreBuffer. The resulting expression wil be formatted according to the pattern specified.
Parameters:
  ds - The DataStore to bind to.
Parameters:
  expression - The expression to bind to.
Parameters:
  format - The patter to use to format the result
See Also:   com.salmonllc.sql.DataStore.setFormat
See Also:   DataStoreEvaluator



setExpression
public void setExpression(DataStoreBuffer ds, String expression) throws Exception(Code)
Use this method to bind this component to an expression in a DataStore
Parameters:
  ds - The DataStore to bind to.
Parameters:
  expression - The expression to bind to.
See Also:   DataStoreEvaluator



setExpression
public void setExpression(DataStoreBuffer ds, String expression, int aggregateType) throws Exception(Code)
Use this method to bind this component to an expression in a DataStoreBuffer. The expression will be evaluated for all rows in the datastore.
Parameters:
  ds - The DataStore to bind to.
Parameters:
  expression - The expression to bind to.
Parameters:
  aggregateType - valid values are AGGREGATE_SUM and AGGREGATE_COUNT
See Also:   DataStoreEvaluator



setExpression
public void setExpression(DataStoreBuffer ds, String expression, int aggregateType, String format) throws Exception(Code)
Use this method to bind this component to an expression in a DataStoreBuffer. The expression will be evaluated for all rows in the datastore.
Parameters:
  ds - The DataStore to bind to.
Parameters:
  expression - The expression to bind to.
Parameters:
  aggregateType - valid values are AGGREGATE_SUM and AGGREGATE_COUNT
Parameters:
  format - The patter to use to format the result
See Also:   com.salmonllc.sql.DataStore.setFormat
See Also:   DataStoreEvaluator



setExpression
public void setExpression(DataStoreBuffer ds, String expression, String format) throws Exception(Code)
Use this method to bind this component to an expression in a DataStoreBuffer. The resulting expression wil be formatted according to the pattern specified.
Parameters:
  ds - The DataStore to bind to.
Parameters:
  expression - The expression to bind to.
Parameters:
  format - The patter to use to format the result
See Also:   com.salmonllc.sql.DataStore.setFormat
See Also:   DataStoreEvaluator



setFixSpecialHtmlCharacters
public void setFixSpecialHtmlCharacters(boolean fix)(Code)
Specify whether special html characters (<,>,&,; etc..) should be converted to Html Escape Sequences before being generated.



setFont
public void setFont(String font)(Code)
This method will load the font start and end tags from the page properties object.See the Constants at the top of the class for valid values to pass to this method.



setFontEndTag
public void setFontEndTag(String value)(Code)
This method sets the end font tag for the component.



setFontStartTag
public void setFontStartTag(String value)(Code)
This method sets the start font tag for the component.



setOnMouseOut
public void setOnMouseOut(String onMouseOut)(Code)
Use this method to set the javascript that will be executed when the mouse passes over out of all the components



setOnMouseOver
public void setOnMouseOver(String onMouseOver)(Code)
Use this method to set the javascript that will be executed when the mouse passes over any component in the link



setStyle
public void setStyle(HtmlStyle style)(Code)
Sets the CSS Style used to display this text
Parameters:
  style - com.salmonllc.html.HtmlStyle



setText
public void setText(String text)(Code)
This method sets the text that the componnt will generate.



setTextLocaleKey
public void setTextLocaleKey(String textLocaleKey)(Code)
Returns the Locale key used for text



setTheme
public void setTheme(String theme)(Code)
This method sets the property theme for the component.
Parameters:
  theme - The theme to use.



updateLocale
public void updateLocale()(Code)
Updates the text and format for the current local



Fields inherited from com.salmonllc.html.HtmlComponent
final public static int DISABLED_ATTRIBUTE_USE_NEVER(Code)(Java Doc)
final public static int DISABLED_ATTRIBUTE_USE_ON_SUPPORTED_BROWSERS(Code)(Java Doc)
final public static int DISABLED_ATTRIBUTE_USE_SYSTEM_DEFAULT(Code)(Java Doc)
final public static int EVENT_NONE(Code)(Java Doc)
final public static int EVENT_OTHER(Code)(Java Doc)
final public static int EVENT_SUBMIT(Code)(Java Doc)
protected String _class(Code)(Java Doc)
String _fullName(Code)(Java Doc)
protected boolean _generateNewline(Code)(Java Doc)
String _name(Code)(Java Doc)
protected HtmlComponent _parent(Code)(Java Doc)
protected boolean _visible(Code)(Java Doc)
final protected static boolean debug(Code)(Java Doc)

Methods inherited from com.salmonllc.html.HtmlComponent
public void doBinding() throws Exception(Code)(Java Doc)
public String encodeURL(String url)(Code)(Java Doc)
public StringBuffer encodeURL(StringBuffer url)(Code)(Java Doc)
public boolean executeEvent(int eventType) throws Exception(Code)(Java Doc)
public static String fixSpecialHTMLCharacters(String input)(Code)(Java Doc)
abstract public void generateHTML(PrintWriter p, int rowNo) throws Exception(Code)(Java Doc)
public void generateHTML(PrintWriter p, int rowStart, int rowEnd) throws Exception(Code)(Java Doc)
protected String generateImageURL()(Code)(Java Doc)
public void generateInitialHTML(PrintWriter p) throws Exception(Code)(Java Doc)
public String getClassName()(Code)(Java Doc)
public String getDataSource()(Code)(Java Doc)
public int getFormIndex()(Code)(Java Doc)
public String getFormString()(Code)(Java Doc)
public String getFullName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public HtmlPage getPage()(Code)(Java Doc)
public HtmlComponent getParent()(Code)(Java Doc)
protected String getPortletNameSpace()(Code)(Java Doc)
protected String getSiteMapEntryName(String url)(Code)(Java Doc)
public String getTheme()(Code)(Java Doc)
public int getUseDisabledAttribute()(Code)(Java Doc)
public boolean getVisible()(Code)(Java Doc)
public boolean getVisible(boolean checkParents)(Code)(Java Doc)
public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setClassName(String sClass)(Code)(Java Doc)
public void setDataSource(String dataSource)(Code)(Java Doc)
public void setFormIndex(int formIndex)(Code)(Java Doc)
public void setGenerateNewline(boolean enable)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setPage(HtmlPage p)(Code)(Java Doc)
public void setParent(HtmlComponent parent)(Code)(Java Doc)
public void setTheme(String theme)(Code)(Java Doc)
public void setUseDisabledAttribute(int i)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String translateSiteMapURL(String url)(Code)(Java Doc)
protected boolean useDisabledAttribute()(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.