net.sf.doolin.gui.form
Class FormViewDescriptor<V>

java.lang.Object
  extended by net.sf.doolin.gui.view.descriptor.AbstractGUIViewDescriptor<V>
      extended by net.sf.doolin.gui.form.FormViewDescriptor<V>
Type Parameters:
V - Type of object for the view
All Implemented Interfaces:
GUIViewDescriptor<V>, org.springframework.beans.factory.BeanNameAware

public class FormViewDescriptor<V>
extends AbstractGUIViewDescriptor<V>

Descriptor for a view that contains a list of fields.

Author:
Damien Coraboeuf

Constructor Summary
FormViewDescriptor()
          Instantiates a new form view descriptor.
 
Method Summary
 GUIView<V> createView(GUIWindow<?> parentWindow, V model)
          Creates a view according to this descriptor
 List<FieldDescriptor<V>> getFieldList()
          Gets the field list.
 LayoutService getLayout()
          Gets the layout.
 GUIValidationDecorator getValidationDecorator()
          Gets the validation decorator.
 void initState(GUIView<V> view)
          This method is called after the view is ready to be displayed, giving a last chance to the descriptor to perform some last-minute initialization.
 boolean isScrollable()
          Checks if the view content is scrollable
 void setFieldList(List<FieldDescriptor<V>> fieldList)
          Sets the field list.
 void setLayout(LayoutService layout)
          Sets the layout.
 void setScrollable(boolean scrollable)
          Sets if the view content is scrollable
 void setValidationDecorator(GUIValidationDecorator validationDecorator)
          Sets the validation decorator.
 
Methods inherited from class net.sf.doolin.gui.view.descriptor.AbstractGUIViewDescriptor
close, getActionFactory, getCloseAction, getIconId, getID, getParentViewId, getTitleExpression, getValidator, getViewDecorator, getViewId, getViewSubscribers, getViewToolBar, getWindowMenuBar, getWindowToolBar, initView, onActivateView, registerParent, setActionFactory, setBeanName, setCloseAction, setIconId, setParentViewId, setTitleExpression, setValidator, setViewDecorator, setViewId, setViewSubscribers, setViewToolBar, setWindowMenuBar, setWindowToolBar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormViewDescriptor

public FormViewDescriptor()
Instantiates a new form view descriptor.

Method Detail

createView

public GUIView<V> createView(GUIWindow<?> parentWindow,
                             V model)
Description copied from interface: GUIViewDescriptor
Creates a view according to this descriptor

Parameters:
parentWindow - Parent window
model - Model for the view
Returns:
View

getFieldList

public List<FieldDescriptor<V>> getFieldList()
Gets the field list.

Returns:
the field list

getLayout

public LayoutService getLayout()
Gets the layout.

Returns:
the layout

getValidationDecorator

public GUIValidationDecorator getValidationDecorator()
Gets the validation decorator.

Returns:
the validation decorator

initState

public void initState(GUIView<V> view)
Description copied from interface: GUIViewDescriptor
This method is called after the view is ready to be displayed, giving a last chance to the descriptor to perform some last-minute initialization.

Parameters:
view - View to initialize

isScrollable

public boolean isScrollable()
Checks if the view content is scrollable

Returns:
true if the view content is scrollable

setFieldList

public void setFieldList(List<FieldDescriptor<V>> fieldList)
Sets the field list.

Parameters:
fieldList - the new field list

setLayout

public void setLayout(LayoutService layout)
Sets the layout.

Parameters:
layout - the new layout

setScrollable

public void setScrollable(boolean scrollable)
Sets if the view content is scrollable

Parameters:
scrollable - true if the view content is scrollable

setValidationDecorator

public void setValidationDecorator(GUIValidationDecorator validationDecorator)
Sets the validation decorator.

Parameters:
validationDecorator - the new validation decorator


Copyright © 2011. All Rights Reserved.