| org.zkoss.zul.impl.XulElement org.zkoss.zul.Iframe
Iframe | public class Iframe extends XulElement (Code) | | Includes an inline frame.
author: tomyeh |
Method Summary | |
public String | getAlign() Returns the alignment. | public Media | getContent() Returns the content set by
Iframe.setContent . | public String | getName() Returns the frame name. | public String | getOuterAttrs() | public String | getSrc() Returns the src. | public 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 embeds, it will be placed
on top of other components. | public boolean | isChildable() Default: not childable. | protected Object | newExtraCtrl() | public void | setAlign(String align) Sets the alignment: one of top, middle, bottom, left, right and
center. | public void | setAutohide(boolean autohide) Sets whether to automatically hide this component if
a popup or dropdown is overlapped with it. | public void | setContent(Media media) Sets the content directly. | public void | setName(String name) Sets the frame name. | public void | setSrc(String src) Sets the src.
If src is changed, the whole component is invalidate.
Thus, you want to smart-update, you have to override this method.
Parameters: src - the source URL. |
getAlign | public String getAlign()(Code) | | Returns the alignment.
Default: null (use browser default).
|
getName | public String getName()(Code) | | Returns the frame name.
Default: null (use browser default).
|
getSrc | public String getSrc()(Code) | | Returns the src.
Default: null.
|
isAutohide | public boolean isAutohide()(Code) | | 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 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.
|
isChildable | public boolean isChildable()(Code) | | Default: not childable.
|
setAlign | public void setAlign(String align)(Code) | | Sets the alignment: one of top, middle, bottom, left, right and
center.
|
setAutohide | public void setAutohide(boolean autohide)(Code) | | Sets whether to automatically hide this component if
a popup or dropdown is overlapped with it.
|
setContent | public void setContent(Media media)(Code) | | Sets the content directly.
Default: null.
Parameters: media - the media for this inline frame.If not null, it has higher priority than Iframe.getSrc. |
setName | public void setName(String name)(Code) | | Sets the frame name.
|
setSrc | public void setSrc(String src)(Code) | | Sets the src.
If src is changed, the whole component is invalidate.
Thus, you want to smart-update, you have to override this method.
Parameters: src - the source URL. If null or empty, nothing is included. |
|
|