org.zkoss.zul.impl
Class ZulMessageLoader

java.lang.Object
  extended by org.zkoss.zul.impl.ZulMessageLoader
All Implemented Interfaces:
MessageLoader

public class ZulMessageLoader
extends java.lang.Object
implements MessageLoader

ZUL implementation of MessageLoader

Since:
5.0.11
Author:
simonpai

Constructor Summary
ZulMessageLoader()
           
 
Method Summary
 void load(java.lang.StringBuffer out, Execution exec)
          Load the message to output StringBuffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZulMessageLoader

public ZulMessageLoader()
Method Detail

load

public void load(java.lang.StringBuffer out,
                 Execution exec)
          throws java.io.IOException
Description copied from interface: MessageLoader
Load the message to output StringBuffer.

ZK will scan the MessageLoader setting and invoke this method to load the system messages in the following two circumstances.

  1. Wpds.outLocaleJavaScript(javax.servlet.ServletRequest, javax.servlet.ServletResponse) (defined in zul/lang/zk.wpd)
  2. Clients.reloadMessages(java.util.Locale)
For the first circumstances, current Execution does not have access to Desktop and Page instance. Hence, programmer must notice that they cannot use many of Execution's API.

Specified by:
load in interface MessageLoader
Parameters:
out - StringBuffer to output
exec - current Execution
Throws:
java.io.IOException


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