Skip to main content
PREV CLASS NEXT CLASS FRAMES NO FRAMES

 

Class IlvResizableView

IlvObject
   |
   +--IlvEmptyView
      |
      +--IlvResizableView

Category:
Common component
JavaScript File:
IlvResizableView.js
Description:
An IlvResizableView is an extension of IlvEmptyView that can be resized by the user if setResizable(true) is called.

Constructor Summary
Constructor Attributes Constructor Name and Description
 
IlvResizableView(left, top, width, height, namespace)
Method Summary
Method Attributes Method Name and Description
 
Returns the maximum size allowed for the view.
 
Returns the minimum size allowed for the view.
 
Indicates whether this view can be resized.
 
setChildrenBounds(left, top, width, height)
Changes the size of this view's children.
 
setHotkeys(hotkeys)
Sets the customized hotkeys.
 
setMaximumSize(width, height)
Sets the maximum size allowed for the view.
 
setMinimumSize(width, height)
Sets the minimum size allowed for the view.
 
Specifies whether this view can be resized.
 
toHTML(parentNode)
Creates the HTML for this component.
Methods inherited from class IlvEmptyView
addSizeListener, childrenToHTML, getBounds, getHeight, getLeft, getLocation, getSize, getTop, getWidth, isStateInCookie, removeSizeListener, restoreState, saveState, setBounds, setLocation, setSize, setStateInCookie
Methods inherited from class IlvObject
dispose, getClassName, hashCode, instanceOf, invoke, registerDispose, registerDisposeByClientId, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility
Constructor Detail
IlvResizableView
IlvResizableView(left, top, width, height, namespace)
Parameters:
left - The absolute x position of the view on the page.
top - The absolute y position of the view on the page.
width - The width of the view.
height - The height of the view.
namespace - An optional parameter to place the view in a namespace. This is useful when using IlvResizableViews in multiple browser windows or in multiple frames of a frameset and the views must store cookies that should not conflict with each other. In this case, use the namespace to uniquely identify the views that belong to a specific browser window or frameset frame. For example, if you have created a new window with a unique name:

                    open(childPageURL, uniqueWindowName, ...);
                  
you can then use the window name to define the namespace for views within the child page:

                    var view = new IlvResizableView(..., window.name);
                  
Method Detail
getMaximumSize
getMaximumSize()
Returns the maximum size allowed for the view.
Returns:
An object with two properties: width and height.

getMinimumSize
getMinimumSize()
Returns the minimum size allowed for the view.
Returns:
An object with two properties: width and height.

isResizable
isResizable(set)
Indicates whether this view can be resized. When a view can be resized, its bottom-right corner can be dragged to modify its size.
Parameters:
set

setChildrenBounds
setChildrenBounds(left, top, width, height)
Changes the size of this view's children. Warning: This method is considered to be part of an IlvResizableView's internal implementation and is not a public API.
Parameters:
left - The absolute x position of the view on the page.
top - The absolute y position of the view on the page.
width - The width of the view.
height - The height of the view.

setHotkeys
setHotkeys(hotkeys)
Sets the customized hotkeys.
Parameters:
hotkeys

setMaximumSize
setMaximumSize(width, height)
Sets the maximum size allowed for the view.
Parameters:
width
height

setMinimumSize
setMinimumSize(width, height)
Sets the minimum size allowed for the view.
Parameters:
width
height

setResizable
setResizable(set)
Specifies whether this view can be resized. When a view can be resized, its bottom-right corner can be dragged to modify its size.
Parameters:
set

toHTML
toHTML(parentNode)
Creates the HTML for this component. This method must be called once in the body of the HTML page. Do not override this method, override childrenToHTML() instead.
Parameters:
parentNode

©Copyright Rogue Wave Software Inc. 1997, 2018. All Rights Reserved.