Java Doc for CheckBox.java in  » J2EE » wicket » wicket » markup » html » form » 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 » wicket » wicket.markup.html.form 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


wicket.markup.html.form.FormComponent
   wicket.markup.html.form.CheckBox

All known Subclasses:   wicket.ajax.markup.html.form.AjaxCheckBox,
CheckBox
public class CheckBox extends FormComponent implements IOnChangeListener(Code)
HTML checkbox input component.

Java:

 form.add(new CheckBox("bool"));
 
HTML:
 <input type="checkbox" wicket:id="bool" />
 

You can can extend this class and override method wantOnSelectionChangedNotifications() to force server roundtrips on each selection change.


author:
   Jonathan Locke



Constructor Summary
public  CheckBox(String id)
    
public  CheckBox(String id, IModel model)
    

Method Summary
protected  ObjectconvertValue(String[] value)
    
final protected  voidonComponentTag(ComponentTag tag)
     Processes the component tag.
public  voidonSelectionChanged()
    
protected  voidonSelectionChanged(Object newSelection)
     Template method that can be overriden by clients that implement IOnChangeListener to be notified by onChange events of a select element. This method does nothing by default.

Called when a option is selected of a dropdown list that wants to be notified of this event.

final protected  booleansupportsPersistence()
    
protected  booleanwantOnSelectionChangedNotifications()
     Whether this component's onSelectionChanged event handler should called using javascript if the selection changes.


Constructor Detail
CheckBox
public CheckBox(String id)(Code)

See Also:   wicket.Component.Component(String)



CheckBox
public CheckBox(String id, IModel model)(Code)

See Also:   wicket.Component.Component(StringIModel)




Method Detail
convertValue
protected Object convertValue(String[] value)(Code)

See Also:   wicket.markup.html.form.FormComponent.convertValue(String[])



onComponentTag
final protected void onComponentTag(ComponentTag tag)(Code)
Processes the component tag.
Parameters:
  tag - Tag to modify
See Also:   wicket.Component.onComponentTag(ComponentTag)



onSelectionChanged
public void onSelectionChanged()(Code)

See Also:   wicket.markup.html.form.IOnChangeListener.onSelectionChanged



onSelectionChanged
protected void onSelectionChanged(Object newSelection)(Code)
Template method that can be overriden by clients that implement IOnChangeListener to be notified by onChange events of a select element. This method does nothing by default.

Called when a option is selected of a dropdown list that wants to be notified of this event. This method is to be implemented by clients that want to be notified of selection events.
Parameters:
  newSelection - The newly selected object of the backing model NOTE this isthe same as you would get by calling getModelObject() if thenew selection were current




supportsPersistence
final protected boolean supportsPersistence()(Code)

See Also:   FormComponent.supportsPersistence



wantOnSelectionChangedNotifications
protected boolean wantOnSelectionChangedNotifications()(Code)
Whether this component's onSelectionChanged event handler should called using javascript if the selection changes. If true, a roundtrip will be generated with each selection change, resulting in the model being updated (of just this component) and onSelectionChanged being called. This method returns false by default. True if this component's onSelectionChanged event handler shouldcalled using javascript if the selection changes



Fields inherited from wicket.markup.html.form.FormComponent
final protected static short FLAG_CONVERT_EMPTY_INPUT_STRING_TO_NULL(Code)(Java Doc)
public static String VALUE_SEPARATOR(Code)(Java Doc)

Methods inherited from wicket.markup.html.form.FormComponent
final public FormComponent add(IValidator validator)(Code)(Java Doc)
final public boolean checkRequired()(Code)(Java Doc)
final public void clearInput()(Code)(Java Doc)
final protected void convert()(Code)(Java Doc)
protected Object convertValue(String[] value) throws ConversionException(Code)(Java Doc)
final public void error(List resourceKeys, Map args)(Code)(Java Doc)
final public Object getConvertedInput()(Code)(Java Doc)
public Form getForm()(Code)(Java Doc)
public String getInput()(Code)(Java Doc)
public String[] getInputAsArray()(Code)(Java Doc)
public String getInputName()(Code)(Java Doc)
public IModel getLabel()(Code)(Java Doc)
protected String getModelValue()(Code)(Java Doc)
final public String getRawInput()(Code)(Java Doc)
final public Class getType()(Code)(Java Doc)
public String getValidatorKeyPrefix()(Code)(Java Doc)
final public List getValidators()(Code)(Java Doc)
final public String getValue()(Code)(Java Doc)
final public boolean hasRawInput()(Code)(Java Doc)
final protected int inputAsInt()(Code)(Java Doc)
final protected int inputAsInt(int defaultValue)(Code)(Java Doc)
final protected int[] inputAsIntArray()(Code)(Java Doc)
final protected String[] inputAsStringArray()(Code)(Java Doc)
final public void inputChanged()(Code)(Java Doc)
protected void internalOnModelChanged()(Code)(Java Doc)
final public void invalid()(Code)(Java Doc)
public boolean isInputNullable()(Code)(Java Doc)
public boolean isMultiPart()(Code)(Java Doc)
final public boolean isPersistent()(Code)(Java Doc)
public boolean isRequired()(Code)(Java Doc)
final public boolean isValid()(Code)(Java Doc)
final public boolean isValidated()(Code)(Java Doc)
protected void onComponentTag(ComponentTag tag)(Code)(Java Doc)
protected void onDetach()(Code)(Java Doc)
protected void onDisabled(ComponentTag tag)(Code)(Java Doc)
protected void onInvalid()(Code)(Java Doc)
protected void onValid()(Code)(Java Doc)
final public void processInput()(Code)(Java Doc)
public FormComponent setLabel(IModel labelModel)(Code)(Java Doc)
public void setModelValue(String value)(Code)(Java Doc)
public void setModelValue(String[] value)(Code)(Java Doc)
final public FormComponent setPersistent(boolean persistent)(Code)(Java Doc)
final public FormComponent setRequired(boolean required)(Code)(Java Doc)
final public FormComponent setType(Class type)(Code)(Java Doc)
protected boolean supportsPersistence()(Code)(Java Doc)
public void updateModel()(Code)(Java Doc)
final public void valid()(Code)(Java Doc)
final public void validate()(Code)(Java Doc)
final protected void validateRequired()(Code)(Java Doc)
final protected void validateValidators()(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.