Interface IIframe
- All Superinterfaces:
IAnyGroup<IIframe>,IComponent<IIframe>,IHtmlBasedComponent<IIframe>
Iframe component
Unlike HTML iframe, this component doesn't have the frameborder property. Rather, use the CSS style to customize the border (like any other components).
Support @Action
| Name | Action Type |
|---|---|
| onURIChange | ActionData: URIData
Denotes the associated URI (src) has been changed by user. Use getURI() to retrieve the URI being changed to. |
- Author:
- katherine
- See Also:
-
Iframe
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIIframe.static classBuilds an updater of typeIIframeforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the frame name.default StringReturn the scroll bars.getSrc()Returns the source URI.default StringReturns the client widget class.default booleanReturns whether to automatically hide this component if a popup or dropdown is overlapped with it.Returns the instance with the given src.Returns the instance with the given id.Returns the instance with the given width and height.withAutohide(boolean autohide) Returns a copy ofthisimmutable component with the specifiedautohide.Returns a copy ofthisimmutable component with the specifiedname.withScrolling(String scrolling) Returns a copy ofthisimmutable component with the specifiedscrolling.Returns a copy ofthisimmutable component with the specifiedsrc.Methods inherited from interface org.zkoss.stateless.sul.IComponent
getAction, getActions, getClientAttributes, getId, getMold, getWidgetListeners, getWidgetOverrides, isVisible, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withActions, withActions, withClientAttribute, withClientAttributes, withId, withMold, withVisible, withWidgetClass, withWidgetListener, withWidgetListeners, withWidgetOverride, withWidgetOverridesMethods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withSkeleton, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndex
-
Field Details
-
DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Details
-
getWidgetClass
Returns the client widget class.Default:
"zul.utl.Iframe"- Specified by:
getWidgetClassin interfaceIComponent<IIframe>
-
getSrc
Returns the source URI.Default: null.
-
withSrc
Returns a copy ofthisimmutable component with the specifiedsrc.Sets the source URI of the component.
- Parameters:
src- The source URI of the component.Default:
null.- Returns:
- A modified copy of the
thisobject
-
getName
Returns the frame name.Default:
null(use browser default). -
withName
Returns a copy ofthisimmutable component with the specifiedname.Sets the frame name.
- Parameters:
name- The frame nameDefault:
null.- Returns:
- A modified copy of the
thisobject
-
getScrolling
Return the scroll bars.Default:
"auto" -
withScrolling
Returns a copy ofthisimmutable component with the specifiedscrolling.Sets the scroll bars.
- Parameters:
scrolling- The scroll bars."true","false","yes","no"or"auto"Default:
"auto".- Returns:
- A modified copy of the
thisobject
-
isAutohide
default boolean isAutohide()Returns whether to automatically hide this component if a popup or dropdown is overlapped with it.Default:
false.If an iframe contains PDF or other non-HTML resource, it is possible that it obscures the popup that shall be shown above it. To resolve this, you have to specify
withAutohide(true)to this component, and specify the following in the page:Please refer to Stackup and Shadow for more information.
-
withAutohide
Returns a copy ofthisimmutable component with the specifiedautohide.Sets whether to automatically hide this component if a popup or dropdown is overlapped with it.
If an iframe contains PDF or other non-HTML resource, it is possible that it obscures the popup that shall be shown above it. To resolve this, you have to specify
withAutohide(true)to this component, and specify the following in the page:Please refer to Stackup and Shadow for more information.
- Parameters:
autohide- Whether to automatically hide this component.Default:
false.- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the given src.- Parameters:
src- The source URI of the component
-
ofSize
Returns the instance with the given width and height.- Parameters:
width- The width of the componentheight- The height of the component
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-