IlvSizedViewProxy

IlvObject
  |
  +--IlvPropertyStateManager
       |
       +--IlvFacesProxy
            |
            +--IlvSizedViewProxy
Category:
Framework JSF component
JavaScript File:
IlvSizedViewProxy.js
Description:
The IlvSizedView proxy is the base class for the proxies of JViews DHTML component that has a graphic representation.

Constructor Summary
IlvSizedViewProxy(clientId)

Method Summary
afterLayoutHandler(resized)
Handler called after the layout is done.
getAbsoluteBounds()
Returns the absolute bounds of the DHTML object.
getBounds()
Returns the bounds of the DHTML object relative to the container.
getCreationSize(refNodeId, serverW, serverH)
Returns the size of the component to be created.
getHeight()
Returns the height of the DHTML object
getMinimumSize()
Returns the minimum size of the container if no size is specified.
getWidth()
Returns the width of the DHTML object.
onResize(view)
Internal implementation
positionAfterLayout(width, height)
Returns the relative position of the component by the reference node.
registerResizeListener(jviewsObject)
Adds a size listener on the wrapped JViews DHTML object.
This listener handle the resize of the JSF proxy component after a resize.
Each subclass which wants to be resizable must call this method after the JViews DHTML object creation.
resizeAfterLayout(init)
Updates the size of the JViews DHTML component according to its container size.
setMinimumSize(minWidth, minHeight)
Sets the minimum size of the container if no size is specified by style or on the server.

Constructor Detail

IlvSizedViewProxy

IlvSizedViewProxy(clientId)
Creates an instance of IlvSizedViewProxy.

Method Detail

afterLayoutHandler

afterLayoutHandler(resized)
Handler called after the layout is done. This method is abstract and could be overridden if needed.
Parameters:
resized - If the component was resized during the layout.

getAbsoluteBounds

getAbsoluteBounds()
Returns the absolute bounds of the DHTML object.
Returns:
The absolute bounds of the DHTML object.

getBounds

getBounds()
Returns the bounds of the DHTML object relative to the container.
Returns:
The absolute bounds of the DHTML object relative to the container.

getCreationSize

getCreationSize(refNodeId, serverW, serverH)
Returns the size of the component to be created. If the server size is specified, it returns the server size; otherwise it returns the minimum size. If the CSS style is specified, the component size will be updated on loading the page when the layout is done.
Parameters:
refNodeId - The identifier of the HTML container.
serverW - The width defined by the server (that is, not computed by style).
serverH - The height defined by the server (that is, not computed by style).

See also:
setMinimumSize


getHeight

getHeight()
Returns the height of the DHTML object
Returns:
The height of the DHTML object.

getMinimumSize

getMinimumSize()
Returns the minimum size of the container if no size is specified. The returned object has two properties:
Returns:
The minimum size of the container if no size is specified

getWidth

getWidth()
Returns the width of the DHTML object.
Returns:
The width of the DHTML object.

onResize

static onResize(view)
Internal implementation

positionAfterLayout

positionAfterLayout(width, height)
Returns the relative position of the component by the reference node. By default it returns (0, 0). Subclass if the component has an offset relative to its container (The zoom tool, for example).

registerResizeListener

registerResizeListener(jviewsObject)
Adds a size listener on the wrapped JViews DHTML object.
This listener handle the resize of the JSF proxy component after a resize.
Each subclass which wants to be resizable must call this method after the JViews DHTML object creation.
Parameters:
jviewObject - The wrapped JViews DHTML object.

resizeAfterLayout

resizeAfterLayout(init)
Updates the size of the JViews DHTML component according to its container size. Must be called at the load of the page when the layout is done.
Sets to visible the objects that have been hidden during the layout.
Parameters:
init - Whether initialize the view after resizing.

setMinimumSize

setMinimumSize(minWidth, minHeight)
Sets the minimum size of the container if no size is specified by style or on the server.
Parameters:
minWidth - The minimum width.
minHeight - The minHeight height.

Inherited Methods from IlvFacesProxy
getAbsoluteId, getJViewsDHTMLObject, getNodeCoords, getObject, getReferenceNode, setAbsoluteId, setJViewsDHTMLObject, setObject, setReferenceNode, toHTML
Inherited Methods from IlvPropertyStateManager
getClientId, notify
Inherited Methods from IlvObject
callDispose, dispose, getClassName, hashCode, inherits, instanceOf, invoke, registerDispose, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility