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

Membros públicos

 __construct ($name, $itens=array(), $isSubMenu=false)
 
 addItem ($item)
 
 enableZebra ()
 
 addCustomCSS ($css, $cssClass)
 
 addCustomItem ($label, $onClick, $iconClass)
 
 removeItemByLabel ($label)
 
 addSeparator ()
 
 addSubMenu ($contextMenu, $label, $onClick, $iconClass)
 
 destroy ()
 
 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 ()
 
 setContent ($inner)
 
 setInner ($inner)
 
 getInner ()
 
 getRender ( $method)
 
 getInnerToString ()
 
 getCSSP ()
 
 generateInner ()
 
 __toString ()
 
- Membros públicos herdados de MComponent
 getManager ()
 

Campos de Dados

const ICON_CANCEL = 'dijitEditorIcon dijitEditorIconCancel'
 
const ICON_COPY = 'dijitEditorIcon dijitEditorIconCopy'
 
const ICON_CUT = 'dijitEditorIcon dijitEditorIconCut'
 
const ICON_DELETE = 'dijitEditorIcon dijitEditorIconDelete'
 
const ICON_DUPLICATE = 'mMenuIcon mMenuIconDuplicate'
 
const ICON_EDIT = 'mMenuIcon mMenuIconEdit'
 
const ICON_EXPORT = 'mMenuIcon mMenuIconExport'
 
const ICON_EXPORT_HTML = 'mMenuIcon mMenuIconExportHTML'
 
const ICON_EXPORT_PDF = 'mMenuIcon mMenuIconExportPDF'
 
const ICON_EXPORT_CSV = 'mMenuIcon mMenuIconExportCSV'
 
const ICON_INSERT = 'mMenuIcon mMenuIconInsert'
 
const ICON_PASTE = 'dijitEditorIcon dijitEditorIconPaste'
 
const ICON_RELATION = 'mMenuIcon mMenuIconRelation'
 
const ICON_REMOVE = 'mMenuIcon mMenuIconRemove'
 
const ICON_SAVE = 'dijitEditorIcon dijitEditorIconSave'
 
const ICON_VIEW = 'mMenuIcon mMenuIconView'
 
const ICON_WORKFLOW = 'mMenuIcon mMenuIconWorkflow'
 
 $isSubMenu
 
 $itens
 
- 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,
$itens = array(),
$isSubMenu = false )

MStaticMenu constructor

Parâmetros
string$nameMenu name.
array$itensArray of MMenuItem instances.
boolean$isSubMenuWhether menu is a sub menu.

Documentação das funções

◆ addCustomCSS()

addCustomCSS ( $css,
$cssClass )

Add custom CSS style.

Parâmetros
string$cssCSS style.
string$cssClassNew class name.

◆ addCustomItem()

addCustomItem ( $label,
$onClick,
$iconClass )

Add a custom item.

Parâmetros
string$labelItem label.
string$onClickOn click action.
string$iconClassIcon CSS class.

◆ addItem()

addItem ( $item)

Add an item to menu.

Parâmetros
object$itemMMenuItem instance.

◆ addSeparator()

addSeparator ( )

Add a separator.

◆ addSubMenu()

addSubMenu ( $contextMenu,
$label,
$onClick,
$iconClass )

Add another MStaticMenu instance as a sub menu.

Parâmetros
object$contextMenuMStaticMenu instance
string$labelSub menu label.
string$onClickOn click action.
string$iconClassIcon CSS class.

◆ destroy()

destroy ( )

Destroy current menu instance.

◆ enableZebra()

enableZebra ( )

Enable zebra menu.

◆ generate()

generate ( )
Retorna
string The generated menu.

Reimplementado de MDiv.

Reimplementado em MContextMenu.

◆ removeItemByLabel()

removeItemByLabel ( $label)

Remove an item by Label. The method compares that label of item is equal to passed label and remove it from list.

Parâmetros
$labelthe label to remove

Documentação dos campos e atributos

◆ $isSubMenu

$isSubMenu

◆ $itens

$itens

◆ ICON_CANCEL

const ICON_CANCEL = 'dijitEditorIcon dijitEditorIconCancel'

Constants for the icon CSS classes.There is more at dojo.css present on the theme directory.

◆ ICON_COPY

const ICON_COPY = 'dijitEditorIcon dijitEditorIconCopy'

◆ ICON_CUT

const ICON_CUT = 'dijitEditorIcon dijitEditorIconCut'

◆ ICON_DELETE

const ICON_DELETE = 'dijitEditorIcon dijitEditorIconDelete'

◆ ICON_DUPLICATE

const ICON_DUPLICATE = 'mMenuIcon mMenuIconDuplicate'

◆ ICON_EDIT

const ICON_EDIT = 'mMenuIcon mMenuIconEdit'

◆ ICON_EXPORT

const ICON_EXPORT = 'mMenuIcon mMenuIconExport'

◆ ICON_EXPORT_CSV

const ICON_EXPORT_CSV = 'mMenuIcon mMenuIconExportCSV'

◆ ICON_EXPORT_HTML

const ICON_EXPORT_HTML = 'mMenuIcon mMenuIconExportHTML'

◆ ICON_EXPORT_PDF

const ICON_EXPORT_PDF = 'mMenuIcon mMenuIconExportPDF'

◆ ICON_INSERT

const ICON_INSERT = 'mMenuIcon mMenuIconInsert'

◆ ICON_PASTE

const ICON_PASTE = 'dijitEditorIcon dijitEditorIconPaste'

◆ ICON_RELATION

const ICON_RELATION = 'mMenuIcon mMenuIconRelation'

◆ ICON_REMOVE

const ICON_REMOVE = 'mMenuIcon mMenuIconRemove'

◆ ICON_SAVE

const ICON_SAVE = 'dijitEditorIcon dijitEditorIconSave'

◆ ICON_VIEW

const ICON_VIEW = 'mMenuIcon mMenuIconView'

◆ ICON_WORKFLOW

const ICON_WORKFLOW = 'mMenuIcon mMenuIconWorkflow'

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