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

Membros públicos

 __construct ($name='toolbar', $url='', $type=MToolbar::TYPE_ICON_ONLY)
 
 addButton ($name, $caption, $url, $jsHint, $enabled, $enabledImage, $disabledImage, $type=MToolBar::TYPE_ICON_ONLY)
 
 showButtons ($name)
 
 showButton ($name)
 
 hideButtons ($name)
 
 hideButton ($name)
 
 enableButtons ($name)
 
 enableButton ($name)
 
 disableButtons ($name)
 
 disableButton ($name)
 
 setType ($type=MToolBar::TYPE_ICON_ONLY)
 
 setWidth ($width)
 
 addControl ($control, $name=NULL)
 
 generateInner ()
 
- Membros públicos herdados de MBaseGroup
 __construct ( $name='', $caption='', $controls='', $disposition='none', $border='css', $formMode=MFormControl::FORM_MODE_SHOW_ABOVE)
 
 setScrollHeight ( $height)
 
 setBorder ( $border)
 
 generate ()
 
- 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)
 
 getControls ()
 
 getControl ($pos)
 
 getControlById ($id)
 
 findControlById ($id)
 
 setControlById ($control, $id)
 
 clearControls ()
 
- 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')
 
 setHeight ($value)
 
 setColor ($value)
 
 setVisibility ($value)
 
 setFont ($value)
 
 getBox ()
 
 setBoxId ( $id)
 
 setBoxClass ( $cssClass, $add=true)
 
 getBoxClass ()
 
 setBoxAttributes ($attr)
 
 getBoxAttributes ()
 
 generateBox ( $content)
 
 addAttribute ( $name, $value='')
 
 setAttribute ( $name, $value)
 
 getAttribute ( $name)
 
 setAttributes ($attr)
 
 attributes ( $mergeDuplicates=false)
 
 getAttributes ( $mergeDuplicates=false)
 
 setReadOnly ($status)
 
 setEnabled ($state)
 
 setJsHint ( $hint)
 
 setHint ( $hint)
 
 setCaption ($caption)
 
 setHTMLTitle ($title)
 
 addBoxStyle ($name, $value)
 
 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 ()
 

Campos de Dados

const BUTTON_NEW = 'tbBtnNew'
 
const BUTTON_SAVE = 'tbBtnSave'
 
const BUTTON_DELETE = 'tbBtnDelete'
 
const BUTTON_SEARCH = 'tbBtnSearch'
 
const BUTTON_PRINT = 'tbBtnPrint'
 
const BUTTON_RESET = 'tbBtnReset'
 
const BUTTON_EXIT = 'tbBtnExit'
 
const TYPE_ICON_ONLY = 'icon-only'
 
const TYPE_TEXT_ONLY = 'text-only'
 
const TYPE_ICON_TEXT = 'icon-text'
 
- 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 Protegidos

 $toolBarButtons
 
 $width
 

Outros membros herdados

- 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

Class MToolBar.

Autor
Daniel Afonso Heisler

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 2005/08/04

Organization:
SOLIS - Cooperativa de Solções Livres
The MIOLO2 AND SAGU2 Development Team

Copyright:
Copyright (c) 2005 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)

Documentação dos Construtores & Destrutor

◆ __construct()

__construct ( $name = 'toolbar',
$url = '',
$type = MToolbar::TYPE_ICON_ONLY )

MToolbar constructor

Parâmetros
string$nameToolbar name
string$urlDefault URL
string$typeButtons type: MToolBar::TYPE_ICON_ONLY, MToolBar::TYPE_ICON_TEXT or MToolBar::TYPE_TEXT_ONLY

Documentação das funções

◆ addButton()

addButton ( $name,
$caption,
$url,
$jsHint,
$enabled,
$enabledImage,
$disabledImage,
$type = MToolBar::TYPE_ICON_ONLY )

Adds a custom button.

Parâmetros
string$nameMToolbarButton name.
string$captionCaption description.
string$urlButton action.
string$jsHintButton Javascript hint.
boolean$enableButton status.
string$enabledImageComplete image URL.
string$disabledImageComplete image URL.
string$method
string$typeButton type: MToolBar::TYPE_ICON_ONLY, MToolBar::TYPE_ICON_TEXT or MToolBar::TYPE_TEXT_ONLY.

◆ addControl()

addControl ( $control,
$name = NULL )

Add custom control to toolbar

Parâmetros
object$controlMControl instance.
string$nameControl name.

◆ disableButton()

disableButton ( $name)

Disables one or more buttons

Parâmetros
mixed$nameButton's name (string or array).

◆ disableButtons()

disableButtons ( $name)

Disables one or more buttons

Parâmetros
mixed$nameButton's name (string or array).

◆ enableButton()

enableButton ( $name)

Enables one or more buttons

Parâmetros
mixed$nameButton's name (string or array).

◆ enableButtons()

enableButtons ( $name)

Enables one or more buttons

Parâmetros
mixed$nameButton's name (string or array).

◆ generateInner()

generateInner ( )

Generate inner content.

Reimplementado de MBaseGroup.

◆ hideButton()

hideButton ( $name)

Hides one or more buttons

Parâmetros
mixed$nameButton's name (string or array).

◆ hideButtons()

hideButtons ( $name)

Hides one or more buttons

Parâmetros
mixed$nameButton's name (string or array).

◆ setType()

setType ( $type = MToolBar::TYPE_ICON_ONLY)

Set button's type

Parâmetros
string$typeButton type: MToolBar::TYPE_ICON_ONLY, MToolBar::TYPE_ICON_TEXT or MToolBar::TYPE_TEXT_ONLY

◆ setWidth()

setWidth ( $width)

Set toolbar width

Parâmetros
string$widthWidth size

Reimplementado de MControl.

◆ showButton()

showButton ( $name)

Shows one or more buttons

Parâmetros
mixed$nameButton's name (string or array).

◆ showButtons()

showButtons ( $name)

Shows one or more buttons

Parâmetros
$name(string or array) Button's name

Documentação dos campos e atributos

◆ $toolBarButtons

$toolBarButtons
protected

◆ $width

$width
protected

◆ BUTTON_DELETE

const BUTTON_DELETE = 'tbBtnDelete'

◆ BUTTON_EXIT

const BUTTON_EXIT = 'tbBtnExit'

◆ BUTTON_NEW

const BUTTON_NEW = 'tbBtnNew'

Button's name constants

◆ BUTTON_PRINT

const BUTTON_PRINT = 'tbBtnPrint'

◆ BUTTON_RESET

const BUTTON_RESET = 'tbBtnReset'

◆ BUTTON_SAVE

const BUTTON_SAVE = 'tbBtnSave'

◆ BUTTON_SEARCH

const BUTTON_SEARCH = 'tbBtnSearch'

◆ TYPE_ICON_ONLY

const TYPE_ICON_ONLY = 'icon-only'

Toolbar button types

◆ TYPE_ICON_TEXT

const TYPE_ICON_TEXT = 'icon-text'

◆ TYPE_TEXT_ONLY

const TYPE_TEXT_ONLY = 'text-only'

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