SubPanel Class
[subPanelPrototype description]
Constructor
Item Index
Methods
Methods
changeOrigin
-
newOrigin
Defined in
src/js/RAMP/Modules/gui.js:486
Assigns a new origin to the SubPanel.
Parameters:
-
newOrigin
StringThe new origin of the SubPanel.
create
-
a
Defined in
src/js/RAMP/Modules/gui.js:511
Creates a new instance of SubPanel.
Parameters:
-
a
SubPanelSettingsSettings for the SubPanel
destroy
-
speed
-
deferred
Defined in
src/js/RAMP/Modules/gui.js:408
Destroys this SubPanel.
Parameters:
-
speed
NumberThe duration of the animation in milliseconds
-
deferred
DeferredThe deferred to be resolved after the SubPanel is destroyed
getAttributes
()
SubPanelSettings
Defined in
src/js/RAMP/Modules/gui.js:363
Returns this SubPanel's settings object.
Returns:
This SubPanel's settings
getContainer
()
JObject
Defined in
src/js/RAMP/Modules/gui.js:372
Returns this SubPanel's container div
.
Returns:
This SubPanel's div
getOrigin
()
String
Defined in
src/js/RAMP/Modules/gui.js:390
Returns the origin
of this SubPanel.
Returns:
The origin
of this SubPanel
getOrigin
()
String
Defined in
src/js/RAMP/Modules/gui.js:399
Returns the guid
of this SubPanel.
Returns:
The guid
of this SubPanel
getPanel
()
JObject
Defined in
src/js/RAMP/Modules/gui.js:381
Returns the inner div
of the SubPanel
Returns:
The inner div
of the SubPanel
open
()
Defined in
src/js/RAMP/Modules/gui.js:471
Opens the SubPanel. Sends out EventManager.GUI.SUBPANEL_CHANGE
event.
parseContent
-
data
Defined in
src/js/RAMP/Modules/gui.js:348
Apply the shortening plugin to the panel data
Parameters:
-
data
JObjectContent to be shortened
Returns:
Content with after shortening long text nodes
reopen
()
Defined in
src/js/RAMP/Modules/gui.js:454
Reopens the SubPanel - stops the closing animation and initiates the opening animation.
shiftTarget
-
newTarget
Defined in
src/js/RAMP/Modules/gui.js:496
Shifts the SubPanel to the new node in the DOM.
Parameters:
-
newTarget
JObjectA node in the DOM to shift the SubPanel to
update
-
a
Defined in
src/js/RAMP/Modules/gui.js:568
Performs an update of the content and title of the SubPanel, running appropriate animation and doOn-
/ doAfter-
functions.
Parameters:
-
a
SubPanelSettingsNew settings for the SubPanel
Properties
_animatePanelDuration
Number
private
Defined in
src/js/RAMP/Modules/gui.js:335
Default duration of the SubPanel animation in milliseconds.
Default: 0.5
_attr
SubPanelSettings
private
Defined in
src/js/RAMP/Modules/gui.js:266
SubPanel attributes
Default: null
_closing
Boolean
private
Defined in
src/js/RAMP/Modules/gui.js:245
Indicates if the closing animation is under way.
Default: false
_destroyDeferred
Deferred
private
Defined in
src/js/RAMP/Modules/gui.js:256
Holds a deferred that would destroy the panel after the closing animation completes. May be interrupted.
Default: null
_panelContentDiv
JObject
private
Defined in
src/js/RAMP/Modules/gui.js:325
div
housing the content of the SubPanel, excluding its title.
Default: null
_panelTitle
JObject
private
Defined in
src/js/RAMP/Modules/gui.js:315
Heading of the content in the SubPanel.
Default: null
_subPanelContentDiv
JObject
private
Defined in
src/js/RAMP/Modules/gui.js:305
div
housing the content of the SubPanel, including its title.
Default: null
_visible
Boolean
private
Defined in
src/js/RAMP/Modules/gui.js:276
Indicates if the SubPanel is visible at the moment. Doesn't make the panel visible or invisible, just prevents animations on the content
to run when it is set to true
.
Default: false
container
JObject
Defined in
src/js/RAMP/Modules/gui.js:287
The outermost div
of the SubPanel.
Default: null
panel
JQobject
Defined in
src/js/RAMP/Modules/gui.js:296
The inner div
of the SubPanel. Closing and opening animations are run on this div
.
Default: null