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

Membros públicos

 __construct ($name, $tabs=array(), $animate=true)
 
 createTab ($id, $label, $controls=array(), $ajaxAction=NULL, $disabled=FALSE, $isInitial=FALSE)
 
 getTabs ()
 
 getControls ()
 
 setTabs ($tabs=array())
 
 addTab ($tab)
 
 getTab ($tabId)
 
 setInitialTab ($id)
 
 setAnimate ($animate)
 
 getAnimate ()
 
 generate ()
 
- Membros públicos herdados de MBaseGroup
 __construct ( $name='', $caption='', $controls='', $disposition='none', $border='css', $formMode=MControl::FORM_MODE_SHOW_ABOVE)
 
 setScrollHeight ( $height)
 
 setBorder ( $border)
 
 generateInner ()
 
 __construct ( $name='', $caption='', $controls='', $disposition='none', $border='css', $formMode=MFormControl::FORM_MODE_SHOW_ABOVE)
 
 setScrollHeight ( $height)
 
 setBorder ( $border)
 
 generateInner ()
 
- Membros públicos herdados de MContainer
 __construct ($name=NULL, $controls=NULL, $disposition='none', $formMode=MFormControl::FORM_MODE_SHOW_ABOVE)
 
 setDisposition ($disposition)
 
 isShowLabel ()
 
 isShowChildLabel ()
 
 setShowChildLabel ( $visible=true, $recursive=true)
 
 setShowLabel ( $visible=true, $recursive=true)
 
 setControls ($controls, $recursive=false)
 
- Membros públicos herdados de MContainerControl
 __construct ( $name=NULL)
 
 __clone ()
 
 addControl ($control)
 
 insertControl ($control, $pos=0)
 
 setControl ($control, $pos=0)
 
 setControls ($controls)
 
 getControl ($pos)
 
 getControlById ($id)
 
 findControlById ($id)
 
 setControlById ($control, $id)
 
 clearControls ()
 
- Membros públicos herdados de MDiv
 addAttribute ($attr, $value)
 
- Membros públicos herdados de MControl
 setName ($name)
 
 setId ($id)
 
 getId ()
 
 getName ()
 
 getUniqueId ()
 
 __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 ()
 
 setContent ($inner)
 
 setInner ($inner)
 
 getInner ()
 
 getRender ( $method)
 
 getInnerToString ()
 
 getCSSP ()
 
 __toString ()
 
- Membros públicos herdados de MComponent
 getManager ()
 

Membros públicos estáticos

static createStaticTab ($tabbedBaseGroupId, $id, $label, $controls=array(), $ajaxAction=NULL, $disabled=false)
 
static enableTab ($tabId, $tabbedBaseGroupId)
 
static disableTab ($tabId, $tabbedBaseGroupId)
 
static removeTab ($tabId, $tabbedBaseGroupId)
 
static updateTab ($tabId, $controls)
 

Membros protegidos estáticos

static getTabButton ($tab, $tabbedBaseGroupId, $selected=FALSE)
 

Outros membros herdados

- Campos de Dados herdados de MBaseGroup
 $borderType
 
 $scrollable
 
 $scrollHeight
 
- Campos de Dados herdados de MContainer
 $disposition
 
 $formMode
 
 $showLabel
 
 $showChildLabel = true
 
- Campos de Dados herdados de MContainerControl
 $controls
 
 $controlsId
 
- 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
 
- Atributos Públicos Estáticos herdados de MControl
static $_number = 0
 
- Membros protegidos herdados de MContainerControl
 _AddControl ($control, $pos=0, $op='add')
 
- Membros protegidos herdados de MControl
 _addStyle ($name, $value)
 

Descrição detalhada

Documentação dos Construtores & Destrutor

◆ __construct()

__construct ( $name,
$tabs = array(),
$animate = true )

MTabbedBaseGroup constructor

Parâmetros
string$nameId and name of the component
array$tabsArray of MTab objects

Documentação das funções

◆ addTab()

addTab ( $tab)
Parâmetros
MTabTab to be added on tabs array

◆ createStaticTab()

static createStaticTab ( $tabbedBaseGroupId,
$id,
$label,
$controls = array(),
$ajaxAction = NULL,
$disabled = false )
static

Statically creates a tab and adds it to the container Usefull for ajax requests

Note: Use it only if you really need it. If not in an ajax request, you should use the createTab method instead.

Parâmetros
string$tabbedBaseGroupIdId of the MTabbedBaseGroup
string$idId of the tab
string$labelLabel of the tab
array$controlsFields of the tab
string$ajaxActionAn ajax action to be called when the tab is selected
boolean$disabledInforms whether the tab is disabled or not

◆ createTab()

createTab ( $id,
$label,
$controls = array(),
$ajaxAction = NULL,
$disabled = FALSE,
$isInitial = FALSE )

Creates a tab and adds it to the container.

Parâmetros
string$idId of the tab.
string$labelLabel of the tab.
array$controlsFields of the tab.
string$ajaxActionAn ajax action to be called when the tab is selected.
boolean$disabledInforms whether the tab is disabled or not.
boolean$isInitialDefines if the tab must be the initial.

◆ disableTab()

static disableTab ( $tabId,
$tabbedBaseGroupId )
static

Disable tab.

Parâmetros
string$tabId
string$tabbedBaseGroupId

◆ enableTab()

static enableTab ( $tabId,
$tabbedBaseGroupId )
static

Enable tab.

Parâmetros
string$tabId
string$tabbedBaseGroupId

◆ generate()

generate ( )

Generates the tabs container

Retorna
object MHContainer

Reimplementado de MBaseGroup.

◆ getAnimate()

getAnimate ( )
Retorna
boolean Get if the tabs must be animated.

◆ getControls()

getControls ( )
Retorna
array Array of MTab objects.

Reimplementado de MContainerControl.

◆ getTab()

getTab ( $tabId)
Parâmetros
stringId of the tab to be getted from tabs array

◆ getTabButton()

static getTabButton ( $tab,
$tabbedBaseGroupId,
$selected = FALSE )
staticprotected

Generates the tab buttons

Retorna
object MHContainer

◆ getTabs()

getTabs ( )
Retorna
array Array of MTab objects

◆ removeTab()

static removeTab ( $tabId,
$tabbedBaseGroupId )
static

Removes a tab from the tab list

Parâmetros
string$tabId
string$tabbedBaseGroupId

◆ setAnimate()

setAnimate ( $animate)
Parâmetros
boolean$animateSet if the tabs must be animated.

◆ setInitialTab()

setInitialTab ( $id)
Parâmetros
string$idSet the id of the intitial tab.

◆ setTabs()

setTabs ( $tabs = array())
Parâmetros
arrayArray of MTab objects

◆ updateTab()

static updateTab ( $tabId,
$controls )
static

Updates tab content through ajax

Parâmetros
string$tabIdId of the tab to put content
array$controlsFields to put in the tab

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