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
IlvResizableView(left, top, width, height, namespace)

Method Summary
getMaximumSize()
Returns the maximum size allowed for the view.
getMinimumSize()
Returns the minimum size allowed for the view.
isResizable(set)
Indicates whether this view can be resized.
setChildrenBounds(left, top, width, height)
Changes the size of this view's children.
setMaximumSize(width, height)
Sets the maximum size allowed for the view.
setMinimumSize(width, height)
Sets the minimum size allowed for the view.
setResizable(set)
Specifies whether this view can be resized.
toHTML()
Creates the HTML for this component.

Constructor Detail

IlvResizableView

IlvResizableView(left, top, width, height, namespace)
Creates an instance of IlvResizableView.

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.

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.

setMaximumSize

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

setMinimumSize

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

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.

toHTML

toHTML()
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.

Inherited Methods from IlvEmptyView
addSizeListener, childrenToHTML, getBounds, getHeight, getLeft, getLocation, getSize, getTop, getWidth, isStateInCookie, removeSizeListener, restoreState, saveState, setBounds, setChildrenBounds, setLocation, setSize, setStateInCookie, toHTML
Inherited Methods from IlvObject
callDispose, dispose, getClassName, hashCode, inherits, instanceOf, invoke, registerDispose, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility