MIOLO25
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe MControl
Diagrama de heranças da classe MControl
MComponent MAreaContainer MBarcode MContent MContentHeader MControlConcrete MDiv MDiv MError MFormControl MGridAction MGridColumn MGridFilter MGridNavigator MIFrame MJavascriptCode MMioloStatus MOption MOption MOptionGroup MOptionGroup MOptionGroup MOptionGroup MOptionGroup MOptionListItem MPage MSimpleTable MSimpleTable MSpan MStatusBar MTabbedFormPage MTable MTable MTable MTreeMenu MWindow MWindow M_SPAW_Wysiwyg MioloStatus TableCell TableCell TableCell TableRow TableRow TableRow

Membros públicos

 __construct ( $name=NULL)
 
 setName ($name)
 
 setId ($id)
 
 getId ()
 
 getName ()
 
 getUniqueId ()
 
 __clone ()
 
 __set ( $name, $value)
 
 __get ( $name)
 
 setClass ($cssClass, $add=TRUE)
 
 insertClass ( $cssClass)
 
 addStyleFile ( $styleFile)
 
 getClass ()
 
 addStyle ($name, $value)
 
 setStyle ($style)
 
 getStyle ()
 
 getBoxStyle ()
 
 setPosition ($left, $top, $position='absolute')
 
 setWidth ($value)
 
 setHeight ($value)
 
 setColor ($value)
 
 setVisibility ($value)
 
 setFont ($value)
 
 addAttribute ( $name, $value='')
 
 setAttribute ( $name, $value=null)
 
 getAttribute ( $name)
 
 setAttributes ($attr)
 
 attributes ( $mergeDuplicates=false)
 
 getAttributes ( $mergeDuplicates=false)
 
 setReadOnly ($status)
 
 setEnabled ($state)
 
 setJsHint ( $hint)
 
 setHint ( $hint)
 
 setCaption ($caption)
 
 setHTMLTitle ($title)
 
 eventHandler ()
 
 attachEventHandler ( $name, $handler, $param=NULL)
 
 addEvent ($event, $handler, $preventDefault=true)
 
 hasEvent ($event)
 
 generateEvent ()
 
 setContent ($inner)
 
 setInner ($inner)
 
 getInner ()
 
 getRender ( $method)
 
 getInnerToString ()
 
 getCSSP ()
 
 generateInner ()
 
 generate ()
 
 __toString ()
 
- Membros públicos herdados de MComponent
 getManager ()
 

Campos de Dados

 $id
 
 $uniqueId
 
 $enabled
 
 $style
 
 $attrs
 
 $attributes
 
 $maintainState
 
 $readonly
 
 $visible
 
 $caption
 
 $jsHint
 
 $hint
 
 $cssp
 
 $inner
 
 $parent
 
 $eventHandlers
 
 $painter
 
 $event
 
 $formId
 
const ALIGN_CENTER = 'center'
 
const ALIGN_LEFT = 'left'
 
const ALIGN_RIGHT = 'right'
 
const FORM_MODE_WHOLE_ROW = 0
 
const FORM_MODE_SHOW_SIDE = 1
 
const FORM_MODE_SHOW_ABOVE = 2
 
const FORM_MODE_SHOW_NBSP = 3
 
 $formMode
 
- Campos de Dados herdados de MComponent
 $manager
 
 $page
 
 $owner
 
 $name
 
 $className
 

Atributos Públicos Estáticos

static $_number = 0
 

Membros protegidos

 _addStyle ($name, $value)
 

Descrição detalhada

Base class for all controls. This class implements the properties and methods shared by all controls.

Autor
Ely Edison Matos [ely.m.nosp@m.atos.nosp@m.@ufjf.nosp@m..edu.nosp@m..br]
Versão
1.0

Maintainers:
Ely Edison Matos [ely.m.nosp@m.atos.nosp@m.@ufjf.nosp@m..edu.nosp@m..br]

Veja também
MComponent
Desde
This class was created 2005/01/01

Organization:
SOLIS - Cooperativa de Soluções Livres
The Miolo Development Team

