|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.impl.XulElement
org.zkoss.zul.Iframe
public class Iframe
Includes an inline frame.
| Nested Class Summary | |
|---|---|
protected class |
Iframe.ExtraCtrl
A utility class to implement AbstractComponent.getExtraCtrl(). |
| Field Summary |
|---|
| Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
RS_NO_DISPLAY, RS_NO_HEIGHT, RS_NO_WIDTH |
| Fields inherited from interface org.zkoss.zk.ui.Component |
|---|
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE |
| Constructor Summary | |
|---|---|
Iframe()
|
|
Iframe(java.lang.String src)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getAlign()
Returns the alignment. |
org.zkoss.util.media.Media |
getContent()
Returns the content set by setContent(org.zkoss.util.media.Media). |
java.lang.String |
getName()
Returns the frame name. |
java.lang.String |
getOuterAttrs()
|
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. |
boolean |
isChildable()
Default: not childable. |
protected java.lang.Object |
newExtraCtrl()
|
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(org.zkoss.util.media.Media media)
Sets the content directly. |
void |
setName(java.lang.String name)
Sets the frame name. |
void |
setSrc(java.lang.String src)
Sets the src. |
| Methods inherited from class org.zkoss.zul.impl.XulElement |
|---|
getAction, getAllOnClickAttrs, getContext, getInnerAttrs, getPopup, getTooltip, setAction, setContext, setPopup, setTooltip |
| Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent |
|---|
addEventListener, appendAsapAttr, focus, getDraggable, getDroppable, getHeight, getLeft, getRealStyle, getRealStyleFlags, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZIndex, isAsapRequired, removeEventListener, setClass, setDraggable, setDroppable, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZIndex |
| Methods inherited from class org.zkoss.zk.ui.AbstractComponent |
|---|
addAnnotation, addAnnotation, addEventHandler, addSharedAnnotationMap, addSharedEventHandlerMap, appendChild, applyProperties, clone, containsVariable, detach, equals, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttributes, getAttributes, getChildren, getDefinition, getDesktop, getEventHandler, getExtraCtrl, getFellow, getFellowIfAny, getId, getListenerIterator, getMold, getMoldURI, getNamespace, getPage, getParent, getPropagatee, getRoot, getSpaceOwner, getUuid, getVariable, insertBefore, invalidate, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onDrawNewChild, onWrongValue, redraw, removeAttribute, removeAttribute, removeChild, response, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setComponentDefinition, setId, setMold, setPage, setParent, setVariable, setVisible, smartUpdate, smartUpdate, smartUpdate, toString, unsetVariable |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Iframe()
public Iframe(java.lang.String src)
| Method Detail |
|---|
public java.lang.String getAlign()
Default: null (use browser default).
public void setAlign(java.lang.String align)
public java.lang.String getName()
Default: null (use browser default).
public void setName(java.lang.String name)
public 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.
public void setAutohide(boolean autohide)
public java.lang.String getSrc()
Default: null.
public void setSrc(java.lang.String src)
If src is changed, the whole component is invalidate. Thus, you want to smart-update, you have to override this method.
src - the source URL. If null or empty, nothing is included.public void setContent(org.zkoss.util.media.Media media)
media - the media for this inline frame.
If not null, it has higher priority than getSrc().public org.zkoss.util.media.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).
public java.lang.String getOuterAttrs()
getOuterAttrs in class XulElementpublic boolean isChildable()
isChildable in interface org.zkoss.zk.ui.ComponentisChildable in class org.zkoss.zk.ui.AbstractComponentprotected java.lang.Object newExtraCtrl()
newExtraCtrl in class org.zkoss.zk.ui.HtmlBasedComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||