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

All known Subclasses:   com.salmonllc.html.HtmlEMailComponent,  com.salmonllc.html.HtmlFontChooser,  com.salmonllc.html.HtmlStateComponent,  com.salmonllc.html.HtmlTriStateCheckBox,  com.salmonllc.html.HtmlSSNSingleComponent,  com.salmonllc.html.HtmlRadioButton,  com.salmonllc.html.HtmlHiddenField,  com.salmonllc.jsp.JspRowSelector,  com.salmonllc.html.HtmlCheckBox,  com.salmonllc.html.HtmlDropDownList,  com.salmonllc.html.HtmlRadioButtonGroup,  com.salmonllc.html.HtmlSSNComponent,  com.salmonllc.wml.WmlFormComponent,  com.salmonllc.html.HtmlZipCodeComponent,  com.salmonllc.html.HtmlTextEdit,  com.salmonllc.html.HtmlFormattedEntryComponent,  com.salmonllc.html.HtmlListBox,  com.salmonllc.html.HtmlRowSelector,  com.salmonllc.html.HtmlTelephoneComponent,  com.salmonllc.html.HtmlMultiListBox,  com.salmonllc.html.HtmlColorChooser,  com.salmonllc.html.HtmlDecimalComponent,  com.salmonllc.html.HtmlFractionComponent,  com.salmonllc.html.HtmlDateComponent,  com.salmonllc.html.HtmlPasswordEdit,  com.salmonllc.html.HtmlMultiLineTextEdit,  com.salmonllc.html.HtmlRowHighlighter,
HtmlFormComponent
abstract public class HtmlFormComponent extends HtmlComponent (Code)
This type is the base class for all Html Form Controls


Field Summary
final public static  intFORCE_CASE_LOWER
    
final public static  intFORCE_CASE_NONE
    
final public static  intFORCE_CASE_UPPER
    
final public static  intTAB_INDEX_DEFAULT
    
final public static  intTAB_INDEX_NONE
    
protected  String_disabledFontEndTag
    
protected  String_disabledFontStartTag
    
protected  DataStoreBuffer_dsBuff
    
protected  int_dsColNo
    
protected  boolean_enabled
    
protected  Vector_events
    
protected  int_forceCase
    
protected  Vector_listeners
    
protected  String_value
    

Constructor Summary
public  HtmlFormComponent(String name, HtmlPage p)
     HtmlFormComponent constructor.
public  HtmlFormComponent(String name, String theme, HtmlPage p)
    

Method Summary
protected  voidaddEvent(ValueChangedEvent e)
    
public  voidaddValueChangedListener(ValueChangedListener l)
     This method adds a listener the will be notified when the value in this component changes.
protected  voidconvertValue()
     This method converts the text value according to case conversion if necessary.
public  booleanexecuteEvent(int eventType)
    
protected  intfindEvent(int rowNo)
    
protected  voidgenerateAutoTabJavaScript(PrintWriter pw)
    
abstract public  voidgenerateHTML(java.io.PrintWriter p, int row)
    
public  DataStoreBuffergetBoundDataStore()
    
public  intgetColumnNumber()
     This method returns the number of the column in the data store that this component is bound to.
protected  StringgetDataStoreValue(int rowNo)
    
public  StringgetDisabledFontEndTag()
     Returns the end font tag for disabled mode.
public  StringgetDisabledFontStartTag()
     Returns the font start tag for disabled mode.
public  StringgetDisplayFormat()
    
public  StringgetDisplayFormatLocaleKey()
    
public  booleangetEnabled()
     Returns true if the component is enabled to respond to user input.
protected  ValueChangedEventgetEventAt(int index)
    
protected  intgetEventCount()
    
public  StringgetJavaScriptName()
    
public  StringgetTheme()
     This method returns the property theme for the component.
public  StringgetValue()
     This method gets the value of the data in the component.
public  StringgetValue(int rowNo)
     This method gets the value of the data in the component at the specified row number.
protected  StringgetValue(int rowNo, boolean remove)
     This method gets the value of the data in the component at the specified row number.
public  booleanisEnabled()
    
public  booleanisValid()
    
protected  voidprocessLocaleInfo()
    
protected  voidremoveEvent(int index)
    
public  voidremoveValueChangedListener(ValueChangedListener l)
     This method removes a listener from the list that will be notified if the text in the component changes.
