net.sf.doolin.gui.window.opener
Class AbstractViewOpener<V>

java.lang.Object
  extended by net.sf.doolin.gui.window.opener.AbstractViewOpener<V>
All Implemented Interfaces:
ViewOpener<V>
Direct Known Subclasses:
InnerViewOpener, WindowOpener

public abstract class AbstractViewOpener<V>
extends Object
implements ViewOpener<V>


Constructor Summary
AbstractViewOpener()
           
 
Method Summary
protected  void delegate(ActionContext actionContext, V model)
           
 ActionDelegate<V> getActionDelegate()
           
 ActionContext openView(ActionContext actionContext, V model)
          Opens the view or the window
protected abstract  ActionContext openViewInternal(ActionContext actionContext, V model)
           
 void setActionDelegate(ActionDelegate<V> actionDelegate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractViewOpener

public AbstractViewOpener()
Method Detail

delegate

protected void delegate(ActionContext actionContext,
                        V model)

getActionDelegate

public ActionDelegate<V> getActionDelegate()

openView

public ActionContext openView(ActionContext actionContext,
                              V model)
Description copied from interface: ViewOpener
Opens the view or the window

Specified by:
openView in interface ViewOpener<V>
Parameters:
actionContext - Action context
model - Model for the new window or view
Returns:
The action context of the opened view or window

openViewInternal

protected abstract ActionContext openViewInternal(ActionContext actionContext,
                                                  V model)

setActionDelegate

public void setActionDelegate(ActionDelegate<V> actionDelegate)


Copyright © 2011. All Rights Reserved.