|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Iframe
Includes an inline frame.
Unlike HTML iframe, this component doesn't have the frameborder property. Rather, use the CSS style to customize the border (like any other components).
Include
Field Summary |
---|
Fields inherited from interface org.zkoss.zk.ui.Component |
---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
Method Summary | |
---|---|
java.lang.String |
getAlign()
Returns the alignment. |
Media |
getContent()
Returns the content set by setContent(org.zkoss.util.media.Media) . |
java.lang.String |
getName()
Returns the frame name. |
java.lang.String |
getScrolling()
Return the scroll bars. |
java.lang.String |
getSrc()
Returns the src. |
boolean |
isAutohide()
Returns whether to automatically hide this component if a popup or dropdown is overlapped with it. |
void |
setAlign(java.lang.String align)
Sets the alignment: one of top, middle, bottom, left, right and center. |
void |
setAutohide(boolean autohide)
Sets whether to automatically hide this component if a popup or dropdown is overlapped with it. |
void |
setContent(Media media)
Sets the content directly. |
void |
setName(java.lang.String name)
Sets the frame name. |
void |
setScrolling(java.lang.String scrolling)
Define scroll bars |
void |
setSrc(java.lang.String src)
Sets the src. |
Methods inherited from interface org.zkoss.zk.ui.api.HtmlBasedComponent |
---|
focus, getHeight, getLeft, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZclass, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex |
Methods inherited from interface org.zkoss.zk.ui.ext.Scope |
---|
addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute |
Method Detail |
---|
void setScrolling(java.lang.String scrolling)
scrolling
- "true", "false", "yes" or "no" or "auto", "auto" by default If
null, "auto" is assumed.java.lang.String getScrolling()
Defalut: "auto"
java.lang.String getAlign()
Default: null (use browser default).
void setAlign(java.lang.String align)
java.lang.String getName()
Default: null (use browser default).
void setName(java.lang.String name)
boolean isAutohide()
Default: false.
If an iframe contains PDF or other embeds, it will be placed on top of other components. It may then make popups and dropdowns obscure. In this case, you have to specify autohide="true" to ask ZK to hide the iframe when popups or dropdowns is overlapped with the iframe.
void setAutohide(boolean autohide)
java.lang.String getSrc()
Default: null.
void setSrc(java.lang.String src)
Calling this method implies setContent(null). In other words, the last
invocation of setSrc(java.lang.String)
overrides the previous setContent(org.zkoss.util.media.Media)
,
if any.
src
- the source URL. If null or empty, nothing is included.setContent(org.zkoss.util.media.Media)
void setContent(Media media)
Calling this method implies setSrc(null). In other words, the last
invocation of setContent(org.zkoss.util.media.Media)
overrides the previous setSrc(java.lang.String)
,
if any.
media
- the media for this inline frame.setSrc(java.lang.String)
Media getContent()
setContent(org.zkoss.util.media.Media)
.
Note: it won't fetch what is set thru by setSrc(java.lang.String)
. It simply
returns what is passed to setContent(org.zkoss.util.media.Media)
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |