|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.zk.device.AjaxDevice
public class AjaxDevice
Represents a Web browser with the Ajax support.
| Constructor Summary | |
|---|---|
AjaxDevice()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getType()
Returns the device type. |
java.lang.String |
getUnavailableMessage()
Returns the unavailable message that is shown to the client if the client doesn't support this device. |
void |
init(java.lang.String type,
Desktop desktop,
java.lang.String unavailmsg)
Initializes the device. |
void |
sessionDidActivate(Desktop desktop)
Notification that the desktop, which owns this device, has just been activated (aka., deserialized) by the Web container. |
void |
sessionWillPassivate(Desktop desktop)
Notification that the desktop, which owns this device, is about to be passivated (aka., serialized) by the Web container. |
void |
setUnavailableMessage(java.lang.String unavailmsg)
Sets the unavailable message that is shown to the client if the client doesn't support this device. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AjaxDevice()
| Method Detail |
|---|
public java.lang.String getType()
Device
getType in interface Devicepublic java.lang.String getUnavailableMessage()
Device
getUnavailableMessage in interface Devicepublic void setUnavailableMessage(java.lang.String unavailmsg)
DeviceNote: this method must be called before the desktop is rendered (and sent to the client). Otherwise, it is meaningless.
setUnavailableMessage in interface Deviceunavailmsg - the unavailable message.
public void init(java.lang.String type,
Desktop desktop,
java.lang.String unavailmsg)
Device
init in interface Devicetype - the device typedesktop - the desktop to associate this device with (never null).unavailmsg - the message to shown when the device is not, or null
no message will be shownpublic void sessionWillPassivate(Desktop desktop)
Device
sessionWillPassivate in interface Devicepublic void sessionDidActivate(Desktop desktop)
Device
sessionDidActivate in interface Device
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||