MIOLO20
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe MFloatField
Diagrama de heranças da classe MFloatField
MTextField MFormControl MControl MComponent

Membros públicos

 __construct ($name='', $value='', $label='', $size=10, $hint='', $validator=NULL, $isReadOnly=false, $fixed=2, $separator=',')
 
 setValue ($value)
 
 setFixed ($fixed)
 
 getFixed ()
 
 setSeparator ($separator)
 
 getSeparator ()
 
 addAttribute ($name, $value='', $userField=true)
 
 addBoxStyle ($name, $value)
 
 setReadOnly ($readOnly)
 
 generate ()
 
 setJsHint ( $hint)
 
- Membros públicos herdados de MTextField
 __construct ( $name='', $value='', $label='', $size=10, $hint='', $validator=NULL, $isReadOnly=false, $type='text')
 
 setClass ($cssClass, $add=true)
 
 getValidator ()
 
 setValidator ( $value)
 
 generateInner ()
 
- Membros públicos herdados de MFormControl
 __construct ( $name, $value='', $label='', $color='', $hint='')
 
 getValue ()
 
 setLabel ( $label)
 
 setAutoPostBack ( $value)
 
 setAutoSubmit ( $isAuto=true)
 
 getIsRequired ()
 
 setIsRequired ($isRequired)
 
 getRequiredType ()
 
 getFieldForm ()
 
 setFieldForm (MForm $form)
 
 generateLabel ()
 
- Membros públicos herdados de MControl
 __construct ( $name=NULL)
 
 __clone ()
 
 __set ( $name, $value)
 
 __get ( $name)
 
 setEnabled ($state)
 
 setName ($name)
 
 setId ($id)
 
 setNameAndId ($name)
 
 getId ()
 
 getName ()
 
 getUniqueId ()
 
 addStyleFile ( $styleFile)
 
 getClass ()
 
 addStyle ($name, $value)
 
 setStyle ($style)
 
 getStyle ()
 
 addAttribute ( $name, $value='')
 
 setTooltip ($title, $placement=self::TOOLTIP_PLACEMENT_AUTO)
 
 setAttribute ( $name, $value)
 
 setAttributes ($attr)
 
 attributes ( $mergeDuplicates=false)
 
 getAttributes ( $mergeDuplicates=false)
 
 setFormMode ( $mode)
 
 setPosition ($left, $top, $position='absolute')
 
 setWidth ($value)
 
 setHeight ($value)
 
 setColor ($value)
 
 setVisibility ($value)
 
 setFont ($value)
 
 setCaption ($caption)
 
 setInner ($inner)
 
 getInner ()
 
 addControl ($control)
 
 insertControl ($control, $pos=0, $width=null, $float=null)
 
 setControl ($control, $pos=0)
 
 setControls ($controls)
 
 getControls ()
 
 getControl ($pos)
 
 getControlById ($id)
 
 findControlById ($id)
 
 setControlById ($control, $id)
 
 clearControls ()
 
 eventHandler ()
 
 attachEventHandler ( $name, $handler, $param=NULL)
 
 getBox ()
 
 setBoxId ( $id)
 
 setBoxClass ( $cssClass, $add=true)
 
 getBoxClass ()
 
 setBoxAttributes ($attr)
 
 getBoxAttributes ()
 
 generateBox ( $content)
 
 getRender ( $method)
 
 getInnerToString ()
 
- Membros públicos herdados de MComponent
 SetName ($name)
 
 GetName ()
 
 AddComponent ($component)
 
 InsertComponent ($component, $pos=0)
 
 SetComponent ($component, $pos)
 
 SetComponents ($components)
 
 GetComponents ()
 
 GetComponent ($pos)
 
 ClearComponents ()
 

Outros membros herdados

- Campos de Dados herdados de MTextField
 $size
 
 $type
 
 $validator
 
 $rows
 
 $cols
 
- Campos de Dados herdados de MFormControl
 $label
 
 $value
 
 $hint
 
 $form
 
 $formName
 
 $showLabel
 
 $autoPostBack
 
 $forceShowLabel = false
 
 $isRequired
 
 $autoSetRequired = true
 
- Campos de Dados herdados de MControl
const FORM_MODE_WHOLE_ROW = 0
 
const FORM_MODE_SHOW_SIDE = 1
 
const FORM_MODE_SHOW_ABOVE = 2
 
const FORM_MODE_SHOW_NBSP = 3
 
const CLASS_CAPTION = 'm-caption'
 
const CLASS_CAPTION_REQUIRED = 'm-caption-required'
 
const TOOLTIP_PLACEMENT_BOTTOM = 'bottom'
 
