org.viewaframework.widget.view
Class DetailView<T>

java.lang.Object
  extended by org.viewaframework.view.AbstractViewContainer
      extended by org.viewaframework.view.AbstractViewContainerDialog
          extended by org.viewaframework.widget.view.DetailView<T>
Type Parameters:
T -
All Implemented Interfaces:
RootPaneContainer, ViewControllerAware, ApplicationAware, MessageAware, ViewModelAware, ComponentsAware, DelegatorAware, ViewContainerEventAware, ViewContainerEventControllerAware, ViewContainer, ViewContainerDialog

public abstract class DetailView<T>
extends AbstractViewContainerDialog

This kind of view is tightly couple with the MasterView view. If you match a MasterView with a given DetailView, you can see row records from the MasterView in the detailView with little effort.

Author:
Mario Garcia

Field Summary
static String MODEL_MASTER_OBJECT
           
static String MODEL_WORKING_OBJECT
           
 
Fields inherited from class org.viewaframework.view.AbstractViewContainerDialog
DIMENSION_DEFAULT_HEIGHT, 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
DetailView(String id, Component component)
           
DetailView(String id, Component component, Boolean modal)
           
 
Method Summary
 List<ViewActionDescriptor> getActionDescriptors()
           
 List<Delegator> getDelegators()
           
abstract  Class<T> getDetailType()
           
 List<String> getNonEditableDisabledActions()
           
 boolean isEditable()
           
 void setDelegators(List<Delegator> delegators)
           
 void setEditable(Boolean editable)
           
 void setNonEditableDisabledActions(List<String> nonEditableActiveActions)
           
 
Methods inherited from class org.viewaframework.view.AbstractViewContainerDialog
getComponentsByName, getDialog, getRootPane, setDialog, viewClose
 
Methods inherited from class org.viewaframework.view.AbstractViewContainer
addDelegator, addModelValue, addViewContainerListener, fireViewClose, fireViewFinalUIState, fireViewInit, fireViewInitBackActions, fireViewInitUIState, 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
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

MODEL_WORKING_OBJECT

public static final String MODEL_WORKING_OBJECT
See Also:
Constant Field Values

MODEL_MASTER_OBJECT

public static final String MODEL_MASTER_OBJECT
See Also:
Constant Field Values
Constructor Detail

DetailView

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

DetailView

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

getActionDescriptors

public List<ViewActionDescriptor> getActionDescriptors()
Specified by:
getActionDescriptors in interface ViewContainer
Overrides:
getActionDescriptors in class AbstractViewContainer
Returns:

getDelegators

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

getDetailType

public abstract Class<T> getDetailType()

getNonEditableDisabledActions

public List<String> getNonEditableDisabledActions()
Returns:

isEditable

public boolean isEditable()
Returns:

setDelegators

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

setEditable

public void setEditable(Boolean editable)
Parameters:
editable -

setNonEditableDisabledActions

public void setNonEditableDisabledActions(List<String> nonEditableActiveActions)


Copyright © 2010. All Rights Reserved.