/* This file is part of Ext JS 3.4 Copyright (c) 2011-2013 Sencha Inc Contact: http://www.sencha.com/contact GNU General Public License Usage This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. Build date: 2013-04-03 15:07:25 */ Ext.data.JsonP.Ext_SplitBar({"alternateClassNames":[],"aliases":{},"enum":null,"parentMixins":[],"tagname":"class","subclasses":[],"extends":"Ext.util.Observable","uses":[],"html":"

Hierarchy

Files

Creates draggable splitter bar functionality from two elements (element to be dragged and element to be resized).

\n\n

\n\n\n

Usage:

\n\n
var split = new Ext.SplitBar(\"elementToDrag\", \"elementToSize\",\n                   Ext.SplitBar.HORIZONTAL, Ext.SplitBar.LEFT);\nsplit.setAdapter(new Ext.SplitBar.AbsoluteLayoutAdapter(\"container\"));\nsplit.minSize = 100;\nsplit.maxSize = 600;\nsplit.animate = true;\nsplit.on('moved', splitterMoved);\n
\n\n
Defined By

Config options

(optional) A config object containing one or more event handlers to be added to this\nobject during initialization. ...

(optional)

A config object containing one or more event handlers to be added to this\nobject during initialization. This should be a valid listeners config object as specified in the\naddListener example for attaching multiple handlers at once.

\n\n

DOM events from ExtJs Components

\n\n\n

While some ExtJs Component classes export selected DOM events (e.g. \"click\", \"mouseover\" etc), this\n\n\n

is usually only done when extra value can be added. For example the DataView's\nclick event passing the node clicked on. To access DOM\nevents directly from a Component's HTMLElement, listeners must be added to the Element after the Component\nhas been rendered. A plugin can simplify this step:

\n\n
// Plugin is configured with a listeners config object.\n// The Component is appended to the argument list of all handler functions.\nExt.DomObserver = Ext.extend(Object, {\n    constructor: function(config) {\n        this.listeners = config.listeners ? config.listeners : config;\n    },\n\n    // Component passes itself into plugin's init method\n    init: function(c) {\n        var p, l = this.listeners;\n        for (p in l) {\n            if (Ext.isFunction(l[p])) {\n                l[p] = this.createHandler(l[p], c);\n            } else {\n                l[p].fn = this.createHandler(l[p].fn, c);\n            }\n        }\n\n        // Add the listeners to the Element immediately following the render call\n        c.render = c.render.createSequence(function() {\n            var e = c.getEl();\n            if (e) {\n                e.on(l);\n            }\n        });\n    },\n\n    createHandler: function(fn, c) {\n        return function(e) {\n            fn.call(this, e, c);\n        };\n    }\n});\n\nvar combo = new Ext.form.ComboBox({\n\n    // Collapse combo when its element is clicked on\n    plugins: [ new Ext.DomObserver({\n        click: function(evt, comp) {\n            comp.collapse();\n        }\n    })],\n    store: myStore,\n    typeAhead: true,\n    mode: 'local',\n    triggerAction: 'all'\n});\n
\n\n\n

\n
Defined By

Properties

Ext.SplitBar
view source
adapter : Objectprivate

The adapter to use to positon and resize elements

\n

The adapter to use to positon and resize elements

\n
Ext.SplitBar
view source
: Boolean
Whether to animate the transition to the new size ...

Whether to animate the transition to the new size

\n

Defaults to: false

Ext.SplitBar
view source
b4StartDrag : Objectprivate
\n
\n
Ext.SplitBar
view source
dd : Objectprivate
\n
\n
Ext.SplitBar
view source
: Objectprivate
...
\n

Defaults to: {}

Ext.SplitBar
view source
el : Objectprivate
\n
\n
Ext.SplitBar
view source
endDrag : Objectprivate
\n
\n
The maximum size of the resizing element. ...

The maximum size of the resizing element. (Defaults to 2000)

\n

Defaults to: 2000

The minimum size of the resizing element. ...

The minimum size of the resizing element. (Defaults to 0)

\n

Defaults to: 0

Ext.SplitBar
view source
: Numberprivate
The orientation of the split. ...

The orientation of the split. Either Ext.SplitBar.HORIZONTAL or Ext.SplitBar.VERTICAL. (Defaults to HORIZONTAL)\nNote: If this is changed after creating the SplitBar, the placement property must be manually updated

\n
Ext.SplitBar
view source
proxy : Objectprivate
\n
\n
Ext.SplitBar
view source
resizingEl : Objectprivate
\n
\n
Ext.SplitBar
view source
shim : Objectprivate
\n
\n
The increment, in pixels by which to move this SplitBar. ...

The increment, in pixels by which to move this SplitBar. When undefined, the SplitBar moves smoothly.

\n
Ext.SplitBar
view source
: Boolean
Whether to create a transparent shim that overlays the page when dragging, enables dragging across iframes. ...

Whether to create a transparent shim that overlays the page when dragging, enables dragging across iframes.

\n

Defaults to: false

Defined By

Methods

Ext.SplitBar
view source
new( dragElement, resizingElement, [orientation], [placement] ) : Ext.SplitBar
Create a new SplitBar ...

Create a new SplitBar

\n

Parameters

  • dragElement : Mixed

    The element to be dragged and act as the SplitBar.

    \n
  • resizingElement : Mixed

    The element to be resized based on where the SplitBar element is dragged

    \n
  • orientation : Number (optional)

    Either Ext.SplitBar.HORIZONTAL or Ext.SplitBar.VERTICAL. (Defaults to HORIZONTAL)

    \n
  • placement : Number (optional)

    Either Ext.SplitBar.LEFT or Ext.SplitBar.RIGHT for horizontal or

    \n\n
                        Ext.SplitBar.TOP or Ext.SplitBar.BOTTOM for vertical. (By default, this is determined automatically by the initial\n                    position of the SplitBar).\n
    \n

Returns

Adds the specified events to the list of events which this Observable may fire. ...

Adds the specified events to the list of events which this Observable may fire.

\n

Parameters

  • o : Object|String

    Either an object with event names as properties with a value of true\nor the first event name string if multiple event names are being passed as separate parameters.

    \n
  • Optional : string

    . Event name if multiple event names are being passed as separate parameters.\nUsage:

    \n\n
    this.addEvents('storeloaded', 'storecleared');\n
    \n\n
( eventName, handler, [scope], [options] )
Appends an event handler to this object. ...

Appends an event handler to this object.

\n

Parameters

  • eventName : String

    The name of the event to listen for.

    \n
  • handler : Function

    The method the event invokes.

    \n
  • scope : Object (optional)

    The scope (this reference) in which the handler function is executed.\nIf omitted, defaults to the object which fired the event.

    \n
  • options : Object (optional)

    An object containing handler configuration.\nproperties. This may contain any of the following properties:

      \n
    • scope : Object
      The scope (this reference) in which the handler function is executed.\nIf omitted, defaults to the object which fired the event.
    • \n
    • delay : Number
      The number of milliseconds to delay the invocation of the handler after the event fires.
    • \n
    • single : Boolean
      True to add a handler to handle just the next firing of the event, and then remove itself.
    • \n
    • buffer : Number
      Causes the handler to be scheduled to run in an Ext.util.DelayedTask delayed\nby the specified number of milliseconds. If the event fires again within that time, the original\nhandler is not invoked, but the new handler is scheduled in its place.
    • \n
    • target : Observable
      Only call the handler if the event was fired on the target Observable, not\nif the event was bubbled up from a child Observable.
    • \n

    \n\n

    \nCombining Options
    \nUsing the options argument, it is possible to combine different types of listeners:
    \n
    \nA delayed, one-time listener.\n

    myDataView.on('click', this.onClick, this, {\nsingle: true,\ndelay: 100\n});
    \n

    \nAttaching multiple handlers in 1 call
    \nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n

    \n

    myGridPanel.on({\n'click' : {\n    fn: this.onClick,\n    scope: this,\n    delay: 100\n},\n'mouseover' : {\n    fn: this.onMouseOver,\n    scope: this\n},\n'mouseout' : {\n    fn: this.onMouseOut,\n    scope: this\n}\n});
    \n

    \nOr a shorthand syntax:
    \n

    myGridPanel.on({\n'click' : this.onClick,\n'mouseover' : this.onMouseOver,\n'mouseout' : this.onMouseOut,\n scope: this\n});
    \n\n

Ext.SplitBar
view source
( dir )private
static Create our own proxy element element. ...

static Create our own proxy element element. So it will be the same same size on all browsers, we won't use borders. Instead we use a background color.

\n

Parameters

  • dir : Object
    \n
Ext.SplitBar
view source
( removeEl )
Destroy this splitbar. ...

Destroy this splitbar.

\n

Parameters

  • removeEl : Boolean

    True to remove the element

    \n
Enables events fired by this Observable to bubble up an owner hierarchy by calling\nthis.getBubbleTarget() if present. ...

Enables events fired by this Observable to bubble up an owner hierarchy by calling\nthis.getBubbleTarget() if present. There is no implementation in the Observable base class.

\n\n\n

This is commonly used by Ext.Components to bubble events to owner Containers. See Ext.Component.getBubbleTarget. The default\nimplementation in Ext.Component returns the Component's immediate owner. But if a known target is required, this can be overridden to\naccess the required target more quickly.

\n\n\n

Example:

\n\n\n
Ext.override(Ext.form.Field, {\n    //  Add functionality to Field's initComponent to enable the change event to bubble\n    initComponent : Ext.form.Field.prototype.initComponent.createSequence(function() {\n        this.enableBubble('change');\n    }),\n\n    //  We know that we want Field's events to bubble directly to the FormPanel.\n    getBubbleTarget : function() {\n        if (!this.formPanel) {\n            this.formPanel = this.findParentByType('form');\n        }\n        return this.formPanel;\n    }\n});\n\nvar myForm = new Ext.formPanel({\n    title: 'User Details',\n    items: [{\n        ...\n    }],\n    listeners: {\n        change: function() {\n            // Title goes red if form has been modified.\n            myForm.header.setStyle('color', 'red');\n        }\n    }\n});\n
\n\n

Parameters

  • events : String/Array

    The event name to bubble, or an Array of event names.

    \n
( eventName, args ) : Boolean
Fires the specified event with the passed parameters (minus the event name). ...

Fires the specified event with the passed parameters (minus the event name).

\n\n\n

An event may be set to bubble up an Observable parent hierarchy (See Ext.Component.getBubbleTarget)\nby calling enableBubble.

\n\n

Parameters

  • eventName : String

    The name of the event to fire.

    \n
  • args : Object...

    Variable number of parameters are passed to handlers.

    \n

Returns

  • Boolean

    returns false if any of the handlers return false otherwise it returns true.

    \n
Ext.SplitBar
view source
( ) : Object
Get the adapter this SplitBar uses ...

Get the adapter this SplitBar uses

\n

Returns

  • Object

    The adapter object

    \n
Gets the maximum size for the resizing element ...

Gets the maximum size for the resizing element

\n

Returns

Gets the minimum size for the resizing element ...

Gets the minimum size for the resizing element

\n

Returns

Checks to see if this object has any listeners for a specified event ...

Checks to see if this object has any listeners for a specified event

\n

Parameters

  • eventName : String

    The name of the event to check for

    \n

Returns

  • Boolean

    True if the event is being listened for, else false

    \n
( eventName, handler, [scope], [options] )
Appends an event handler to this object (shorthand for addListener.) ...

Appends an event handler to this object (shorthand for addListener.)

\n

Parameters

  • eventName : String

    The type of event to listen for

    \n
  • handler : Function

    The method the event invokes

    \n
  • scope : Object (optional)

    The scope (this reference) in which the handler function is executed.\nIf omitted, defaults to the object which fired the event.

    \n
  • options : Object (optional)

    An object containing handler configuration.

    \n
Ext.SplitBar
view source
( e )private
Called after the drag operation by the DDProxy ...

Called after the drag operation by the DDProxy

\n

Parameters

  • e : Object
    \n
Removes all listeners for this object ...

Removes all listeners for this object

\n
Relays selected events from the specified Observable as if the events were fired by this. ...

Relays selected events from the specified Observable as if the events were fired by this.

\n

Parameters

  • o : Object

    The Observable whose events this object is to relay.

    \n
  • events : Array

    Array of event names to relay.

    \n
( eventName, handler, [scope] )
Removes an event handler. ...

Removes an event handler.

\n

Parameters

  • eventName : String

    The type of event the handler was associated with.

    \n
  • handler : Function

    The handler to remove. This must be a reference to the function passed into the addListener call.

    \n
  • scope : Object (optional)

    The scope originally specified for the handler.

    \n
Resume firing events. ...

Resume firing events. (see suspendEvents)\nIf events were suspended using the queueSuspended parameter, then all\nevents fired during event suspension will be sent to any listeners now.

\n
Ext.SplitBar
view source
( adapter )
Set the adapter this SplitBar uses ...

Set the adapter this SplitBar uses

\n

Parameters

  • adapter : Object

    A SplitBar adapter object

    \n
Ext.SplitBar
view source
( size )
Sets the initialize size for the resizing element ...

Sets the initialize size for the resizing element

\n

Parameters

  • size : Number

    The initial size

    \n
Ext.SplitBar
view source
( maxSize )
Sets the maximum size for the resizing element ...

Sets the maximum size for the resizing element

\n

Parameters

  • maxSize : Number

    The maximum size

    \n
Ext.SplitBar
view source
( minSize )
Sets the minimum size for the resizing element ...

Sets the minimum size for the resizing element

\n

Parameters

  • minSize : Number

    The minimum size

    \n
Suspend the firing of all events. ...

Suspend the firing of all events. (see resumeEvents)

\n

Parameters

  • queueSuspended : Boolean

    Pass as true to queue up suspended events to be fired\nafter the resumeEvents call instead of discarding all suspended events;

    \n
( eventName, handler, [scope] )
Removes an event handler (shorthand for removeListener.) ...

Removes an event handler (shorthand for removeListener.)

\n

Parameters

  • eventName : String

    The type of event the handler was associated with.

    \n
  • handler : Function

    The handler to remove. This must be a reference to the function passed into the addListener call.

    \n
  • scope : Object (optional)

    The scope originally specified for the handler.

    \n
Defined By

Events

Ext.SplitBar
view source
( this )
Fires before the splitter is dragged ...

Fires before the splitter is dragged

\n

Parameters

Ext.SplitBar
view source
( this, newSize )
Fires when the splitter is moved ...

Fires when the splitter is moved

\n

Parameters

Ext.SplitBar
view source
( this, newSize )
Fires when the splitter is moved (alias for moved) ...

Fires when the splitter is moved (alias for moved)

\n

Parameters

","superclasses":["Ext.util.Observable"],"meta":{},"requires":[],"html_meta":{},"statics":{"property":[],"cfg":[],"css_var":[],"method":[],"event":[],"css_mixin":[]},"files":[{"href":"SplitBar.html#Ext-SplitBar","filename":"SplitBar.js"}],"linenr":1,"members":{"property":[{"tagname":"property","owner":"Ext.SplitBar","meta":{"private":true},"name":"adapter","id":"property-adapter"},{"tagname":"property","owner":"Ext.SplitBar","meta":{},"name":"animate","id":"property-animate"},{"tagname":"property","owner":"Ext.SplitBar","meta":{"private":true},"name":"b4StartDrag","id":"property-b4StartDrag"},{"tagname":"property","owner":"Ext.SplitBar","meta":{"private":true},"name":"dd","id":"property-dd"},{"tagname":"property","owner":"Ext.SplitBar","meta":{"private":true},"name":"dragSpecs","id":"property-dragSpecs"},{"tagname":"property","owner":"Ext.SplitBar","meta":{"private":true},"name":"el","id":"property-el"},{"tagname":"property","owner":"Ext.SplitBar","meta":{"private":true},"name":"endDrag","id":"property-endDrag"},{"tagname":"property","owner":"Ext.SplitBar","meta":{},"name":"maxSize","id":"property-maxSize"},{"tagname":"property","owner":"Ext.SplitBar","meta":{},"name":"minSize","id":"property-minSize"},{"tagname":"property","owner":"Ext.SplitBar","meta":{"private":true},"name":"orientation","id":"property-orientation"},{"tagname":"property","owner":"Ext.SplitBar","meta":{"private":true},"name":"proxy","id":"property-proxy"},{"tagname":"property","owner":"Ext.SplitBar","meta":{"private":true},"name":"resizingEl","id":"property-resizingEl"},{"tagname":"property","owner":"Ext.SplitBar","meta":{"private":true},"name":"shim","id":"property-shim"},{"tagname":"property","owner":"Ext.SplitBar","meta":{},"name":"tickSize","id":"property-tickSize"},{"tagname":"property","owner":"Ext.SplitBar","meta":{},"name":"useShim","id":"property-useShim"}],"cfg":[{"tagname":"cfg","owner":"Ext.util.Observable","meta":{},"name":"listeners","id":"cfg-listeners"}],"css_var":[],"method":[{"tagname":"method","owner":"Ext.SplitBar","meta":{},"name":"constructor","id":"method-constructor"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"addEvents","id":"method-addEvents"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"addListener","id":"method-addListener"},{"tagname":"method","owner":"Ext.SplitBar","meta":{"private":true},"name":"createProxy","id":"method-createProxy"},{"tagname":"method","owner":"Ext.SplitBar","meta":{},"name":"destroy","id":"method-destroy"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"enableBubble","id":"method-enableBubble"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"fireEvent","id":"method-fireEvent"},{"tagname":"method","owner":"Ext.SplitBar","meta":{},"name":"getAdapter","id":"method-getAdapter"},{"tagname":"method","owner":"Ext.SplitBar","meta":{},"name":"getMaximumSize","id":"method-getMaximumSize"},{"tagname":"method","owner":"Ext.SplitBar","meta":{},"name":"getMinimumSize","id":"method-getMinimumSize"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"hasListener","id":"method-hasListener"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"on","id":"method-on"},{"tagname":"method","owner":"Ext.SplitBar","meta":{"private":true},"name":"onEndProxyDrag","id":"method-onEndProxyDrag"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"purgeListeners","id":"method-purgeListeners"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"relayEvents","id":"method-relayEvents"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"removeListener","id":"method-removeListener"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"resumeEvents","id":"method-resumeEvents"},{"tagname":"method","owner":"Ext.SplitBar","meta":{},"name":"setAdapter","id":"method-setAdapter"},{"tagname":"method","owner":"Ext.SplitBar","meta":{},"name":"setCurrentSize","id":"method-setCurrentSize"},{"tagname":"method","owner":"Ext.SplitBar","meta":{},"name":"setMaximumSize","id":"method-setMaximumSize"},{"tagname":"method","owner":"Ext.SplitBar","meta":{},"name":"setMinimumSize","id":"method-setMinimumSize"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"suspendEvents","id":"method-suspendEvents"},{"tagname":"method","owner":"Ext.util.Observable","meta":{},"name":"un","id":"method-un"}],"event":[{"tagname":"event","owner":"Ext.SplitBar","meta":{},"name":"beforeresize","id":"event-beforeresize"},{"tagname":"event","owner":"Ext.SplitBar","meta":{},"name":"moved","id":"event-moved"},{"tagname":"event","owner":"Ext.SplitBar","meta":{},"name":"resize","id":"event-resize"}],"css_mixin":[]},"inheritable":null,"private":null,"component":false,"name":"Ext.SplitBar","singleton":false,"override":null,"inheritdoc":null,"id":"class-Ext.SplitBar","mixins":[],"mixedInto":[]});