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

Membros públicos

 __construct ($id, $type=self::TYPE_JS, $itens=array(), $isSubMenu=false)
 
 setLeftClickOpen ($leftClickOpen)
 
 setCoords ($coords)
 
 setTarget ($targetControl)
 
 configureContextMenu ()
 
 generate ()
 
- Membros públicos herdados de MStaticMenu
 __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 ()
 
- Membros públicos herdados de MDiv
 addAttribute ($attr, $value)
 
- 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 TYPE_JS = 'js'
 
const TYPE_AJAX = 'ajax'
 
 $type
 
 $coords
 
 $targetControl
 
 $leftClickOpen = false
 
- Campos de Dados herdados de MStaticMenu
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)
 

Descrição detalhada

Component to create a context menu.

Autor
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]

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 2011/08/26

Organization:
SOLIS - Cooperativa de Soluções Livres
Copyright:
Copyright (c) 2011 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 ( $id,
$type = self::TYPE_JS,
$itens = array(),
$isSubMenu = false )

MContextMenu constructor.

Parâmetros
string$idMenu id.
string$typeType of opening. Use constants TYPE_JS or TYPE_AJAX.
array$itensArray of MMenuItem instances.
boolean$isSubMenuWhether menu is a sub menu.

Reimplementado de MDiv.

Documentação das funções

◆ configureContextMenu()

configureContextMenu ( )

Configure menu via JavaScript.

◆ generate()

generate ( )
Retorna
string Return the context menu generated.

Reimplementado de MStaticMenu.

◆ setCoords()

setCoords ( $coords)

Coordinates where the menu must be opened.

Parâmetros
string$coordsX and Y points separated by ':'. E.g. '100:50'.

◆ setLeftClickOpen()

setLeftClickOpen ( $leftClickOpen)
Parâmetros
boolean$leftClickOpenSet to open menu via left click.

◆ setTarget()

setTarget ( $targetControl)

Define the menu target.

Parâmetros
object$targetControlMControl instance.

Documentação dos campos e atributos

◆ $coords

$coords

◆ $leftClickOpen

$leftClickOpen = false

◆ $targetControl

$targetControl

◆ $type

$type

◆ TYPE_AJAX

string Type by which the menu must be opened TYPE_JS or TYPE_AJAX = 'ajax'

◆ TYPE_JS

const TYPE_JS = 'js'

Possible types of opening menu.


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