Java Doc for HtmlRadioButtonGroup.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
         com.salmonllc.html.HtmlRadioButtonGroup

HtmlRadioButtonGroup
public class HtmlRadioButtonGroup extends HtmlFormComponent (Code)
This class is used to create a group of radio buttons that act like a single entity.


Field Summary
final public static  intCAPTIONS_ON_LEFT
    
final public static  intCAPTIONS_ON_RIGHT
    
final public static  intCAPTIONS_ON_TOP
    
final public static  intORIENTATION_HORIZONTAL
    
final public static  intORIENTATION_VERTICAL
    

Constructor Summary
public  HtmlRadioButtonGroup(String name, HtmlPage p)
     Constructs a new HtmlRadioButtonGroup component.
public  HtmlRadioButtonGroup(String name, String theme, HtmlPage p)
     Constructs a new HtmlRadioButtonGroup component.
public  HtmlRadioButtonGroup(String name, String theme, HtmlPage page, String table, String keyColumn, String dispColumn)
     Creates a radio button group plus an associated datastore column based on a simple table with an
integer primary key column and a string column.

Method Summary
public  voidaddOption(String key, String disp)
     Use this method to add new choices to the list.
public  voidaddOption(String key, String disp, String javaScript)
     Use this method to add new choices to the list.
public  intfindOptionIndexOf(String key)
     This method returns the index of the option with the specified key.
public  voidgenerateHTML(java.io.PrintWriter p, int rowNo)
    
public  voidgenerateHTMLDisabled(java.io.PrintWriter p, int rowNo)
    
public  intgetCaptionLayout()
     Returns the caption layout of the component.
public  StringgetFontEndTag()
     This method gets the end font tag for the component.
public  StringgetFontStartTag()
     This method gets the start font tag for the component.
public  StringgetOnClick()
     This method gets the javascript to be executed when the component gets clicked.
public  StringgetOptionKey(int index)
     Use this method get the value of the key at index.
public  StringgetOptionValue(int index)
     Use this method get the value of the option at index.
public  intgetOrientation()
     Returns the orientation of the component.
public  intgetSelectedIndex()
     Returns the index of the selected option.
public  intgetSelectedIndex(int rowNo)
     Returns the index of the selected option.
public  booleangetUseProportions()
    
public  voidinitialize(String table, String keyColumn, String dispColumn, String criteria)
    
public  voidinitialize(String table, String keyColumn, String dispColumn, String criteria, boolean trimResults)
    
public  voidinitialize(String table, String keyColumn, String dispColumn, String criteria, boolean trimResults, boolean toUpper)
    
public  booleanprocessParms(Hashtable parms, int rowNo)
    
public  voidremoveOption(int index)
     Use this method to remove an option from the list.
public  voidresetOptions()
     This method removes all options from the component.
public  voidsetCaptionLayout(int layout)
     Sets the caption layout of the component.
public  voidsetCaptionLayout(String layout)
    
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  voidsetOnClick(String value)
     This method sets the javascript to be executed when the component is checked.
public  voidsetOrientation(int orientation)
     Sets the orientation of the component.
public  voidsetOrientation(String orientation)
    
public  voidsetTabIndex(int val)
    
Parameters:
  sets - the tab index html attribute.
public  voidsetTheme(String theme)
     This method sets the property theme for the component.
public  voidsetUseProportions(boolean use)
    

Field Detail
CAPTIONS_ON_LEFT
final public static int CAPTIONS_ON_LEFT(Code)



CAPTIONS_ON_RIGHT
final public static int CAPTIONS_ON_RIGHT(Code)



CAPTIONS_ON_TOP
final public static int CAPTIONS_ON_TOP(Code)



ORIENTATION_HORIZONTAL
final public static int ORIENTATION_HORIZONTAL(Code)



ORIENTATION_VERTICAL
final public static int ORIENTATION_VERTICAL(Code)




Constructor Detail
HtmlRadioButtonGroup
public HtmlRadioButtonGroup(String name, HtmlPage p)(Code)
Constructs a new HtmlRadioButtonGroup component.
Parameters:
  name - The name of the component
Parameters:
  p - The page the component will be placed in.



HtmlRadioButtonGroup
public HtmlRadioButtonGroup(String name, String theme, HtmlPage p)(Code)
Constructs a new HtmlRadioButtonGroup component.
Parameters:
  name - The name of the component
Parameters:
  theme - The theme to use for loading properties.
Parameters:
  p - The page the component will be placed in.



HtmlRadioButtonGroup
public HtmlRadioButtonGroup(String name, String theme, HtmlPage page, String table, String keyColumn, String dispColumn)(Code)
Creates a radio button group plus an associated datastore column based on a simple table with an
integer primary key column and a string column. Typically the integer is a type value
and the string is a description. A simplifying assumption is that each of the following
is the same:
- name of column in the main table which refers to the simple table
- name of integer column in simple table

