zul.med
Class Applet

java.lang.Object
  extended by zk.Object
      extended by zk.Widget
          extended by zul.Widget
              extended by zul.med.Applet

public class Applet
extends Widget

A generic applet component.

Non XUL extension.

Note: Widget.setVisible(boolean) with false cannot work in IE. (Browser's limitation)


Field Summary
 
Fields inherited from class zk.Widget
$weave, auDelay, autag, bindLevel, className, desktop, effects_, firstChild, id, insertingBefore_, inServer, lastChild, nChildren, nextSibling, parent, previousSibling, uuid, widgetName
 
Fields inherited from class zk.Object
$class, $oid
 
Method Summary
 String getAlign()
          Returns the alignment of an applet according to surrounding elements.
 String getArchive()
          Returns the location of an archive file (URL).
 String getCode()
          Return the applet class to run.
 String getCodebase()
          Return a relative base URL for applets specified in setCode(_global_.String) (URL).
 String getField(String name)
          Returns the value of the specified filed.
 String getHspace()
          Returns the horizontal spacing around an applet.
 String getVspace()
          Returns the vertical spacing around an applet.
 void invoke()
          Invokes the function of the applet running at the client.
 boolean isMayscript()
          Returns whether the applet is allowed to access the scripting object.
 void setAlign(String align)
          Sets the alignment of an applet according to surrounding elements.
 void setArchive(String archive)
          Sets the location of an archive file (URL).
 void setCode(String code)
          Sets the applet class to run.
 void setCodebase(String codebase)
          Sets a relative base URL for applets specified in setCode(_global_.String) (URL).
 void setField(String name, String value)
          Sets the value of the specified filed.
 void setHspace(String hspace)
          Sets the horizontal spacing around an applet.
 void setMayscript(boolean myscript)
          Sets whether the applet is allowed to access the scripting object.
 void setParam(String nm, String val)
          Sets the param.
 void setParams(Map m)
          Sets the params map.
 void setVspace(String vspace)
          Sets the vertical spacing around an applet.
 
Methods inherited from class zul.Widget
afterKeyDown_, beforeCtrlKeys_, getContext, getCtrlKeys, getOpenTooltip, getPopup, getTooltip, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
 
Methods inherited from class zk.Widget
$, $f, $f, $f, $init, $n, $n, $o, afterAnima_, afterParentChanged_, appendChild, appendChild, beforeParentChanged_, beforeSendAU_, bind_, bind, bindChildren_, bindDoubleTap_, bindSwipe_, bindTapHold_, canActivate, cleanDrag_, clear, clearCache, cloneDrag_, deferRedrawHTML_, detach, doBlur_, doClick_, doDoubleClick_, doFocus_, doKeyDown_, doKeyPress_, doKeyUp_, domAttrs_, domClass_, domListen_, doMouseDown_, doMouseMove_, doMouseOut_, doMouseOver_, doMouseUp_, domStyle_, domTextStyleAttr_, domTooltiptext_, domUnlisten_, doRightClick_, doSelect_, doSwipe_, doTooltipOut_, doTooltipOver_, dropEffect_, extraBind_, fire, fireX, focus_, focus, forcerender, fromPageCoord, get, getAction, getCaveNode, getChildAt, getChildIndex, getClass, getDraggable, getDragMessage_, getDragNode, getDragOptions_, getDrop_, getDroppable, getElementsById, getElementsByName, getFirstNode_, getFloatZIndex_, getHeight, getHflex, getId, getLeft, getMold, getOldWidget_, getPage, getRenderdefer, getSclass, getScrollLeft, getScrollTop, getStyle, getTextNode, getTooltiptext, getTop, getTopWidget, getVflex, getWidth, getZclass, getZIndex, hide, ignoreDescendantFloatUp_, ignoreDrag_, initDrag_, insertBefore, insertChildHTML_, isAutoId, isBinding, isFloating_, isListen, isRealVisible, isRealVisible, isVisible, isVisible, isWatchable_, listen, listenOnFitSize_, mimicMouseDown_, newInstance, nextUuid, onChildAdded_, onChildRemoved_, onChildRenderDefer_, onChildReplaced_, onChildVisible_, onDrop_, redraw, redrawHTML_, register, removeChild, removeChild, removeChildHTML_, removeHTML_, replaceCavedChildren_, replaceChildHTML_, replaceHTML, replaceWidget, rerender, rerender, scrollIntoView, sendAU_, set, set, setAction, setChildren, setDomVisible_, setDraggable, setDroppable, setFloating_, setFloatZIndex_, setHeight, setHflex, setId, setLeft, setListener, setListener, setListeners, setMold, setRenderdefer, setSclass, setScrollLeft, setScrollTop, setStyle, setTooltiptext, setTop, setTopmost, setVflex, setVisible, setWidth, setZclass, setZIndex, shallChildROD_, shallIgnoreClick_, show, smartUpdate, unbind_, unbind, unbindChildren_, unbindDoubleTap_, unbindSwipe_, unbindTapHold_, uncloneDrag_, unlisten, unlistenOnFitSize_, updateDomClass_, updateDomStyle_, uuid, zsync
 
Methods inherited from class zk.Object
$init, $instanceof, $super, $super, $supers, $supers, afterInit, isAssignableFrom, isInstance, proxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setCode

public void setCode(String code)
Sets the applet class to run.

Parameters:
code -

getCode

public String getCode()
Return the applet class to run.

Returns:
String

setCodebase

public void setCodebase(String codebase)
Sets a relative base URL for applets specified in setCode(_global_.String) (URL).

Parameters:
codebase -

getCodebase

public String getCodebase()
Return a relative base URL for applets specified in setCode(_global_.String) (URL).

Returns:
String

setArchive

public void setArchive(String archive)
Sets the location of an archive file (URL).

Parameters:
archive -
Since:
5.0.3

getArchive

public String getArchive()
Returns the location of an archive file (URL).

Returns:
String
Since:
5.0.3

setMayscript

public void setMayscript(boolean myscript)
Sets whether the applet is allowed to access the scripting object.

Parameters:
myscript -
Since:
5.0.3

isMayscript

public boolean isMayscript()
Returns whether the applet is allowed to access the scripting object.

Returns:
boolean
Since:
5.0.3

setAlign

public void setAlign(String align)
Sets the alignment of an applet according to surrounding elements.

Parameters:
align -
Since:
5.0.3

getAlign

public String getAlign()
Returns the alignment of an applet according to surrounding elements.

Returns:
String
Since:
5.0.3

setHspace

public void setHspace(String hspace)
Sets the horizontal spacing around an applet.

Parameters:
hspace -
Since:
5.0.3

getHspace

public String getHspace()
Returns the horizontal spacing around an applet.

Returns:
String
Since:
5.0.3

setVspace

public void setVspace(String vspace)
Sets the vertical spacing around an applet.

Parameters:
vspace -
Since:
5.0.3

getVspace

public String getVspace()
Returns the vertical spacing around an applet.

Returns:
String
Since:
5.0.3

getField

public String getField(String name)
Returns the value of the specified filed.

Parameters:
name -
Returns:
String

setField

public void setField(String name,
                     String value)
Sets the value of the specified filed.

Parameters:
name -
value -

setParam

public void setParam(String nm,
                     String val)
Sets the param. Notice that it is meaningful only if it is called before redraw. For example, setParam('attr1', 'value1') gives a param tag under applet tag with name attr1, value value1. There are two format: setParam(nm, val) and setParam([nm, val])

Parameters:
nm -
val -

setParams

public void setParams(Map m)
Sets the params map. It should only be called before redraw.

Parameters:
m - A map of param pairs, as applet parameters. For example, {attr1:'value1', attr2:'value2'} gives two param tags under applet tag with names attr1, attr2, values value1, value2 respectively.
Since:
5.0.4

invoke

public void invoke()
Invokes the function of the applet running at the client.



Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo