linb.UI.Dialog

Direct Super Classes

linb.Base

linb.iDataBinder

linb.UI

linb.UI.iBox

linb.UI.iWidget

linb.UI.Widget

Events

afterCreated (profile)
Fired after component is created. At this time, component object has not been attached to DOM.
profile: UIProfile. See profile name.

afterRendered (profile)
Fired after component is rendered in DOM. At this time, component object has been attached to DOM.
profile: UIProfile. See profile name.

beforeClose ( profile)
Fired before dialog is close.
profile: UIProfile. See profile name.

beforeDestroy (profile)
Fired before component is destroyed.
profile: UIProfile. See profile name.

onDragEnter (profile, e, node, key, data, item)
Fired when end user drags something into this component.
profile: UIProfile. See profile name.
e:See event object.
node: DOM node. The node accepting object dragged.
key: String. DragKey of object dragged.
data: Any. Data of object dragged.
item: Always be null.

onDragLeave (profile, e, node, key, data, item)
Fired when end user drags something out of this component.
profile: UIProfile. See profile name.
e:See event object.
node: DOM node. The node accepting object dragged.
key: String. DragKey of object dragged.
data: Any. Data of object dragged.
item: Always be null.

onDrop (profile, e, node, key, data, item)
Fired when end user drop something into this component.
profile: UIProfile. See profile name.
e:See event object.
node: DOM node. The node accepting object dragged.
key: String. DragKey of object dragged.
data: Any. Data of object dragged.
item: Always be null.

onDropMarkClear (profile, e, node, key, data, item)
Fired before this component darkles itself when end user drop something out of this component. Developer can change the default way of highlighting in this event handler. If false returned, default highlighting behavior will be cancelled.
profile: UIProfile. See profile name.
e:See event object.
node: DOM node. The node accepting object dragged.
key: String. DragKey of object dragged.
data: Any. Data of object dragged.
item: Always be null.

onDropMarkShow (profile, e, node, key, data, item)
Fired before this component highlights itself when end user drop something into this component. Developer can change the default way of highlighting in this event handler. If false returned, default highlighting behavior will be cancelled.
profile: UIProfile. See profile name.
e:See event object.
node: DOM node. The node accepting object dragged.
key: String. DragKey of object dragged.
data: Any. Data of object dragged.
item: Always be null.

onDropTest (profile, e, node, key, data, item)
Fired when component determine whether object dragged is acceptable. If true returned, object can be accepted. If false returned, object will be denied.
profile: UIProfile. See profile name.
e:See event object.
node: DOM node. The node accepting object dragged.
key: String. DragKey of object dragged.
data: Any. Data of object dragged.
item: Always be null.

onHotKeydown (profile, key, control, shift, alt, e, src)
Fired when key is down.
profile: UIProfile. See profile name.
key: String. Example - "a","b","c","enter","tab".
control: Boolean. True for user pressing Ctrl key , false for not.
shift: Boolean. True for user pressing Shift key , false for not.
alt: Boolean. True for user pressing Alt key , false for not.
e: See event object.
src: DOM node. Event host.

onHotKeypress (profile, key, control, shift, alt, e, src)
Fired when key is pressed.
profile: UIProfile. See profile name.
key: String. Example - "a","b","c","enter","tab".
control: Boolean. True for user pressing Ctrl key , false for not.
shift: Boolean. True for user pressing Shift key , false for not.
alt: Boolean. True for user pressing Alt key , false for not.
e: See event object.
src: DOM node. Event host.

onHotKeyup (profile, key, control, shift, alt, e, src)
Fired when key is up.
profile: UIProfile. See profile name.
key: String. Example - "a","b","c","enter","tab".
control: Boolean. True for user pressing Ctrl key , false for not.
shift: Boolean. True for user pressing Shift key , false for not.
alt: Boolean. True for user pressing Alt key , false for not.
e: See event object.
src: DOM node. Event host.

onTriggerOption (profile, e, src)
Fired when option button on the caption is pressed.

Instance Methods

close ( )
To close dialog.

empty ( )
To clear up all components inside itself.

getDropKeys ( )
To get keys for indentity with which as dragging key something can be droped into it.
returns: String. Combination of Indentity key string array, separated by colon. Example - "iDesign:iAny".

getLandBtn ( )
To determine whether dialog has a landing button.
returns: boolean. true for yes, false for no.

getMaxBtn ( )
To determine whether dialog has a max button.
returns: boolean. true for yes, false for no.

getMinBtn ( )
To determine whether dialog has a min button.
returns: boolean. true for yes, false for no.

getMinHeight ( )
To get dialog minimum height.
returns: integer. Minimum height.

getMinWidth ( )
To get dialog minimum width.
returns: integer. Minimum width.

getMovable ( )
To determine whether dialog is movable by dragging caption.
returns: Boolean. True for movable, false for not.

getOptBtn ( )
To determine whether an option button is showing or hiding.
returns: boolean. True for showing, false for hiding.

getPanelChildren ( )
To get children panel.
returns: Panel UI object.

getPinBtn ( )
Determine whether dialog has a pin button.
return - true for does, false for doesn't.

getResizable ( )
Determine whether dialog is resizeble.
return - true for is, false for isn't.

getShadow ( )
Determine whether dialog has shadow.
return - true for does, false for doesn't.

getStatus ( )
Get dialog status.
returns: string. Could be "min", "max".

hide ( )
Hide dialog but not destroy it.

html ( html )
To set or get inner html.
html: String. Inner html.
returns: String. If no parameters are specified, current inner html string will be returned.

removePanel ( )
To remove inner panel.

setCloseBtn ( value, flag )
To add or remove a close button for dialog.
value: boolean. true for adding, false for removing.

setDropKeys ( value, flag )
Set drop keys for dialog.
value: string. drop keys.

setLandBtn ( value, flag )
To add or remove a landing button for dialog.
value: boolean. true for adding, false for removing.

setMaxBtn ( value, flag )
To add or remove a max button for dialog.
value: boolean. true for adding, false for removing.

setMinBtn ( value, flag )
To add or remove a min button for dialog.
value: boolean. true for adding, false for removing.

setMinHeight ( value, flag )
Set dialog minimum height.
value: integer. minimum height.

setMinWidth ( value, flag )
Set dialog minimum width.
value: integer. minimum width.

setMovable ( value, flag )
Specify dialog is movable.
value: true for movable, false for sticky

setOptBtn ( value, flag )
To add or remove an option button for dialog.
value: boolean. true for adding, false for removing.

setPinBtn ( value, flag )
To add or remove a pin button for dialog.
value: boolean. true for adding, false for removing.

setResizable ( value, flag )
Specify dialog is resizable.
value: true for resizable, false for fixed size

setShadow ( value, flag )
To add or remove shadow for dialog.
value: boolean. true for adding, false for removing.

setStatus ( value, flag )
Set dialog status.
value: string. Could be "min", "max".

show ( parent, modal )
To show dialog within parent on the page.
parent: UI control. Within which dialog shows.
modal: Boolean. true for modal dialog, false for modaless dialog.

Instance Properties

Static Methods

alert ( caption, content, onOK )
Pop up an alert box.
caption: string. Caption of alert box.
content: string. Alert message.
onOK: function. Call back function which will be executed after OK button being clicked.

confirm ( caption, content, onYes, onNo )
Pop up an confirmation box.
caption: string. Caption of confirmation box.
content: string. Confirmation message.
onYes: function. Call back function which will be executed after Yes button being clicked.
onNo: function. Call back function which will be executed after No button being clicked.

pop ( caption, content )
Pop up an box.
caption: string. Caption of box.
content: string. Body message.

Static Properties