MIOLO25
|
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) | |
Component to create a context menu.
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]
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)
__construct | ( | $id, | |
$type = self::TYPE_JS, | |||
$itens = array(), | |||
$isSubMenu = false ) |
MContextMenu constructor.
string | $id | Menu id. |
string | $type | Type of opening. Use constants TYPE_JS or TYPE_AJAX. |
array | $itens | Array of MMenuItem instances. |
boolean | $isSubMenu | Whether menu is a sub menu. |
Reimplementado de MDiv.
configureContextMenu | ( | ) |
Configure menu via JavaScript.
generate | ( | ) |
Reimplementado de MStaticMenu.
setCoords | ( | $coords | ) |
Coordinates where the menu must be opened.
string | $coords | X and Y points separated by ':'. E.g. '100:50'. |
setLeftClickOpen | ( | $leftClickOpen | ) |
boolean | $leftClickOpen | Set to open menu via left click. |
setTarget | ( | $targetControl | ) |
Define the menu target.
object | $targetControl | MControl instance. |
$coords |
$leftClickOpen = false |
$targetControl |
$type |
string Type by which the menu must be opened TYPE_JS or TYPE_AJAX = 'ajax' |
const TYPE_JS = 'js' |
Possible types of opening menu.