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

java.lang.Object
  extended by net.sf.doolin.bus.bean.Bean
      extended by net.sf.doolin.gui.field.AbstractFieldDescriptor<V>
          extended by net.sf.doolin.gui.form.FormSection<V>
Type Parameters:
V - Type of the data for the view
All Implemented Interfaces:
Serializable, IBean, FieldDescriptor<V>

public class FormSection<V>
extends AbstractFieldDescriptor<V>

Field that contains other fields.

Author:
Damien Coraboeuf
See Also:
Serialized Form

Constructor Summary
FormSection()
           
 
Method Summary
 Field<V> createField(GUIView<V> view)
          Creates a field.
 String getCollapsedPropertyPath()
          Gets the path to the property that defines the collapsed state
 List<FieldDescriptor<V>> getFieldList()
          Gets the field list.
 LayoutService getLayout()
          Gets the layout.
 String getTitleExpression()
          Gets the title expression.
 boolean isBorder()
          Checks if is border.
 boolean isCollapsable()
          Checks if the section can be collapsed or not
 boolean isCollapsed()
          Checks if the section is collapsed
 void onInit(Field<V> field)
          Does nothing.
 void setBorder(boolean border)
          Sets true if a border must surround the section.
 void setCollapsable(boolean collapsable)
          Sets if the section can be collapsed or not
 void setCollapsed(boolean collapsed)
          Sets if the section is collapsed
 void setCollapsedPropertyPath(String collapsedPropertyPath)
          Sets the path to the property that defines the collapsed state
 void setFieldList(List<FieldDescriptor<V>> fieldList)
          Sets the field list.
 void setLayout(LayoutService layout)
          Sets the layout.
 void setTitleExpression(String titleExpression)
          Sets the title expression for the border title.
 
Methods inherited from class net.sf.doolin.gui.field.AbstractFieldDescriptor
getActionFactory, getConstraint, getDisplayStateHandler, getIconService, getName, getStyle, getTransferHandler, onShow, setActionFactory, setConstraint, setDisplayState, setDisplayStateHandler, setIconService, setName, setStyle, setTransferHandler
 
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

FormSection

public FormSection()
Method Detail

createField

public Field<V> createField(GUIView<V> view)
Description copied from interface: FieldDescriptor
Creates a field.

Parameters:
view - Owning view
Returns:
Created field

getCollapsedPropertyPath

public String getCollapsedPropertyPath()
Gets the path to the property that defines the collapsed state

Returns:
Property path or null if not defined

getFieldList

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

Returns:
the field list

getLayout

public LayoutService getLayout()
Gets the layout.

Returns:
the layout

getTitleExpression

public String getTitleExpression()
Gets the title expression.

Returns:
the title expression

isBorder

public boolean isBorder()
Checks if is border.

Returns:
true, if is border

isCollapsable

public boolean isCollapsable()
Checks if the section can be collapsed or not

Returns:
true if the section can be collapsed

isCollapsed

public boolean isCollapsed()
Checks if the section is collapsed

Returns:
true if the section is collapsed

onInit

public void onInit(Field<V> field)
Description copied from class: AbstractFieldDescriptor
Does nothing.

Specified by:
onInit in interface FieldDescriptor<V>
Overrides:
onInit in class AbstractFieldDescriptor<V>
Parameters:
field - Field that is created

setBorder

public void setBorder(boolean border)
Sets true if a border must surround the section.

Parameters:
border - the new border

setCollapsable

public void setCollapsable(boolean collapsable)
Sets if the section can be collapsed or not

Parameters:
collapsable - true if the section can be collapsed

setCollapsed

public void setCollapsed(boolean collapsed)
Sets if the section is collapsed

Parameters:
collapsed - true if the section is collapsed

setCollapsedPropertyPath

public void setCollapsedPropertyPath(String collapsedPropertyPath)
Sets the path to the property that defines the collapsed state

Parameters:
collapsedPropertyPath - Property path or null if not defined

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

setTitleExpression

public void setTitleExpression(String titleExpression)
Sets the title expression for the border title.

Parameters:
titleExpression - the new title expression


Copyright © 2011. All Rights Reserved.