com.tirsen.angkor
Class EmptyView

java.lang.Object
  |
  +--com.tirsen.angkor.EmptyView
All Implemented Interfaces:
View

public class EmptyView
extends java.lang.Object
implements View

An empty view, you can't see it, you can't touch it, you can't smell it, it doesn't exist.

Version:
$Revision: 1.4 $
Author:
Jon Tirs´n (tirsen@users.sourceforge.net)

Field Summary
static View EMPTY_VIEW
           
 
Constructor Summary
EmptyView()
           
 
Method Summary
 View getContainer()
           
 boolean isParsing()
           
 boolean isVisible()
          Check whether this view is visible or not.
 void parse(RenderContext context)
          When a view has registered during rendering for parsing in the RenderContext the context will call this method on the next request.
 void render(RenderContext context)
          Render this view on the given context if the view is visible.
 void setContainer(View container)
           
 void setVisible(boolean visible)
          Specify whether this view is visible or not.
 java.lang.String uniqueId(RenderContext context)
          The unique id is unique over an application instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_VIEW

public static final View EMPTY_VIEW
Constructor Detail

EmptyView

public EmptyView()
Method Detail

isVisible

public boolean isVisible()
Description copied from interface: View
Check whether this view is visible or not.

Specified by:
isVisible in interface View

setVisible

public void setVisible(boolean visible)
Description copied from interface: View
Specify whether this view is visible or not.

Specified by:
setVisible in interface View

isParsing

public boolean isParsing()

uniqueId

public java.lang.String uniqueId(RenderContext context)
Description copied from interface: View
The unique id is unique over an application instance. Ie. unique over user/session and application instance.

Specified by:
uniqueId in interface View

getContainer

public View getContainer()
Specified by:
getContainer in interface View

setContainer

public void setContainer(View container)
Specified by:
setContainer in interface View

render

public void render(RenderContext context)
            throws java.io.IOException
Description copied from interface: View
Render this view on the given context if the view is visible. Performed during render-phase.

Specified by:
render in interface View
java.io.IOException
See Also:
View.setVisible(boolean), View.isVisible()

parse

public void parse(RenderContext context)
Description copied from interface: View
When a view has registered during rendering for parsing in the RenderContext the context will call this method on the next request. The view is responsible for parsing the request based on it's unique id and update models and sending events based on the request. In most cases the EventQueue should be used to send the events. This ensures that the models are all correctly updated before the events are actually processed. This is important since controllers (whom processes the events) must rely on this to process events correctly.

Specified by:
parse in interface View


Copyright © 2002-2002 . All Rights Reserved.