NAME

HTML::GUI::input - Create and control a input input for webapp

VERSION

Version 0.01

INPUT

The input widget is the specialisation of the widget class for all user inputs (text, checkbox, combo ...). It enforces all the specific functions of the use input (for example : implement the validate() function to check id the submitted value is OK).

PUBLIC ATTRIBUTES

PUBLIC METHODS

new

Parameters :
   params : widget definition 

setValue

   Parameters :
		 The new value of the widget value

   Return : 
     nothing 

   Description : 
      set the value of the widget with $newvalue.

getValue

Parameters :

Return : 
   

Description : 
   return the current value of the widget.

getValueHash

Description : 
		return a hash containing the input id and value 
Return : 
		a ref to a hash containing ( widgetId => widgetValue) 

setValueFromParams

   Parameters :
	   -params : a hash ref 

   Description : 
      look for a value coresponding to the widget in $params hash;
			if it is the case,set the objet value with this one
			 For more elaborate objects, the functions is specialised.

validate

   Return : 
      1 if all constraints are OK;
			0 if one or more constraint are broken

error

   Parameters :
      type : string : Visibility of the error (pub/priv)
      params :  hashref : params of the error 
   Description :
		  record one error in the current objet

getHtml

	 Description : 
      Return the html of the widget. It can be directly inserted into a screen

AUTHOR

Jean-Christian Hassler, <jhassler at free.fr>

BUGS

Please report any bugs or feature requests to bug-gui-libhtml-input at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTML-GUI. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc HTML::GUI::widget

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2007 Jean-Christian Hassler, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.