MIOLO25
Carregando...
Procurando...
Nenhuma entrada encontrada
Referência à classe MPopup
Diagrama de heranças da classe MPopup
MDiv MControl MControl MComponent MComponent MPopupAlert MPopupConfirm MPopupPrompt

Membros públicos

 __construct ($name, $content, $title)
 
 setShowCloseButton ($showCloseButton)
 
 getShowCloseButton ()
 
 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 ()
 

Membros públicos estáticos

static getPopupContainer ()
 
static setResponseContainer ($responseContainer)
 
static getResponseContainer ()
 
static prompt ($message, $label=NULL, $action=':promptConfirmation', $defaultValue=NULL)
 
static alert ($message, $label=NULL, $action='javascript:mpopup.remove();')
 
static confirm ($message, $label=NULL, $actionYes=':confirmAction', $actionNo='javascript:mpopup.remove();')
 
static show ($name, $content, $label, $closeButton=true)
 
static remove ()
 

Campos de Dados

const CONTAINER_ID = 'mPopupResponse'
 
const PROMPT_FIELD_ID = 'mPopupPromptField'
 
 $content
 
 $title
 
- 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
 

Membros protegidos estáticos

static getPromptFields ($message, $action, $defaultValue)
 
static getAlertFields ($message, $action)
 
static getConfirmFields ($message, $actionYes, $actionNo)
 

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,
$content,
$title )

MPopup constructor.

Parâmetros
string$nameFields container id
array$contentArray of fields to be shown on the popup
string$labelTitle string

Reimplementado em MPopupAlert.

Documentação das funções

◆ alert()

static alert ( $message,
$label = NULL,
$action = 'javascript:mpopup.remove();' )
static

Displays an alert popup.

Parâmetros
string$messageMessage to be shown
string$labelTitle string
string$actionAjax action to be called on clicking the OK button

◆ confirm()

static confirm ( $message,
$label = NULL,
$actionYes = ':confirmAction',
$actionNo = 'javascript:mpopup.remove();' )
static

Displays a confirmation popup.

Parâmetros
string$messageMessage to be shown
string$labelTitle string
string$actionYesAjax action to be called on clicking the Yes button
string$actionNoAjax action to be called on clicking the No button

◆ generate()

generate ( )

Reimplementado de MDiv.

◆ getAlertFields()

static getAlertFields ( $message,
$action )
staticprotected

Returns the alert fields to create a alert popup.

Parâmetros
string$messageMessage to be shown
string$actionAjax action to be called on clicking the OK button
Retorna
array Components array with the title bar and the popup body with alert fields

◆ getConfirmFields()

static getConfirmFields ( $message,
$actionYes,
$actionNo )
staticprotected

Returns the confirmation fields to create a confirmation popup.

Parâmetros
string$messageMessage to be shown
string$actionYesAjax action to be called on clicking the Yes button
string$actionNoAjax action to be called on clicking the No button
Retorna
array Components array with the title bar and the popup body with confirmation fields

◆ getPopupContainer()

static getPopupContainer ( )
static

Creates a div to put the popup upon. You really need to add this to your fields to get the MPopup component working.

Retorna
MDiv

◆ getPromptFields()

static getPromptFields ( $message,
$action,
$defaultValue )
staticprotected

Returns the prompt fields to create a prompt popup.

Parâmetros
string$messageMessage to be shown
string$actionAjax action to be called when clicking de OK button
string$defaultValueDefault value of the prompt field
Retorna
array Components array with the title bar and the popup body with prompt fields

◆ getResponseContainer()

static getResponseContainer ( )
static
Retorna
string Set the element id where the popup will be rendered.

◆ getShowCloseButton()

getShowCloseButton ( )
Retorna
boolean Get whether is to show the close button.

◆ prompt()

static prompt ( $message,
$label = NULL,
$action = ':promptConfirmation',
$defaultValue = NULL )
static

Displays a prompt popup.

Parâmetros
string$messageMessage to be shown
string$labelTitle string
string$actionAjax action to be called on clicking the OK button
string$defaultValueDefault value of the prompt field

◆ remove()

static remove ( )
static

Sets to remove the opened popup on loading the page.

◆ setResponseContainer()

static setResponseContainer ( $responseContainer)
static
Parâmetros
string$responseContainerSet the element id where the popup must be rendered.

◆ setShowCloseButton()

setShowCloseButton ( $showCloseButton)
Parâmetros
boolean$showCloseButtonSet whether to show the close button.

◆ show()

static show ( $name,
$content,
$label,
$closeButton = true )
static

Displays a popup without needing to instantiate it.

Parâmetros
string$nameFields container id
array$contentArray of fields to be shown on the popup
string$labelTitle string
boolean$closeButtonWhether to show the close button.

Documentação dos campos e atributos

◆ $content

$content

◆ $title

$title

◆ CONTAINER_ID

const CONTAINER_ID = 'mPopupResponse'

Default container id where the popup must be rendered.

◆ PROMPT_FIELD_ID

const PROMPT_FIELD_ID = 'mPopupPromptField'

Default id for the prompt field.


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