|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--DHTMLSuite.paneSplitter
Purpose of class: Creates a pane splitter. (Demo)
Defined in dhtml-suite-for-applications.js
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0
Field Summary | |
Object |
collapseExpandButtons
|
Object |
dataModel
|
Object |
horizontalSplitterBorderSize
|
Object |
horizontalSplitterSize
|
Object |
layoutCSS
|
Object |
objectIndex
|
Object |
paneBorderLeftPlusRight
|
Object |
panes
|
Object |
panesAssociative
|
Object |
paneSizeCollapsed
|
Object |
paneSplitterHandleOnResize
|
Object |
paneSplitterHandles
|
Object |
paneZIndexCounter
|
Object |
resizeCounter
|
Object |
resizeInProgress
|
Object |
slideSpeed
|
Object |
verticalSplitterSize
|
Object |
waitMessage
|
Constructor Summary | |
DHTMLSuite.paneSplitter
()
|
Method Summary | |
Object
|
addContent(panePosition,contentModel,onCompleteJsCode)
Add content to a pane |
void
|
addModel(newModel)
Add datasource for the pane splitter |
Object
|
closeAllClosableTabs(panePosition)
Close all closable tabs, i.e. |
void
|
collapsePane(panePosition)
Use this method when you manually want to collapse a pane |
void
|
deleteContentById(id)
Delete content from a pane by index |
void
|
deleteContentByIndex(panePosition,contentIndex)
Delete content from a pane by index |
void
|
expandPane(panePosition)
Use this method when you manually want to expand a pane |
Object
|
getHtmlElIdOfCurrentlyDisplayedContent(panePosition)
Returns html element id of the content currently being displayed - active tab. |
Object
|
getIdOfCurrentlyDisplayedContent(panePosition)
Returns id of the content currently being displayed - active tab. |
Object
|
getReferenceToMainDivElOfPane(panePosition)
Get reference to main div element of a pane. |
Object
|
getSizeOfPaneInPixels(panePosition)
Returns id of the content currently being displayed - active tab. |
Object
|
getState(panePosition)
Get state of pane |
Object
|
hidePane(panePosition)
Hide a pane |
void
|
init()
Initializes the script |
Object
|
isUrlLoadedInPane(id,url)
This method returns true if content with a specific url exists inside a specific content container. |
void
|
loadContent(id,url,refreshAfterSeconds,onCompleteJsCode)
This method loads content from server and inserts it into the pane with the given id If you want the content to be displayed directly, remember to call the showContent method too. |
void
|
reloadContent(id)
Reloads ajax content |
void
|
setAjaxWaitMessage(newWaitMessage)
Specify ajax wait message - message displayed in the pane when content is being loaded from the server. |
void
|
setContentTabTitle(idOfContentObject,newTitle)
New title of tab - i.e. |
void
|
setContentTitle(idOfContentObject,newTitle)
New title of content - i.e. |
void
|
setLayoutCss(layoutCSS)
Specify name/path to a css file(default is 'pane-splitter.css') |
void
|
setRefreshAfterSeconds(idOfContentObject,refreshAfterSeconds)
Specify a new value for when content should be reloaded. |
void
|
setSizeOfPane(panePosition,newSize)
Set new size of pane |
void
|
setSlideSpeed(slideSpeed)
Set speed of slide animation. |
void
|
showContent(id)
Makes content with a specific id visible |
Object
|
showPane(panePosition)
Show a previously hidden pane |
Field Detail |
Object collapseExpandButtons
Object dataModel
Object horizontalSplitterBorderSize
Object horizontalSplitterSize
Object layoutCSS
Object objectIndex
Object paneBorderLeftPlusRight
Object panes
Object panesAssociative
Object paneSizeCollapsed
Object paneSplitterHandleOnResize
Object paneSplitterHandles
Object paneZIndexCounter
Object resizeCounter
Object resizeInProgress
Object slideSpeed
Object verticalSplitterSize
Object waitMessage
Constructor Detail |
DHTMLSuite.paneSplitter()
Method Detail |
Object addContent(panePosition,contentModel,onCompleteJsCode)
String
- panePosition - Position of pane(west,north,center,east or south)
Object
- contentModel - Object of type DHTMLSuite.paneSplitterContentModel
String
- onCompleteJsCode - Js code to execute when content is successfully loaded.
void addModel(newModel)
Object
- newModel - Data source, object of class DHTMLSuite.paneSplitterModel
Object closeAllClosableTabs(panePosition)
String
- panePosition
void collapsePane(panePosition)
String
- panePosition - Position of pane, west,east,north,south
void deleteContentById(id)
String
- id - Id of content to delete.
void deleteContentByIndex(panePosition,contentIndex)
String
- panePosition - Position of pane(west,north,center,east or south)
Integer
- contentIndex
void expandPane(panePosition)
String
- panePosition - Position of pane, west,east,north,south
Object getHtmlElIdOfCurrentlyDisplayedContent(panePosition)
String
- position - which pane. ("west","east","center","north","south")
Object getIdOfCurrentlyDisplayedContent(panePosition)
String
- position - which pane. ("west","east","center","north","south")
Object getReferenceToMainDivElOfPane(panePosition)
String
- panePosition - Position of pane(west,north,center,east or south)
Object getSizeOfPaneInPixels(panePosition)
String
- position - which pane. ("west","east","center","north","south")
Object getState(panePosition)
String
- panePosition - Position of pane(west,north,center,east or south)
Object hidePane(panePosition)
String
- panePosition - Position of pane(west,north,center,east or south)
void init()
Object isUrlLoadedInPane(id,url)
String
- id - id of content object
String
- url - Url of file (Url to check on)
void loadContent(id,url,refreshAfterSeconds,onCompleteJsCode)
String
- id - id of content object where the element should be inserted
String
- url - Url of file (the content of this file will be inserted into the define pane)
Integer
- refreshAfterSeconds - Reload url after number of seconds. 0 = no refresh ( also default)
String
- onCompleteJsCode - Js code to evaluate when content has been successfully loaded(Callback) - DHTMLSuite.paneSplitter.prototype.example = "myFunction()";. This string will be avaluated.
void reloadContent(id)
String
- id - id of content object to reload.
void setAjaxWaitMessage(newWaitMessage)
String
- newWaitMessage = Wait message - plain text or HTML.
void setContentTabTitle(idOfContentObject,newTitle)
String
- idOfContentObject - id of content object
String
- newTitle - New title of tab
void setContentTitle(idOfContentObject,newTitle)
String
- idOfContentObject - id of content object
String
- newTitle - New title of tab
void setLayoutCss(layoutCSS)
String
- layoutCSS = Name(or relative path) of new css path
void setRefreshAfterSeconds(idOfContentObject,refreshAfterSeconds)
String
- idOfContentObject - id of content to add the value to
Integer
- refreshAfterSeconds - Refresh rate of content (0 = no refresh)
void setSizeOfPane(panePosition,newSize)
String
- panePosition = Position of pane(east,west,south or north)
Integer
- newSize = New size of pane in pixels.
void setSlideSpeed(slideSpeed)
Integer
- slideSpeed = new slide speed ( higher = faster ) - default = 10
void showContent(id)
String
- id - id of content to make visible(remember to have unique id's on each of your content objects)
Object showPane(panePosition)
String
- panePosition - Position of pane(west,north,center,east or south)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |