org.viewaframework.view
Class AbstractViewContainerDialog

java.lang.Object
  extended by org.viewaframework.view.AbstractViewContainer
      extended by org.viewaframework.view.AbstractViewContainerDialog
All Implemented Interfaces:
RootPaneContainer, ViewControllerAware, ApplicationAware, MessageAware, ViewModelAware, ComponentsAware, DelegatorAware, ViewContainerEventAware, ViewContainerEventControllerAware, ViewContainer, ViewContainerDialog
Direct Known Subclasses:
AboutView, DetailView, LoginView

public abstract class AbstractViewContainerDialog
extends AbstractViewContainer
implements ViewContainerDialog

This kind of view is shown as a javax.swing.JDialog window. This dialog has an access name through the constant ViewContainerDialog.VIEW_DIALOG_NAME. That way you can change dialog through properties like

viewDialog.modal = true
viewDialog.setSize = 300,250

Author:
Mario Garcia

Field Summary
static Integer DIMENSION_DEFAULT_HEIGHT
           
static Integer DIMENSION_DEFAULT_WIDTH
           
 
Fields inherited from interface org.viewaframework.view.ViewContainerDialog
VIEW_DIALOG_NAME
 
Fields inherited from interface org.viewaframework.view.ViewContainer
CONTENTPANE, FRAME, MENUBAR, ROOTPANE, TOOLBAR
 
Constructor Summary
AbstractViewContainerDialog(String id, Component component)
           
AbstractViewContainerDialog(String id, Component component, Boolean modal)
           
 
Method Summary
 List<Component> getComponentsByName(String name)
          This method retrieves components by its name.
 List<Delegator> getDelegators()
           
 JDialog getDialog()
           
 JRootPane getRootPane()
           
 void setDelegators(List<Delegator> delegators)
           
 void setDialog(JDialog dialog)
           
 void viewClose()
          Closes the view
 
Methods inherited from class org.viewaframework.view.AbstractViewContainer
addDelegator, addModelValue, addViewContainerListener, fireViewClose, fireViewFinalUIState, fireViewInit, fireViewInitBackActions, fireViewInitUIState, getActionDescriptors, getApplication, getComponentByName, getContainer, getContentPane, getGlassPane, getIconImage, getId, getJToolBar, getLayeredPane, getMessage, getMessageBundle, getModelValue, getNamedComponents, getTitle, getViewContainerListeners, getViewControllerMap, getViewModelMap, removeDelegator, removeViewContainerListener, setActionDescriptors, setApplication, setContentPane, setGlassPane, setIconImage, setId, setJToolbar, setLayeredPane, setMessageBundle, setNamedComponents, setTitle, setViewContainerListeners, setViewControllerMap, setViewModelMap, viewFinalUIState, viewInit, viewInitBackActions, viewInitUIState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.viewaframework.view.ViewContainer
getActionDescriptors, getIconImage, getId, getJToolBar, getTitle, setActionDescriptors, setIconImage, setId, setJToolbar, setTitle, viewFinalUIState, viewInit, viewInitBackActions, viewInitUIState
 
Methods inherited from interface org.viewaframework.view.event.ViewContainerEventAware
fireViewClose, fireViewFinalUIState, fireViewInit, fireViewInitBackActions, fireViewInitUIState
 
Methods inherited from interface org.viewaframework.view.event.ViewContainerEventControllerAware
addViewContainerListener, getViewContainerListeners, removeViewContainerListener, setViewContainerListeners
 
Methods inherited from interface org.viewaframework.core.ApplicationAware
getApplication, setApplication
 
Methods inherited from interface org.viewaframework.view.ComponentsAware
getComponentByName, getNamedComponents, setNamedComponents
 
Methods inherited from interface org.viewaframework.controller.ViewControllerAware
getViewControllerMap, setViewControllerMap
 
Methods inherited from interface org.viewaframework.model.ViewModelAware
addModelValue, getModelValue, getViewModelMap, setViewModelMap
 
Methods inherited from interface org.viewaframework.view.delegator.DelegatorAware
addDelegator, removeDelegator
 
Methods inherited from interface javax.swing.RootPaneContainer
getContentPane, getGlassPane, getLayeredPane, setContentPane, setGlassPane, setLayeredPane
 
Methods inherited from interface org.viewaframework.core.MessageAware
getMessage, getMessageBundle, setMessageBundle
 

Field Detail

DIMENSION_DEFAULT_HEIGHT

public static final Integer DIMENSION_DEFAULT_HEIGHT

DIMENSION_DEFAULT_WIDTH

public static final Integer DIMENSION_DEFAULT_WIDTH
Constructor Detail

AbstractViewContainerDialog

public AbstractViewContainerDialog(String id,
                                   Component component)
Parameters:
id -

AbstractViewContainerDialog

public AbstractViewContainerDialog(String id,
                                   Component component,
                                   Boolean modal)
Parameters:
id -
title -
modal -
Method Detail

getComponentsByName

public List<Component> getComponentsByName(String name)
Description copied from interface: ComponentsAware
This method retrieves components by its name. If the component doesn't exist it returns an empty List.

Specified by:
getComponentsByName in interface ComponentsAware
Overrides:
getComponentsByName in class AbstractViewContainer
Parameters:
name - The name of the component we want to retrieve
Returns:
The Component

getDelegators

public List<Delegator> getDelegators()
Specified by:
getDelegators in interface DelegatorAware
Overrides:
getDelegators in class AbstractViewContainer

getDialog

public JDialog getDialog()
Specified by:
getDialog in interface ViewContainerDialog

getRootPane

public JRootPane getRootPane()
Specified by:
getRootPane in interface RootPaneContainer
Overrides:
getRootPane in class AbstractViewContainer

setDelegators

public void setDelegators(List<Delegator> delegators)
Specified by:
setDelegators in interface DelegatorAware
Overrides:
setDelegators in class AbstractViewContainer

setDialog

public void setDialog(JDialog dialog)
Specified by:
setDialog in interface ViewContainerDialog

viewClose

public void viewClose()
               throws ViewException
Description copied from interface: ViewContainer
Closes the view

Specified by:
viewClose in interface ViewContainer
Overrides:
viewClose in class AbstractViewContainer
Throws:
ViewException


Copyright © 2010. All Rights Reserved.