Parameters:
  page - com.salmonllc.html.HtmlPage The page hold the new component
Parameters:
  table - - name of table to look up keys and displays from
Parameters:
  keyColumn - - column to get key values from
Parameters:
  dispColumn - - column to get display values from




Method Detail
addOption
public void addOption(String key, String disp)(Code)
Use this method to add new choices to the list.
Parameters:
  key - The internal name of the item (must be unique)
Parameters:
  disp - The value to be displayed on the list.



addOption
public void addOption(String key, String disp, String javaScript)(Code)
Use this method to add new choices to the list.
Parameters:
  key - The internal name of the item (must be unique)
Parameters:
  disp - The value to be displayed on the list.
Parameters:
  javaScript - The javaScript to be executed when the radio button is clicked.



findOptionIndexOf
public int findOptionIndexOf(String key)(Code)
This method returns the index of the option with the specified key. The index of the key or -1 if not found.



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



generateHTMLDisabled
public void generateHTMLDisabled(java.io.PrintWriter p, int rowNo) throws Exception(Code)



getCaptionLayout
public int getCaptionLayout()(Code)
Returns the caption layout of the component. Valid Values are CAPTIONS_ON_LEFT, CAPTIONS_ON_RIGHT and CAPTIONS_ON_TOP.



getFontEndTag
public String getFontEndTag()(Code)
This method gets the end font tag for the component.



getFontStartTag
public String getFontStartTag()(Code)
This method gets the start font tag for the component.



getOnClick
public String getOnClick()(Code)
This method gets the javascript to be executed when the component gets clicked.



getOptionKey
public String getOptionKey(int index)(Code)
Use this method get the value of the key at index.



getOptionValue
public String getOptionValue(int index)(Code)
Use this method get the value of the option at index.



getOrientation
public int getOrientation()(Code)
Returns the orientation of the component. Valid Values are ORIENTATION_VERTICAL and ORIENTATION_HORIZONTAL.



getSelectedIndex
public int getSelectedIndex()(Code)
Returns the index of the selected option.



getSelectedIndex
public int getSelectedIndex(int rowNo)(Code)
Returns the index of the selected option.



getUseProportions
public boolean getUseProportions()(Code)
Returns whether or not to use a fixed percent of available space for each button in the radio button group (Horizontal Orientation only)



initialize
public void initialize(String table, String keyColumn, String dispColumn, String criteria)(Code)
Creates a radio button group based on a table with an
integer primary key column (typically an id) and a string column.
A simplifying assumption is that each of the following
is the same:
- name of column in the main table which refers to the simple table
- name of integer column in simple table

Parameters:
  table - - name of table to look up keys and displays from
Parameters:
  keyColumn - - column to get key values from
Parameters:
  dispColumn - - column to get display values from
Parameters:
  criteria - - optional selection criteria



initialize
public void initialize(String table, String keyColumn, String dispColumn, String criteria, boolean trimResults)(Code)
Creates a radio button group based on a table with an
integer primary key column (typically an id) and a string column.
A simplifying assumption is that each of the following
is the same:
- name of column in the main table which refers to the simple table
- name of integer column in simple table

Parameters:
  table - - name of table to look up keys and displays from
Parameters:
  keyColumn - - column to get key values from
Parameters:
  dispColumn - - column to get display values from
Parameters:
  criteria - - optional selection criteria
Parameters:
  trimResults - - optional value that trims the rtesults before adding the options



initialize
public void initialize(String table, String keyColumn, String dispColumn, String criteria, boolean trimResults, boolean toUpper)(Code)
Creates a radio button group based on a table with an
integer primary key column (typically an id) and a string column.
A simplifying assumption is that each of the following
is the same:
- name of column in the main table which refers to the simple table
- name of integer column in simple table

Parameters:
  table - - name of table to look up keys and displays from
Parameters:
  keyColumn - - column to get key values from
Parameters:
  dispColumn - - column to get display values from
Parameters:
  criteria - - optional selection criteria
Parameters:
  trimResults - - optional value that trims the rtesults before adding the options
Parameters:
  toUpper - - optional value that makes the option's kays and display values all upper case



processParms
public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)



removeOption
public void removeOption(int index)(Code)
Use this method to remove an option from the list.
Parameters:
  index - The index of the option to remove.



resetOptions
public void resetOptions()(Code)
This method removes all options from the component.



setCaptionLayout
public void setCaptionLayout(int layout)(Code)
Sets the caption layout of the component. Valid Values are CAPTIONS_ON_LEFT, CAPTIONS_ON_RIGHT and CAPTIONS_ON_TOP.



setCaptionLayout
public void setCaptionLayout(String layout)(Code)
This method sets the layout property for the component



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.



setOnClick
public void setOnClick(String value)(Code)
This method sets the javascript to be executed when the component is checked.



