Skip to main content
PREV CLASS NEXT CLASS FRAMES NO FRAMES

 

Class 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
Constructor Attributes Constructor Name and Description
 
IlvSizedViewProxy(clientId)
Method Summary
Method Attributes Method Name and Description
 
Handler called after the layout is done.
 
Returns the absolute bounds of the DHTML object.
 
Returns the bounds of the DHTML object relative to the container.
 
getCreationSize(refNodeId, serverW, serverH)
Returns the size of the component to be created.
 
Returns the height of the DHTML object
 
Returns the minimum size of the container if no size is specified.
 
Returns the width of the DHTML object.
 
IlvSizedViewProxy. onResize(view)
Internal implementation
 
positionAfterLayout(width, height)
Returns the relative position of the component by the reference node.
 
registerResizeListener(jviewObject)
Adds a size listener on the wrapped JViews DHTML object.
 
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.
Methods inherited from class IlvFacesProxy
dispose, getAbsoluteId, getJViewsDHTMLObject, getNodeCoords, getObject, getReferenceNode, setAbsoluteId, setJViewsDHTMLObject, setObject, setPageIdSupport, setReferenceNode, toHTML
Methods inherited from class IlvPropertyStateManager
getClientId, notify
Methods inherited from class IlvObject
getClassName, hashCode, instanceOf, invoke, registerDispose, registerDisposeByClientId, removeHTML, setClassName, superConstructor, superInvoke, toString, updateVisibility
Constructor Detail
IlvSizedViewProxy
IlvSizedViewProxy(clientId)
Parameters:
clientId - The id used to identify the proxy.
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> IlvSizedViewProxy.onResize(view)
Internal implementation
Parameters:
view

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).
Parameters:
width
height

registerResizeListener
registerResizeListener(jviewObject)
Adds a size listener on the wrapped JViews DHTML object.
This listener handles 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.

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