net.sf.doolin.gui.app.support
Class ApplicationActionContext

java.lang.Object
  extended by net.sf.doolin.bus.bean.Bean
      extended by net.sf.doolin.gui.action.support.AbstractActionContext
          extended by net.sf.doolin.gui.app.support.ApplicationActionContext
All Implemented Interfaces:
Serializable, IBean, ActionContext

public class ApplicationActionContext
extends AbstractActionContext

Action context for an application

Author:
Damien Coraboeuf
See Also:
Serialized Form

Constructor Summary
ApplicationActionContext(GUIApplication application)
          Constructor
 
Method Summary
 GUIApplication getApplication()
          Gets the running application
 JComponent getComponent()
          No component
 Object getData()
          No data
 SubscriberValidator getSubscriberValidator()
          Gets the validator to use for any subscription managed by this context.
<T> GUIView<T>
getView()
          No view
<T> GUIWindow<T>
getWindow()
          No window
 
Methods inherited from class net.sf.doolin.gui.action.support.AbstractActionContext
createValidationSupport, getContext, getValidationSupport, setContext
 
Methods inherited from class net.sf.doolin.bus.bean.Bean
getBeanNotificationSupport, getParentBean, notify, setParentBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationActionContext

public ApplicationActionContext(GUIApplication application)
Constructor

Parameters:
application - Application
Method Detail

getApplication

public GUIApplication getApplication()
Description copied from interface: ActionContext
Gets the running application

Returns:
Application (never null)

getComponent

public JComponent getComponent()
No component

Returns:
Component

getView

public <T> GUIView<T> getView()
No view

Type Parameters:
T - Type of model for the view
Returns:
View or null if no view is associated to this context

getWindow

public <T> GUIWindow<T> getWindow()
No window

Type Parameters:
T - Type of model for the window
Returns:
Window or null is no window can be associated with this context.

getData

public Object getData()
No data

Returns:
Model

getSubscriberValidator

public SubscriberValidator getSubscriberValidator()
Description copied from interface: ActionContext
Gets the validator to use for any subscription managed by this context. The returned validator will return false as soon as this ActionContext is no longer valid.

Returns:
Validator


Copyright © 2011. All Rights Reserved.