C# Class Open.Core.UI.PanelResizerBase

Base class for resizing panels.
Mostrar archivo Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Protected Properties

Property Type Description
IsInitialized bool

Public Methods

Method Description
Initialize ( ) : void

Sets the panel up to be resizable.

Save ( ) : void

Persists the current size to storage.

Protected Methods

Method Description
FireResized ( ) : void
GetCurrentSize ( ) : int

Gets the current size (on the appropriate X:Y plane given the deriving class).

GetHandles ( ) : string
GetRootContainer ( ) : jQueryObject
OnInitialize ( ) : void
OnResize ( ) : void
OnStarted ( ) : void
OnStopped ( ) : void
OnWindowResize ( ) : void
PanelResizerBase ( string cssSelector, string cookieKey ) : System

Constructor.

SetCurrentSize ( int size ) : void

Sets the current size (on the appropriate X:Y plane given the deriving class).

SetResizeOption ( string option, string value ) : void
ShrinkIfOverflowing ( int currentValue, int minValue, int maxValue, string cssAttribute ) : void

Private Methods

Method Description
FireResizeStarted ( ) : void
FireResizeStopped ( ) : void
HandleEvent ( string eventName ) : void
LoadSize ( ) : void

Method Details

FireResized() protected method

protected FireResized ( ) : void
return void

GetCurrentSize() protected abstract method

Gets the current size (on the appropriate X:Y plane given the deriving class).
protected abstract GetCurrentSize ( ) : int
return int

GetHandles() protected abstract method

protected abstract GetHandles ( ) : string
return string

GetRootContainer() protected method

protected GetRootContainer ( ) : jQueryObject
return jQueryObject

Initialize() public method

Sets the panel up to be resizable.
public Initialize ( ) : void
return void

OnInitialize() protected method

protected OnInitialize ( ) : void
return void

OnResize() protected method

protected OnResize ( ) : void
return void

OnStarted() protected method

protected OnStarted ( ) : void
return void

OnStopped() protected method

protected OnStopped ( ) : void
return void

OnWindowResize() protected method

protected OnWindowResize ( ) : void
return void

PanelResizerBase() protected method

Constructor.
protected PanelResizerBase ( string cssSelector, string cookieKey ) : System
cssSelector string The CSS selector used to retrieve the panel being resized.
cookieKey string The unique key to store the panel size within (null if saving not required).
return System

Save() public method

Persists the current size to storage.
public Save ( ) : void
return void

SetCurrentSize() protected abstract method

Sets the current size (on the appropriate X:Y plane given the deriving class).
protected abstract SetCurrentSize ( int size ) : void
size int The size value to set.
return void

SetResizeOption() protected method

protected SetResizeOption ( string option, string value ) : void
option string
value string
return void

ShrinkIfOverflowing() protected method

protected ShrinkIfOverflowing ( int currentValue, int minValue, int maxValue, string cssAttribute ) : void
currentValue int
minValue int
maxValue int
cssAttribute string
return void

Property Details

IsInitialized protected_oe property

protected bool IsInitialized
return bool