Package com.saperion.ngc.iform.layout
Class FormLayoutFactory
java.lang.Object
com.saperion.ngc.iform.layout.FormLayoutFactory
Factory to create FormLayouts.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FormLayout
createLayout
(LayoutType type, IntelligentFormViewImpl form) Creates a borderlayout based layout for a form.static FormLayout
createLayout
(com.saperion.ngc.iform.PaneDescription.Layout layout, IntelligentFormViewImpl form) Cteate layout from a pane layout.
-
Method Details
-
createLayout
public static FormLayout createLayout(LayoutType type, IntelligentFormViewImpl form) throws UndefinedLayoutException Creates a borderlayout based layout for a form. There are 21 predefined layouts identified by integers from 1 to 21.- Parameters:
type
- layout typeform
- the parent form of the layout- Returns:
- the layout
- Throws:
UndefinedLayoutException
- when the layout type is unknown
-
createLayout
public static FormLayout createLayout(com.saperion.ngc.iform.PaneDescription.Layout layout, IntelligentFormViewImpl form) Cteate layout from a pane layout.- Parameters:
layout
- Panelayoutform
- the parent form of the layout- Returns:
- Form layout
-