public  voidreset()
     This method will clear all pending events from the event queue for this component.
public  voidsetColumn(DataStoreBuffer ds, int columnNo)
     Use this method to bind the component to a column in a DataStore.
public  voidsetColumn(DataStoreBuffer ds, String columnName)
     Use this method to bind the component to a column in a DataStore.
public  voidsetDisabledFontEndTag(String tag)
     Sets the font end tag for disabled mode.
public  voidsetDisabledFontStartTag(String tag)
     Sets the font tag for disabled mode.
public  voidsetDisplayFormat(String format)
     Sets the Display format used by this component.
public  voidsetDisplayFormatLocaleKey(String formatLocaleKey)
    
public  voidsetEnabled(boolean enabled)
     Enables or disables the ability of this component to respond to user input.
public  voidsetEnabled(boolean enabled, boolean useDisableAttribute)
     Enables or disables the ability of this component to respond to user input.
public  voidsetFocus()
     This method will set the edit focus to this component.
public  voidsetFocus(boolean select)
     This method will set the edit focus to this component.
public  voidsetFocus(int row, boolean select)
     This method will set the edit focus to this component for a particular row in a datastore.
public  voidsetFocus(int row)
     This method will set the edit focus to this component for a particular row in a datastore.
public  voidsetForceCase(int mode)
     This method sets case-conversion mode for incoming text.
protected  booleansetTempValue(String value, int rowNo, int eventNo)
    
public  voidsetTheme(String theme)
     This method sets the property theme for the component.
public  voidsetValue(String value)
     This method sets the value of the component.
public  voidsetValue(String value, int rowNo)
     This method sets the value of the component at the specified row number.
public  StringtoString()
     This method returns the name of the component.
public  voidupdateLocale()
    
protected  booleanvaluesEqual(Object newValue, Object oldValue)
    
protected  voidwriteFocusScript(java.io.PrintWriter p, int row)
    

Field Detail
FORCE_CASE_LOWER
final public static int FORCE_CASE_LOWER(Code)



FORCE_CASE_NONE
final public static int FORCE_CASE_NONE(Code)



FORCE_CASE_UPPER
final public static int FORCE_CASE_UPPER(Code)



TAB_INDEX_DEFAULT
final public static int TAB_INDEX_DEFAULT(Code)



TAB_INDEX_NONE
final public static int TAB_INDEX_NONE(Code)



_disabledFontEndTag
protected String _disabledFontEndTag(Code)



_disabledFontStartTag
protected String _disabledFontStartTag(Code)



_dsBuff
protected DataStoreBuffer _dsBuff(Code)



_dsColNo
protected int _dsColNo(Code)



_enabled
protected boolean _enabled(Code)



_events
protected Vector _events(Code)



_forceCase
protected int _forceCase(Code)



_listeners
protected Vector _listeners(Code)



_value
protected String _value(Code)




Constructor Detail
HtmlFormComponent
public HtmlFormComponent(String name, HtmlPage p)(Code)
HtmlFormComponent constructor.
Parameters:
  name - java.lang.String
Parameters:
  p - com.salmonllc.html.HtmlPage



HtmlFormComponent
public HtmlFormComponent(String name, String theme, HtmlPage p)(Code)
HtmlFormComponent constructor
Parameters:
  name - java.lang.String
Parameters:
  theme - The theme to use for loading properties.
Parameters:
  p - com.salmonllc.html.HtmlPage




Method Detail
addEvent
protected void addEvent(ValueChangedEvent e)(Code)



addValueChangedListener
public void addValueChangedListener(ValueChangedListener l)(Code)
This method adds a listener the will be notified when the value in this component changes.
Parameters:
  l - The listener to add.



convertValue
protected void convertValue()(Code)
This method converts the text value according to case conversion if necessary.



executeEvent
public boolean executeEvent(int eventType) throws Exception(Code)



findEvent
protected int findEvent(int rowNo)(Code)



generateAutoTabJavaScript
protected void generateAutoTabJavaScript(PrintWriter pw)(Code)
Generates a script for form components to automatically tab to the next field
Parameters:
  pw -



generateHTML
abstract public void generateHTML(java.io.PrintWriter p, int row) throws Exception(Code)



getBoundDataStore
public DataStoreBuffer getBoundDataStore()(Code)
This method returns the datastore that this component is bound to



getColumnNumber
public int getColumnNumber()(Code)
This method returns the number of the column in the data store that this component is bound to.



getDataStoreValue
protected String getDataStoreValue(int rowNo)(Code)
Gets the value in the datastore bound to this component



getDisabledFontEndTag
public String getDisabledFontEndTag()(Code)
Returns the end font tag for disabled mode. java.lang.String



getDisabledFontStartTag
public String getDisabledFontStartTag()(Code)
Returns the font start tag for disabled mode. java.lang.String



getDisplayFormat
public String getDisplayFormat()(Code)
Returns the Display format used by this component



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



getEnabled
public boolean getEnabled()(Code)
Returns true if the component is enabled to respond to user input. boolean



getEventAt
protected ValueChangedEvent getEventAt(int index)(Code)



getEventCount
protected int getEventCount()(Code)



getJavaScriptName
public String getJavaScriptName()(Code)
Returns the name of this component would be referenced by if used in javascript code



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



getValue
public String getValue()(Code)
This method gets the value of the data in the component.



getValue
public String getValue(int rowNo)(Code)
This method gets the value of the data in the component at the specified row number.



getValue
protected String getValue(int rowNo, boolean remove)(Code)
This method gets the value of the data in the component at the specified row number.



isEnabled
public boolean isEnabled()(Code)



isValid
public boolean isValid()(Code)



processLocaleInfo
protected void processLocaleInfo()(Code)



removeEvent
protected void removeEvent(int index)(Code)



removeValueChangedListener
public void removeValueChangedListener(ValueChangedListener l)(Code)
This method removes a listener from the list that will be notified if the text in the component changes.
Parameters:
  l - The listener to remove.



reset
public void reset()(Code)
This method will clear all pending events from the event queue for this component.



setColumn
public void setColumn(DataStoreBuffer ds, int columnNo)(Code)
Use this method to bind the component to a column in a DataStore.
Parameters:
  ds - The datastore to bind to.
Parameters:
  columnNo - The index of the column to bind to.



setColumn
public void setColumn(DataStoreBuffer ds, String columnName)(Code)
Use this method to bind the component to a column in a DataStore.
Parameters:
  ds - The datastore to bind to.
Parameters:
  columnName - The name of the column to bind to.



setDisabledFontEndTag
public void setDisabledFontEndTag(String tag)(Code)
Sets the font end tag for disabled mode.
Parameters:
  tag - java.lang.String



setDisabledFontStartTag
public void setDisabledFontStartTag(String tag)(Code)
Sets the font tag for disabled mode.
Parameters:
  tag - java.lang.String



setDisplayFormat
public void setDisplayFormat(String format)(Code)
Sets the Display format used by this component. This only works if the component is bound to a Datastore column.



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



setEnabled
public void setEnabled(boolean enabled)(Code)
Enables or disables the ability of this component to respond to user input.
Parameters:
  enabled - boolean



setEnabled
public void setEnabled(boolean enabled, boolean useDisableAttribute)(Code)
Enables or disables the ability of this component to respond to user input.
Parameters:
  enabled - boolean
Parameters:
  useDisableAttribute - whether to use the HTML disable attribute or not



setFocus
public void setFocus()(Code)
This method will set the edit focus to this component.



setFocus
public void setFocus(boolean select)(Code)
This method will set the edit focus to this component. If select is true it additionally highlights the input area of the component.



setFocus
public void setFocus(int row, boolean select)(Code)
This method will set the edit focus to this component for a particular row in a datastore. If select is true it additionally highlights the input area of the component.



setFocus
public void setFocus(int row)(Code)
This method will set the edit focus to this component for a particular row in a datastore.



setForceCase
public void setForceCase(int mode)(Code)
This method sets case-conversion mode for incoming text.
Parameters:
  mode - int One of FORCE_CASE_NONE, FORCE_CASE_UPPER, FORCE_CASE_LOWER.



setTempValue
protected boolean setTempValue(String value, int rowNo, int eventNo)(Code)



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



setValue
public void setValue(String value)(Code)
This method sets the value of the component.



setValue
public void setValue(String value, int rowNo)(Code)
This method sets the value of the component at the specified row number.



toString
public String toString()(Code)
This method returns the name of the component.



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



valuesEqual
protected boolean valuesEqual(Object newValue, Object oldValue)(Code)



writeFocusScript
protected void writeFocusScript(java.io.PrintWriter p, int row)(Code)



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.