CopyLeft:
CopyLeft (L) 2005 SOLIS - Cooperativa de Soluções Livres
License:
Licensed under GPL (for further details read the COPYING file or http://www.gnu.org/copyleft/gpl.html )

History:
See history in CVS repository: http://www.miolo.org.br

Documentação dos Construtores & Destrutor

◆ __construct()

__construct ( $name = NULL)

Documentação das funções

◆ __clone()

__clone ( )

The clone method. It is used to clone controls, avoiding references to same attributes, styles and controls.

Reimplementado em MContainerControl.

◆ __get()

__get ( $name)

Reimplementado em MBaseForm.

◆ __set()

__set ( $name,
$value )

Reimplementado em MButton e MBaseForm.

◆ __toString()

__toString ( )

Reimplementado em MMenuItem.

◆ _addStyle()

_addStyle ( $name,
$value )
protected

◆ addAttribute()

addAttribute ( $name,
$value = '' )

Reimplementado em MDiv e MLookupContainer.

◆ addEvent()

addEvent ( $event,
$handler,
$preventDefault = true )

Reimplementado em MLookupContainer.

◆ addStyle()

◆ addStyleFile()

addStyleFile ( $styleFile)

◆ attachEventHandler()

attachEventHandler ( $name,
$handler,
$param = NULL )

◆ attributes()

attributes ( $mergeDuplicates = false)

◆ eventHandler()

eventHandler ( )

Reimplementado em MTabbedForm.

◆ generate()

◆ generateEvent()

generateEvent ( )

◆ generateInner()

◆ getAttribute()

getAttribute ( $name)

◆ getAttributes()

getAttributes ( $mergeDuplicates = false)

◆ getBoxStyle()

getBoxStyle ( )

◆ getClass()

getClass ( )
Retorna
string Get the value from class attribute.

◆ getCSSP()

getCSSP ( )

◆ getId()

◆ getInner()

getInner ( )

◆ getInnerToString()

getInnerToString ( )

◆ getName()

getName ( )
Retorna
string Get component name.

Reimplementado de MComponent.

Reimplementado em MMultiSelection e MMultiSelection.

◆ getRender()

getRender ( $method)

◆ getStyle()

getStyle ( )

◆ getUniqueId()

◆ hasEvent()

hasEvent ( $event)

◆ insertClass()

insertClass ( $cssClass)

◆ setAttribute()

setAttribute ( $name,
$value = null )

◆ setAttributes()

setAttributes ( $attr)

◆ setCaption()

setCaption ( $caption)

Reimplementado em MBox e MBox.

◆ setClass()

setClass ( $cssClass,
$add = TRUE )

Set class attribute to the element.

Parâmetros
string$cssClassClass name.
boolean$addWhether to add or replace (if exists) the class.
Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mbaseform.class.php e /var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mform.class.php.

◆ setColor()

setColor ( $value)

Reimplementado em MEditor.

◆ setContent()

setContent ( $inner)

◆ setEnabled()

setEnabled ( $state)

Enabled status. Acessory method to set the enabled status of the control.

Parâmetros
state(boolean) true or false depending the status

◆ setFont()

setFont ( $value)

◆ setHeight()

setHeight ( $value)

Reimplementado em MDialog, MForm e MCSSPForm.

◆ setHint()

setHint ( $hint)

◆ setHTMLTitle()

setHTMLTitle ( $title)

◆ setId()

◆ setInner()

setInner ( $inner)

◆ setJsHint()

setJsHint ( $hint)

◆ setName()

setName ( $name)
Parâmetros
string$nameSet component name.

Reimplementado de MComponent.

◆ setPosition()

setPosition ( $left,
$top,
$position = 'absolute' )

◆ setReadOnly()

setReadOnly ( $status)

◆ setStyle()

setStyle ( $style)

◆ setVisibility()

setVisibility ( $value)

◆ setWidth()

setWidth ( $value)

Documentação dos campos e atributos

◆ $_number

$_number = 0
static

A number used to identify anonymous controls.

◆ $attributes

A string with (X)HTML attributes. For compatibilty only.

◆ $attrs

$attrs

A MAttributes object

◆ $caption

$caption

A caption for the control.

◆ $cssp

$cssp

Indicates if the control is to be CSS Positioned

◆ $enabled

$enabled

Indicates if the control is enabled/disabled.

◆ $event

$event

Build handlers for javascripts events of control

Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mprompt.class.php.

◆ $eventHandlers

$eventHandlers

A list with registered event handlers .

◆ $formId

$formId

The Id of MHtmlForm where this control is inserted It is used to build single names of controls and ajax handlers

Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mbaseform.class.php.

◆ $formMode

$formMode

Indicates how to render the control/caption in the page. FORM_MODE_WHOLE_ROW = 0 : the control ocuppies whole row of form FORM_MODE_SHOW_SIDE = 1 : show caption: control side by side FORM_MODE_SHOW_ABOVE = 2 : show caption: above the control FORM_MODE_SHOW_NBSP = 3 : show caption:  control

◆ $hint

◆ $id

$id

A id for the control. This atribute identifies the control. It is used at (X)HTML rendering.

Exemplos
/var/docker/solisge-devel/www/solisge/miolo25/classes/ui/controls/mprompt.class.php.

◆ $inner

$inner

The control's code according to render method. The $inner is generated by the control itself, according to its properties.

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

◆ $jsHint

$jsHint

A hint showed as tooltip, using javascript.

◆ $maintainState

$maintainState

Indicates if the control is to be mantained in round-trips.

◆ $painter

$painter

The class for renderize controls.

◆ $parent

$parent

The parent component (the owner of this control).

◆ $readonly

$readonly

Show the control as a label.

◆ $style

$style

A Style Object

◆ $uniqueId

$uniqueId

Another id for the control. This atribute identifies the control's box in (X)HTML rendering.

◆ $visible

$visible

Is the control visible?

◆ ALIGN_CENTER

const ALIGN_CENTER = 'center'

Center alignment

◆ ALIGN_LEFT

const ALIGN_LEFT = 'left'

Left alignment

◆ ALIGN_RIGHT

const ALIGN_RIGHT = 'right'

Right alignment

◆ FORM_MODE_SHOW_ABOVE

const FORM_MODE_SHOW_ABOVE = 2

◆ FORM_MODE_SHOW_NBSP

const FORM_MODE_SHOW_NBSP = 3

◆ FORM_MODE_SHOW_SIDE

◆ FORM_MODE_WHOLE_ROW

const FORM_MODE_WHOLE_ROW = 0

Define the constants to be used to indicate the $formMode


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