MIOLO25
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe MExpandDiv
Diagrama de heranças da classe MExpandDiv
MDiv MControl MControl MComponent MComponent

Membros públicos

 __construct ($name, $content, $class=NULL, $attributes=NULL, $collapsedHeight=16)
 
 getBox ()
 
 setBox ($box)
 
 getCollapsedHeight ()
 
 setCollapsedHeight ($collapsedHeight)
 
 getContent ()
 
 setContent ($content)
 
 getExpandButton ()
 
 setExpandButton ($expandButton)
 
 getExpandedOnLoad ()
 
 setExpandedOnLoad ($expandedOnLoad)
 
 generate ()
 
- Membros públicos herdados de MDiv
 __construct ( $name=NULL, $content=' ', $class=NULL, $attributes=NULL)
 
 addAttribute ($attr, $value)
 
 __construct ( $name=NULL, $content=' ', $class=NULL, $attributes=NULL)
 
- Membros públicos herdados de MControl
 __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)
 
 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 ()
 
 setInner ($inner)
 
 getInner ()
 
 getRender ( $method)
 
 getInnerToString ()
 
 getCSSP ()
 
 generateInner ()
 
 __toString ()
 
- Membros públicos herdados de MComponent
 getManager ()
 

Campos de Dados

const STYLE_COLLAPSED = 'mExpandDivButton mExpandDivButtonCollapsed'
 
const STYLE_EXPANDED = 'mExpandDivButton mExpandDivButtonExpanded'
 
const STYLE_TEXT = 'mExpandDivText'
 
- Campos de Dados herdados de MControl
 $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
 

Outros membros herdados

- Atributos Públicos Estáticos herdados de MControl
static $_number = 0
 
- Membros protegidos herdados de MControl
 _addStyle ($name, $value)
 

Documentação dos Construtores & Destrutor

◆ __construct()

__construct ( $name,
$content,
$class = NULL,
$attributes = NULL,
$collapsedHeight = 16 )

MExpandDiv constructor.

Parâmetros
string$nameName.
sring$contentContent.
string$classStyle class name.
array$attributesAttributes array.
integer$collapsedHeightHeight of the div collapsed.

Documentação das funções

◆ generate()

generate ( )
Retorna
string Generate the MExpandDiv.

Reimplementado de MDiv.

◆ getBox()

getBox ( )
Retorna
object Get the MDiv instance which contains the content.

◆ getCollapsedHeight()

getCollapsedHeight ( )
Retorna
integer Get the div height when collapsed.

◆ getContent()

getContent ( )
Retorna
string Get the div content.

◆ getExpandButton()

getExpandButton ( )
Retorna
object Get the MDiv instance which represents the expand/collapse button.

◆ getExpandedOnLoad()

getExpandedOnLoad ( )
Retorna
boolean Get if the div must be expanded by default.

◆ setBox()

setBox ( $box)
Parâmetros
object$boxSet the MDiv instance to contain the content.

◆ setCollapsedHeight()

setCollapsedHeight ( $collapsedHeight)
Parâmetros
integer$collapsedHeightSet the div height when collapsed.

◆ setContent()

setContent ( $content)

Set the div content. Removes line breaks from the beginning and the end of the content and then change them to '
'.

Parâmetros
string$contentDiv content.

Reimplementado de MControl.

◆ setExpandButton()

setExpandButton ( $expandButton)
Parâmetros
object$expandButtonSet MDiv instance which represents the expand/collapse button.

◆ setExpandedOnLoad()

setExpandedOnLoad ( $expandedOnLoad)
Parâmetros
boolean$expandedOnLoadSet if the div must be expanded by default.

Documentação dos campos e atributos

◆ STYLE_COLLAPSED

const STYLE_COLLAPSED = 'mExpandDivButton mExpandDivButtonCollapsed'

CSS classes used by the component.

◆ STYLE_EXPANDED

const STYLE_EXPANDED = 'mExpandDivButton mExpandDivButtonExpanded'

◆ STYLE_TEXT

const STYLE_TEXT = 'mExpandDivText'

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