| com.sun.rave.web.ui.component.FrameBase com.sun.rave.web.ui.component.Frame com.sun.rave.web.ui.component.IFrameBase
All known Subclasses: com.sun.rave.web.ui.component.IFrame,
IFrameBase | abstract public class IFrameBase extends com.sun.rave.web.ui.component.Frame (Code) | | Use
the ui:iframe
tag
to create an inline frame in the rendered HTML page. The ui:iframe
tag inserts a frame in which another web page can be displayed inside
the web application page.
HTML
Elements and Layout
The
iframe component is
rendered as an <iframe> XHTML
element. The ui:iframe
tag can be configured by using the tag's attributes, which map to the <iframe>
properties and are similarly named.
Theme
Identifiers
None.
Client
Side Javascript Functions
None.
Example
Example
1: Using the ui:iframe
tag
appropriately in a JSP page:
<?xml
version="1.0"
encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:ui="http://www.sun.com/web/ui">
<jsp:directive.page
contentType="text/html;charset=ISO-8859-1"
pageEncoding="UTF-8"/><f:view>
<ui:page frame="true">
<ui:html>
<ui:head title="blah" />
<ui:body>
<ui:staticText id="text1" text="Below is a
frame within this page without a frameset" />
<ui:markup tag="br" singleton="true"
/>
<ui:iframe url="http://google.com" />
</ui:body>
</ui:html>
</ui:page>
</f:view>
</jsp:root>
Auto-generated component class.
Do NOT modify; all changes
will be lost!
|
IFrameBase | public IFrameBase()(Code) | | Construct a new IFrameBase .
|
getAlign | public String getAlign()(Code) | | Specifies how to align the iframe according to the surrounding text. One
of the following: left, right, top, middle, bottom
|
getFamily | public String getFamily()(Code) | | Return the identifier of the component family to which this
component belongs. This identifier, in conjunction with the value
of the rendererType property, may be used to select
the appropriate
Renderer for this component instance.
|
getHeight | public String getHeight()(Code) | | Defines the height of the iframe in pixels or as a percentage of it's
container
|
getWidth | public String getWidth()(Code) | | Defines the width of the iframe in pixels or as a percentage of it's
container
|
isNoResize | public boolean isNoResize()(Code) | | Set the value of the noResize attribute to "true" when user
is not allowed to resize the frame.
|
restoreState | public void restoreState(FacesContext _context, Object _state)(Code) | | Restore the state of this component.
|
saveState | public Object saveState(FacesContext _context)(Code) | | Save the state of this component.
|
setAlign | public void setAlign(String align)(Code) | | Specifies how to align the iframe according to the surrounding text. One
of the following: left, right, top, middle, bottom
See Also: IFrameBase.getAlign() |
setNoResize | public void setNoResize(boolean noResize)(Code) | | Set the value of the noResize attribute to "true" when user
is not allowed to resize the frame.
See Also: IFrameBase.isNoResize() |
|
|