API Docs for: 0.0.8-0
Show:

SubPanel Class

Module: UI
Parent Module: RAMP

[subPanelPrototype description]

Constructor

Methods

changeOrigin

(
  • newOrigin
)

Assigns a new origin to the SubPanel.

Parameters:

  • newOrigin String

    The new origin of the SubPanel.

create

(
  • a
)

Creates a new instance of SubPanel.

Parameters:

destroy

(
  • speed
  • deferred
)

Destroys this SubPanel.

Parameters:

  • speed Number

    The duration of the animation in milliseconds

  • deferred Deferred

    The deffered to be resolved after the SubPanel is destroyed

getAttributes

() SubPanelSettings

Returns this SubPanel's settings object.

Returns:

SubPanelSettings:

This SubPanel's settings

getContainer

() Jobject

Returns this SubPanel's container div.

Returns:

Jobject:

This SubPanel's div

getOrigin

() String

Returns the origin of this SubPanel.

Returns:

String:

The origin of this SubPanel

getOrigin

() String

Returns the guid of this SubPanel.

Returns:

String:

The guid of this SubPanel

getPanel

() JObject

Retursn the inner div of the SubPanel

Returns:

JObject:

The inner div of the SubPanel

open

()

Opens the SubPanel. Sends out EventManager.GUI.SUBPANEL_CHANGE event.

parseContent

(
  • data
)
JObject

Apply the shortening plugin to the panel data

Parameters:

  • data JObject

    Content to be shortened

Returns:

JObject:

Content with after shortening long text nodes

reopen

()

Reopens the SubPanel - stops the closing animation and initiates the opening animation.

shiftTarget

(
  • newTarget
)

Shifts the SubPanel to the new node in the DOM.

Parameters:

  • newTarget JObject

    A node in the DOM to shift the SubPanel to

update

(
  • a
)

Performs an update of the content and title of the SubPanel, running appropriate animation and doOn- / doAfter- functions.

Parameters:

Properties

_animatePanelDuration

Number private

Default duration of the SubPanel animation in milliseconds.

Default: 400

_attr

SubPanelSettings private

SubPanel attributes

Default: null

_closing

Boolean private

Indicates if the closing animation is under way.

Default: false

_destroyDeferred

Deferred private

Holds a deferred that would destory the panel after the closing animation completes. May be interrupted.

Default: null

_panelContentDiv

JObject private

div housing the content of the SubPanel, excluding its title.

Default: null

_panelTitle

JObject private

Heading of the content in the SubPanel.

Default: null

_subPanelContentDiv

JObject private

div housing the content of the SubPanel, including its title.

Default: null

_visible

Boolean private

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

The outermost div of the SubPanel.

Default: null

footerDelta

Number private

Specifies the hight of the footer in the full-screen mode. Should be smaller than footerHeight.

fullScreenDelta2

Number private

The height difference between the normal and full-screen modes.

panel

JQobject

The inner div of the SubPanel. Closing and opening animations are run on this div.

Default: null