|
|
|
File: C:/usr/local/lib/php/blueshoes-4.2/core/html/form/domapi/Bs_DaFormFieldSpinEdit.class.php
BlueShoes Application Framework - Form/DomApi
Bs_DaFormFieldSpinEdit
Bs_Object | +-- Bs_FormElement | +-- Bs_FormField | +-- Bs_FormFieldTxt | +-- Bs_DaFormFieldSpinEdit
DomApi SpinEdit Form Field Class
|
public class Bs_DaFormFieldSpinEdit extends Bs_FormFieldTxt
DomApi SpinEdit Form Field Class
Useful for allowing the user to select a whole number. They can eithertype in a number or use the spin buttons to modify it. Supports definedranges and automatically validates user info.uses javascript/dhtml/domapi. see http://www.domapi.com, it's great.the following domapi settings are supported like this:DOMAPI BLUESHOES EXAMPLE DESCRIPTIONbuttonWidth => size 10 width of the input fieldmin => bsDataInfo '1|500' min valuemax => bsDataInfo '1|500' max valueVERY BIG NOTE: THIS COMPONENT IS NOT USABLE YET CAUSE THE attachToForm()METHOD IS MISSING. I GUESS IT WILL BE ADDED IN THE REAL NEAR FUTURE.dependencies: Bs_FormFieldTxt, domapi js stuff,
| Authors | andrej arn <andrej@arn.li> |
| Version | 4.0.$id$ |
| Copyright | blueshoes.org |
|
| |
|
|
|
Methods inherited from Bs_FormField |
| bs_formfield, &getelement, getfield, addenforcecheckbox, isexplodable, getadvancedstyle, getadvancedstylehelper, setexplode, getlabel, inputmanipulate, inputvalidate, validatemust, validateonlyoneof, validateonlyif, validateminlength, validatemaxlength, validatemuststartwith, validatenotstartwith, validatemustendwith, validatenotendwith, validatemustcontain, validatenotcontain, validateequalto, validatenotequalto, validatedatatype, validateregularexpression, validateadditionalcheck, validatemustbeunique, getvisibility, getonenterbehavior, getonentercode, applyonenterbehavior, shouldpersist, getdbdatatype, getdbfieldname, _getmaxlength, _gettagstringevents, getvalue, _gettagstringvalue, _gettagstringstyles, _gettagstringadditionaltags, getcaption, getcaptionforformoutput, geterror, gethelp, _highlightaccesskey, _getaccesskey, getfieldashidden, _getfieldnameforhtml, hasjavascript, ismust, _anyifcase, _markasused, _getbsdatainfonumber, isfilledin, _evalwrap, unpersisttrigger, geterrormessage, &serialize, unserialize, &encrypt, &decrypt, initfrompost |
|
|
|
Methods inherited from Bs_Object |
| isex, isexception, tostring, tohtml, persist, unpersist, bs_object, bbsetoutput, bbawake, bbisawake, bbxmsg, bbxfunctionstart, bbxfunctionend, bbxecho, bbxvar, bbxvardump, bbforcetrace, bbbufferstart, bbbufferget, bbbufferendflush, bbbufferendclean |
|
|
|
Fields inherited from Bs_FormFieldTxt |
| $size |
|
Fields inherited from Bs_FormField |
| $_bs_string, $_bs_array, $_bs_htmlutil, $_bs_date, $fieldtype, $caption, $defaulterrormessage, $errormessage, $errortype, $level, $editability, $accessrights, $visibility, $isused, $valuedefault, $valuedefaulttype, $valuereceived, $valuedisplay, $valueinternal, $savetodb, $dbfieldname, $dbdatatype, $dbnotnull, $dbprimarykey, $dbkey, $dbindexfulltext, $dbautoincrement, $dbunique, $dbforeignkey, $dbattributes, $explodeeval, $_explodearray, $direction, $styles, $advancedstyles, $events, $onenter, $additionaltags, $bsdatatype, $bsdatainfo, $bsdatamanipulation, $bsdatamanipvar, $enforce, $_must, $must, $mustif, $mustoneof, $mustoneofif, $onlyoneof, $onlyif, $onlyoneofif, $minlength, $maxlength, $muststartwith, $notstartwith, $mustendwith, $notendwith, $mustcontain, $notcontain, $equalto, $notequalto, $mustbeunique, $regularexpression, $additionalcheck, $trim, $remove, $removei, $replace, $replacei, $case, $codepostreceive, $codepostload, $this, $charsrule |
|
Fields inherited from Bs_FormElement |
| $persister, $persisterid, $_form, $name, $elementtype, $formid, $container, $orderid, $elementstringformat, $persistervarsettings, $this |
|
Public Field Summary |
| string |
$domApiDoRolloveradds a mouseover effect to the elements. |
| string |
$domApiEnabledi recommend that you do not use this var. it may not be fully implemented. |
| string |
$domApiDoWarningif a javascript warning should be popped up. |
| integer |
$domApiStephow many numbers it should be increased/decreased when clicking on the |
|
|
|
Public Method Details |
Bs_DaFormFieldSpinEdit |
|
public void Bs_DaFormFieldSpinEdit( )
|
| |
constructor
|
| Returns |
void |
|
&getField |
|
public string &getField( [ mixed $explodeKey, string $addEnforceCheckbox ] )
|
| |
Return some html code to display the field on a website in a form.
overwrites parent method.
Warning: documentation is missing.
|
| Parameter |
|
| mixed |
$explodeKey |
= >>NULL,<< |
|
(int or string) |
|
|
| string |
$addEnforceCheckbox |
= >>TRUE<< |
|
default is TRUE. adds the enforce checkbox automatically, if needed. see (parent::)addEnforceCheckbox(). |
|
| Returns |
string some html code |
|
|
Public Field Details |
$domApiDoRollover |
|
public string $domApiDoRollover
>>TRUE<<
adds a mouseover effect to the elements.
this is a domapi specific setting.
|
|
$domApiEnabled |
|
public string $domApiEnabled
>>TRUE<<
i recommend that you do not use this var. it may not be fully implemented.
i don't see a use for it.this is a domapi specific setting.
|
|
$domApiDoWarning |
|
public string $domApiDoWarning
>>FALSE<<
if a javascript warning should be popped up.
warning is english only, eg "Range must be between 1 and 1000."
|
|
$domApiStep |
|
public integer $domApiStep
>>1<<
how many numbers it should be increased/decreased when clicking on the
+/- buttons.
|
|
|
|
|
|
|
|
| PHPDoc 1.0beta |