| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.AbstractPane
nextapp.echo.ContentPane
net.sf.jzeno.echo.AbstractLayout
net.sf.jzeno.echo.script.test.MockLayout
public class MockLayout
| Field Summary | 
|---|
| Fields inherited from class net.sf.jzeno.echo.AbstractLayout | 
|---|
serialVersionUID | 
| Fields inherited from class nextapp.echo.AbstractPane | 
|---|
PROPORTIONAL, RESIZABLE_CHANGED_PROPERTY, STYLE_RESIZABLE | 
| Constructor Summary | |
|---|---|
MockLayout()
 | 
|
| Method Summary | |
|---|---|
 void | 
addOnLoadScriptOnce(java.lang.String javaScriptExecutedOnceOnWindowLoad)
Often it is handy to send some javascript to the client browser for execution on the onLoad event of the page.  | 
 Component | 
getContent()
Retrieves the current content component last set by setContent().  | 
 java.util.List | 
getScripts()
 | 
 void | 
setContent(Component content)
When navigating from one screen to another, the application calls EchoSupport.setScreen() ( EchoSupport#setScreen(Component)) and
 this triggers among other things this method on your Layout component. | 
 void | 
setErrors(java.util.List errorsAfterTranslation)
Sets the current list of errors.  | 
 void | 
setMessages(java.util.List messagesAfterTranslation)
Sets the current list of messages.  | 
 void | 
setWarnings(java.util.List warningsAfterTranslation)
Sets the current list of warnings.  | 
| Methods inherited from class net.sf.jzeno.echo.AbstractLayout | 
|---|
addValidator, clearScrollPosition, getBean, getBeanClass, getDecorator, getNullObject, getProperty, getValidationErrors, getValidators, getValue, isBound, isMarkedInvalid, isReadOnly, isRequired, isValid, loadPersistentState, markInvalid, markValid, preRender, rebind, removeValidator, resetScheduledDowntime, savePersistentState, setBean, setBeanClass, setDecorator, setNullObject, setProperty, setReadOnly, setRequired, setScheduledDowntime, setValue, traceValue | 
| Methods inherited from class nextapp.echo.AbstractPane | 
|---|
getHeight, getWidth, isResizable, setResizable | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface net.sf.jzeno.echo.Layout | 
|---|
addCssFile, getCssFiles | 
| Constructor Detail | 
|---|
public MockLayout()
| Method Detail | 
|---|
public void addOnLoadScriptOnce(java.lang.String javaScriptExecutedOnceOnWindowLoad)
LayoutOften it is handy to send some javascript to the client browser for execution on the onLoad event of the page. Examples of this include opening a popup that visualizes a URL outside of the application.
It is important to realize that the script(s) set via the method must only execute in the next rendering of the screen, and not in subsequent renderings.
 A convenient way of satisfying this operation is adding an instance of
 OnLoadScriptOnceComponent.
 
public java.util.List getScripts()
public Component getContent()
LayoutRetrieves the current content component last set by setContent(). Basically retrieves the Screen that was assigned as current screen to your Layout component.
public void setContent(Component content)
Layout
 When navigating from one screen to another, the application calls
 EchoSupport.setScreen() (EchoSupport#setScreen(Component)) and
 this triggers among other things this method on your Layout component.
 The typical implementation would be to replace a sub component of your
 Layout with the new content component .
 
It is important to realize that this new content component is actually the screen that the user code is currently setting with setScreen, so it will typically be an instance of a subclass of the AbstractScreen class.
public void setErrors(java.util.List errorsAfterTranslation)
LayoutSets the current list of errors. It is your duty to visualize all of the strings in this List to the users. Any i18n translation, parametrization and removing of duplicate messages will have been done for you.
public void setMessages(java.util.List messagesAfterTranslation)
LayoutSets the current list of messages. It is your duty to visualize all of the strings in this List to the users. Any i18n translation, parametrization and removing of duplicate messages will have been done for you.
public void setWarnings(java.util.List warningsAfterTranslation)
LayoutSets the current list of warnings. It is your duty to visualize all of the strings in this List to the users. Any i18n translation, parametrization and removing of duplicate messages will have been done for you.
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||