setOrientation
public void setOrientation(int orientation)(Code)
Sets the orientation of the component. Valid Values are ORIENTATION_VERTICAL and ORIENTATION_HORIZONTAL.



setOrientation
public void setOrientation(String orientation)(Code)
This method sets the orientation property for the component



setTabIndex
public void setTabIndex(int val)(Code)

Parameters:
  sets - the tab index html attribute. You can also pass TAB_INDEX_DEFAULT to use the default tab index for the component or TAB_INDEX_NONE to keep this component from being tabbed to



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



setUseProportions
public void setUseProportions(boolean use)(Code)
This method is used to set whether the each button in the group will occupy a fixed percent available space (Horizontal Orientation only)



Fields inherited from com.salmonllc.html.HtmlFormComponent
final public static int FORCE_CASE_LOWER(Code)(Java Doc)
final public static int FORCE_CASE_NONE(Code)(Java Doc)
final public static int FORCE_CASE_UPPER(Code)(Java Doc)
final public static int TAB_INDEX_DEFAULT(Code)(Java Doc)
final public static int TAB_INDEX_NONE(Code)(Java Doc)
protected String _disabledFontEndTag(Code)(Java Doc)
protected String _disabledFontStartTag(Code)(Java Doc)
protected DataStoreBuffer _dsBuff(Code)(Java Doc)
protected int _dsColNo(Code)(Java Doc)
protected boolean _enabled(Code)(Java Doc)
protected Vector _events(Code)(Java Doc)
protected int _forceCase(Code)(Java Doc)
protected Vector _listeners(Code)(Java Doc)
protected String _value(Code)(Java Doc)

Methods inherited from com.salmonllc.html.HtmlFormComponent
protected void addEvent(ValueChangedEvent e)(Code)(Java Doc)
public void addValueChangedListener(ValueChangedListener l)(Code)(Java Doc)
protected void convertValue()(Code)(Java Doc)
public boolean executeEvent(int eventType) throws Exception(Code)(Java Doc)
protected int findEvent(int rowNo)(Code)(Java Doc)
protected void generateAutoTabJavaScript(PrintWriter pw)(Code)(Java Doc)
abstract public void generateHTML(java.io.PrintWriter p, int row) throws Exception(Code)(Java Doc)
public DataStoreBuffer getBoundDataStore()(Code)(Java Doc)
public int getColumnNumber()(Code)(Java Doc)
protected String getDataStoreValue(int rowNo)(Code)(Java Doc)
public String getDisabledFontEndTag()(Code)(Java Doc)
public String getDisabledFontStartTag()(Code)(Java Doc)
public String getDisplayFormat()(Code)(Java Doc)
public String getDisplayFormatLocaleKey()(Code)(Java Doc)
public boolean getEnabled()(Code)(Java Doc)
protected ValueChangedEvent getEventAt(int index)(Code)(Java Doc)
protected int getEventCount()(Code)(Java Doc)
public String getJavaScriptName()(Code)(Java Doc)
public String getTheme()(Code)(Java Doc)
public String getValue()(Code)(Java Doc)
public String getValue(int rowNo)(Code)(Java Doc)
protected String getValue(int rowNo, boolean remove)(Code)(Java Doc)
public boolean isEnabled()(Code)(Java Doc)
public boolean isValid()(Code)(Java Doc)
protected void processLocaleInfo()(Code)(Java Doc)
protected void removeEvent(int index)(Code)(Java Doc)
public void removeValueChangedListener(ValueChangedListener l)(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setColumn(DataStoreBuffer ds, int columnNo)(Code)(Java Doc)
public void setColumn(DataStoreBuffer ds, String columnName)(Code)(Java Doc)
public void setDisabledFontEndTag(String tag)(Code)(Java Doc)
public void setDisabledFontStartTag(String tag)(Code)(Java Doc)
public void setDisplayFormat(String format)(Code)(Java Doc)
public void setDisplayFormatLocaleKey(String formatLocaleKey)(Code)(Java Doc)
public void setEnabled(boolean enabled)(Code)(Java Doc)
public void setEnabled(boolean enabled, boolean useDisableAttribute)(Code)(Java Doc)
public void setFocus()(Code)(Java Doc)
public void setFocus(boolean select)(Code)(Java Doc)
public void setFocus(int row, boolean select)(Code)(Java Doc)
public void setFocus(int row)(Code)(Java Doc)
public void setForceCase(int mode)(Code)(Java Doc)
protected boolean setTempValue(String value, int rowNo, int eventNo)(Code)(Java Doc)
public void setTheme(String theme)(Code)(Java Doc)
public void setValue(String value)(Code)(Java Doc)
public void setValue(String value, int rowNo)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public void updateLocale()(Code)(Java Doc)
protected boolean valuesEqual(Object newValue, Object oldValue)(Code)(Java Doc)
protected void writeFocusScript(java.io.PrintWriter p, int row)(Code)(Java Doc)

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.