Java Doc for HtmlGroupBaseTag.java in  » Library » Apache-beehive-1.0.2-src » org » apache » beehive » netui » tags » 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 » Library » Apache beehive 1.0.2 src » org.apache.beehive.netui.tags.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.beehive.netui.tags.AbstractClassicTag
   org.apache.beehive.netui.tags.html.HtmlGroupBaseTag

All known Subclasses:   org.apache.beehive.netui.tags.html.CheckBoxGroup,  org.apache.beehive.netui.tags.html.RadioButtonGroup,
HtmlGroupBaseTag
abstract public class HtmlGroupBaseTag extends AbstractClassicTag implements IDataAccessProvider,HtmlConstants,IAttributeConsumer(Code)
Abstract base class that provides the dataSource, defaultValue, and optionsDataSource attributes.


Field Summary
final public  StringHORIZONTAL_VALUE
     Constant defining a horizontal layout of the options.
final public  StringVERTICAL_VALUE
     Constant defining a vertical layout of the options.
protected  ConstantRendering_cr
    
protected  String_dataSource
    
protected  Object_defaultValue
    
protected  boolean_disabled
    
protected  String_labelStyle
    
protected  String_labelStyleClass
    
protected  Object_optionsDataSource
    
protected  Object_repCurItem
    
protected  int_repIdx
    
protected  boolean_repeater
    

Constructor Summary
public  HtmlGroupBaseTag()
    

Method Summary
protected  voidaddOption(AbstractRenderAppender buffer, String type, String optionValue, String optionDisplay, int idx, String altText, char accessKey, boolean disabled)
     This will create a new option in the HTML.
protected  StringdoNaming()
    
protected  ObjectevaluateDataSource()
     Return the Object that is represented by the specified data source.
protected  ObjectevaluateOptionsDataSource()
     Return the real value of the optionDataSource attribute.
public  intgetCurrentIndex()
     Get the current index in this iteration.
public  ObjectgetCurrentItem()
     Get the current data item in this IDataAccessProvider.
public  ObjectgetCurrentMetadata()
     Get a metadata object for the current item.
public  StringgetDataSource()
     Gets the tag's data source (can be an expression).
public  StringgetLabelStyle()
     Return the label style for each contained CheckBoxOption..
public  StringgetLabelStyleClass()
     Return the label style class for each contained CheckBoxOption..
protected  ListgetNamingChain()
     Return an ArrayList which represents a chain of INameInterceptor objects.
public  ObjectgetOptionsDataSource()
     Gets the options datasource value (an expression).
public  IDataAccessProvidergetProviderParent()
     Get the parent IDataAccessProvider of a IDataAccessProvider.
final public  StringgetQualifiedDataSourceName()
     Return the qualified name of the checkBoxGroup.
public  booleanisDisabled()
     Returns the boolean value or expression indicating the disable state of the RadioButtonGroup.
abstract public  booleanisMatched(String value, Boolean defaultValue)
    
public  booleanisRepeater()
     Gets whether a repeating contained options is on.
public  booleanisVertical()
     Returns true if vertical layout is set.
protected  voidlocalRelease()
     Release any acquired resources.
public  voidsetAttribute(String name, String value, String facet)
     Base support for the attribute tag.
public  voidsetDataSource(String dataSource)
     Sets the tag's data source (can be an expression).
public  voidsetDefaultValue(Object defaultValue)
     Sets the default value (can be an expression).
public  voidsetDisabled(boolean disabled)
     Set the disable state either with the literal "true" or "false" or with an expression.
public  voidsetLabelStyle(String labelStyle)
     Set the label style for each contained CheckBoxOption.
public  voidsetLabelStyleClass(String labelStyleClass)
     Set the label style class for each contained CheckBoxOption.
public  voidsetOptionsDataSource(Object optionsDataSource)
     Sets the options datasource value (an expression).
public  voidsetOrientation(String orientation)
     Set the orientation of the resulting options group.
public  voidsetRepeater(boolean repeater)
     Set whether repeating of contained options is on.
public  voidsetStyle(String style)
     Sets the style of the rendered html tag.
public  voidsetStyleClass(String styleClass)
     Sets the style class of the rendered html tag.

Field Detail
HORIZONTAL_VALUE
final public String HORIZONTAL_VALUE(Code)
Constant defining a horizontal layout of the options.



VERTICAL_VALUE
final public String VERTICAL_VALUE(Code)
Constant defining a vertical layout of the options.



_cr
protected ConstantRendering _cr(Code)



_dataSource
protected String _dataSource(Code)



_defaultValue
protected Object _defaultValue(Code)



_disabled
protected boolean _disabled(Code)



_labelStyle
protected String _labelStyle(Code)



_labelStyleClass
protected String _labelStyleClass(Code)



_optionsDataSource
protected Object _optionsDataSource(Code)



_repCurItem
protected Object _repCurItem(Code)



_repIdx
protected int _repIdx(Code)



_repeater
protected boolean _repeater(Code)




Constructor Detail
HtmlGroupBaseTag
public HtmlGroupBaseTag()(Code)




Method Detail
addOption
protected void addOption(AbstractRenderAppender buffer, String type, String optionValue, String optionDisplay, int idx, String altText, char accessKey, boolean disabled) throws JspException(Code)
This will create a new option in the HTML.



doNaming
protected String doNaming() throws JspException(Code)



evaluateDataSource
protected Object evaluateDataSource() throws JspException(Code)
Return the Object that is represented by the specified data source. Object
throws:
  JspException -



evaluateOptionsDataSource
protected Object evaluateOptionsDataSource() throws JspException(Code)
Return the real value of the optionDataSource attribute. The value returned will always be an instance of Iterator This value reflects the result of expression evaluation on the options data source. the object that represents the options data source.
throws:
  JspException - when something bad happens



getCurrentIndex
public int getCurrentIndex()(Code)
Get the current index in this iteration. This should be a zero based integer that increments after each iteration. the current index of iteration or 0



getCurrentItem
public Object getCurrentItem()(Code)
Get the current data item in this IDataAccessProvider. the current data item or null



getCurrentMetadata
public Object getCurrentMetadata()(Code)
Get a metadata object for the current item. This interface is optional, and implementations of this interface are provided by the IDataAccessProvider interface. See these implementations for information about their support for current item metadata. the current metadata or null if no metadata can befound or metadata is not supported by a IDataAccessProvider implementation



getDataSource
public String getDataSource()(Code)
Gets the tag's data source (can be an expression). the data source



getLabelStyle
public String getLabelStyle()(Code)
Return the label style for each contained CheckBoxOption.. the label style



getLabelStyleClass
public String getLabelStyleClass()(Code)
Return the label style class for each contained CheckBoxOption.. the label style



getNamingChain
protected List getNamingChain()(Code)
Return an ArrayList which represents a chain of INameInterceptor objects. This method by default returns null and should be overridden by objects that support naming. an ArrayList that will contain INameInterceptor objects.



getOptionsDataSource
public Object getOptionsDataSource()(Code)
Gets the options datasource value (an expression). the options datasource



getProviderParent
public IDataAccessProvider getProviderParent()(Code)
Get the parent IDataAccessProvider of a IDataAccessProvider. A IDataAccessProvider implementation may be able to nest IDataAccessProviders. In this case, it can be useful to be able to also nest access to data from parent providers. Implementations of this interface are left with having to discover and export parents. The return value from this call on an implementing Object can be null. the parent IDataAccessProvider or null if this methodis not supported or the parent can not be found.



getQualifiedDataSourceName
final public String getQualifiedDataSourceName() throws JspException(Code)
Return the qualified name of the checkBoxGroup. The qualified name is the created by calling doNaming(). the qualified name based upon the dataSource name.
throws:
  JspException -



isDisabled
public boolean isDisabled()(Code)
Returns the boolean value or expression indicating the disable state of the RadioButtonGroup. the disabled state (true or false) or an expression



isMatched
abstract public boolean isMatched(String value, Boolean defaultValue)(Code)

Parameters:
  value - boolean



isRepeater
public boolean isRepeater()(Code)
Gets whether a repeating contained options is on. the repeater value



isVertical
public boolean isVertical()(Code)
Returns true if vertical layout is set. true if vertical layout is set



localRelease
protected void localRelease()(Code)
Release any acquired resources.



setAttribute
public void setAttribute(String name, String value, String facet) throws JspException(Code)
Base support for the attribute tag. This is overridden to prevent setting the href attribute. The checkBoxGroup and radioButtonGroup support two facets, input and span. The input is the default and will attach attributes to the <input> element. The span facet will attach attributes to the <span> elements which represents the label.
Parameters:
  name - The name of the attribute. This value may not be null or the empty string.
Parameters:
  value - The value of the attribute. This may contain an expression.
Parameters:
  facet - The name of a facet to which the attribute will be applied. This is optional.
throws:
  JspException - A JspException may be thrown if there is an error setting the attribute.



setDataSource
public void setDataSource(String dataSource) throws JspException(Code)
Sets the tag's data source (can be an expression).
Parameters:
  dataSource - the data source



setDefaultValue
public void setDefaultValue(Object defaultValue) throws JspException(Code)
Sets the default value (can be an expression).
Parameters:
  defaultValue - the default value



setDisabled
public void setDisabled(boolean disabled)(Code)
Set the disable state either with the literal "true" or "false" or with an expression.
Parameters:
  disabled - true or false or an expression



setLabelStyle
public void setLabelStyle(String labelStyle)(Code)
Set the label style for each contained CheckBoxOption.
Parameters:
  labelStyle - the label style



setLabelStyleClass
public void setLabelStyleClass(String labelStyleClass)(Code)
Set the label style class for each contained CheckBoxOption.
Parameters:
  labelStyleClass - the label style



setOptionsDataSource
public void setOptionsDataSource(Object optionsDataSource) throws JspException(Code)
Sets the options datasource value (an expression).
Parameters:
  optionsDataSource - the options datasource



setOrientation
public void setOrientation(String orientation)(Code)
Set the orientation of the resulting options group. The layout will be either horizontal or vertical. The default is horizontal.
Parameters:
  orientation - "vertical" or "horizontal"



setRepeater
public void setRepeater(boolean repeater)(Code)
Set whether repeating of contained options is on.
Parameters:
  repeater - the repeater value ("true" or "false")



setStyle
public void setStyle(String style)(Code)
Sets the style of the rendered html tag.
Parameters:
  style - the html style.



setStyleClass
public void setStyleClass(String styleClass)(Code)
Sets the style class of the rendered html tag.
Parameters:
  styleClass - the html style class.



Fields inherited from org.apache.beehive.netui.tags.AbstractClassicTag
final public static List DefaultNamingChain(Code)(Java Doc)
final protected static String EMPTY_STRING(Code)(Java Doc)
final public static String NETUI_UNIQUE_CNT(Code)(Java Doc)

Methods inherited from org.apache.beehive.netui.tags.AbstractClassicTag
protected String applyNamingChain(String name) throws JspException(Code)(Java Doc)
protected String getErrorsReport()(Code)(Java Doc)
final protected String getIdForTagId(String tagId)(Code)(Java Doc)
protected List getNamingChain()(Code)(Java Doc)
protected Form getNearestForm()(Code)(Java Doc)
protected int getNextId(ServletRequest req)(Code)(Java Doc)
protected IScriptReporter getScriptReporter()(Code)(Java Doc)
abstract public String getTagName()(Code)(Java Doc)
protected Locale getUserLocale()(Code)(Java Doc)
protected boolean hasErrors()(Code)(Java Doc)
protected void localRelease()(Code)(Java Doc)
protected String qualifyAttribute(String name) throws JspException(Code)(Java Doc)
public void registerTagError(String message, Throwable e) throws JspException(Code)(Java Doc)
public void registerTagError(AbstractPageError error) throws JspException(Code)(Java Doc)
protected int reportAndExit(int returnValue) throws JspException(Code)(Java Doc)
protected void reportErrors() throws JspException(Code)(Java Doc)
final protected String rewriteName(String name)(Code)(Java Doc)
final protected String setNonEmptyValueAttribute(String attrValue)(Code)(Java Doc)
final protected String setRequiredValueAttribute(String attrValue, String attrName) throws JspException(Code)(Java Doc)
final protected void write(String string)(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.