const TOOLTIP_PLACEMENT_TOP = 'top'
 
const TOOLTIP_PLACEMENT_LEFT = 'left'
 
const TOOLTIP_PLACEMENT_RIGHT = 'right'
 
const TOOLTIP_PLACEMENT_AUTO = 'auto'
 
 $id
 
 $uniqueId
 
 $cssClass
 
 $enabled
 
 $style
 
 $visible
 
 $attrs
 
 $attributes
 
 $formMode
 
 $maintainState
 
 $readonly
 
 $caption
 
 $jsHint
 
 $inner
 
 $controlBox
 
 $box
 
 $cssp
 
 $parent
 
 $controls
 
 $controlsId
 
 $eventHandlers
 
 $painter
 
- Campos de Dados herdados de MComponent
 $manager
 
 $page
 
 $owner
 
 $components
 
 $componentCount
 
 $name
 
 $className
 
- Atributos Públicos Estáticos herdados de MControl
static $_number = 0
 
- Membros protegidos herdados de MControl
 _AddStyle ($name, $value)
 

Descrição detalhada

Input field for float numbers.

Autor
Daniel Hartmann [danie.nosp@m.l@so.nosp@m.lis.c.nosp@m.oop..nosp@m.br]

Maintainers:
Armando Taffarel Neto [taffa.nosp@m.rel@.nosp@m.solis.nosp@m..coo.nosp@m.p.br] Daniel Hartmann [danie.nosp@m.l@so.nosp@m.lis.c.nosp@m.oop..nosp@m.br]

Desde
Creation date 2011/10/17

Organization:
SOLIS - Cooperativa de Soluções Livres
Copyright:
Copyright (c) 2011 SOLIS - Cooperativa de Soluções Livres
License:
Licensed under GPLv2 (for further details read the COPYING file or http://www.gnu.org/licenses/gpl.html)

Exemplos
/var/docker/solisge-devel/www/solisge/miolo20/classes/ui/controls/mform.class.

Definido na linha 28 do ficheiro mfloatfield.class.

Documentação dos Construtores & Destrutor

◆ __construct()

__construct ( $name = '',
$value = '',
$label = '',
$size = 10,
$hint = '',
$validator = NULL,
$isReadOnly = false,
$fixed = 2,
$separator = ',' )

MFloatField constructor.

Parâmetros
string$nameField name.
mixed$valueFloat number.
string$labelField label.
integer$sizeField size.
string$hintField hint.
object$validatorField validator. Instance of MValidator.
boolean$isReadOnlyWhether the field is read-only.

Definido na linha 56 do ficheiro mfloatfield.class.

Documentação das funções

◆ addAttribute()

addAttribute ( $name,
$value = '',
$userField = true )

Add a attribute the user field.

Parâmetros
string$nameAttribute name.
string$valueAttribute value.

Definido na linha 124 do ficheiro mfloatfield.class.

◆ addBoxStyle()

addBoxStyle ( $name,
$value )

Add a style to the whole box, not only the input field.

Parâmetros
string$nameStyle name.
string$valueStyle value.

Reimplementado de MControl.

Definido na linha 142 do ficheiro mfloatfield.class.

◆ generate()

generate ( )
Retorna
string Get the generated form of the component.

Reimplementado de MControl.

Definido na linha 162 do ficheiro mfloatfield.class.

◆ getFixed()

getFixed ( )
Retorna
integer Get the number of digits after separator.

Definido na linha 97 do ficheiro mfloatfield.class.

◆ getSeparator()

getSeparator ( )
Retorna
character Get the digits separator.

Definido na linha 113 do ficheiro mfloatfield.class.

◆ setFixed()

setFixed ( $fixed)
Parâmetros
integer$fixedSet the number of digits after separator.

Definido na linha 89 do ficheiro mfloatfield.class.

◆ setJsHint()

setJsHint ( $hint)

Reimplementado de MControl.

Definido na linha 183 do ficheiro mfloatfield.class.

◆ setReadOnly()

setReadOnly ( $readOnly)

Set the field as read only.

Parâmetros
boolean$readOnlyWheter is read only.

Reimplementado de MControl.

Definido na linha 153 do ficheiro mfloatfield.class.

◆ setSeparator()

setSeparator ( $separator)
Parâmetros
character$separatorSet the digits separator.

Definido na linha 105 do ficheiro mfloatfield.class.

◆ setValue()

setValue ( $value)
Parâmetros
mixed$valueFloat number. I.e. 123.456

Reimplementado de MFormControl.

Definido na linha 72 do ficheiro mfloatfield.class.


A documentação para esta classe foi gerada a partir do seguinte ficheiro: