Package com.saperion.ngc.iform.layout
Interface FormLayout
- All Known Implementing Classes:
AbstractFormLayout,FormLayout1,FormLayout10,FormLayout11,FormLayout12,FormLayout13,FormLayout14,FormLayout15,FormLayout16,FormLayout17,FormLayout18,FormLayout19,FormLayout2,FormLayout20,FormLayout21,FormLayout3,FormLayout4,FormLayout5,FormLayout6,FormLayout7,FormLayout8,FormLayout9,PaneLayout
public interface FormLayout
Represents a layout option for a form. Based on the 18 predefined layouts in QBE Designer.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddChildToFrame(org.zkoss.zk.ui.Component child, int frameId) Adds a child component to the specified frame.voidIndicates that all children have been added.org.zkoss.zk.ui.HtmlBasedComponentgetFrame(int frameId) Returns the frame with the specified ID.intgetType()Returns the type of the layout.booleanCheck, if the element is a tab pane.voidsetFrameDimensions(int frameId, com.saperion.ngc.iform.xml.PosType framePosition) Sets the dimensions of the specified frame.voidsetStoredSizes(Map<Integer, AreaSize> sizes) Sets the sizes of the layout areas that were stored in the backend-configuration.
-
Method Details
-
getType
int getType()Returns the type of the layout.- Returns:
- type
-
addChildToFrame
void addChildToFrame(org.zkoss.zk.ui.Component child, int frameId) Adds a child component to the specified frame.- Parameters:
child- child to addframeId- frame id
-
setFrameDimensions
void setFrameDimensions(int frameId, com.saperion.ngc.iform.xml.PosType framePosition) Sets the dimensions of the specified frame.- Parameters:
frameId- id of the frameframePosition- frame position
-
finishLayout
Indicates that all children have been added. The layout will perform finishing operations like size calculations.- Throws:
FormRenderException- when the layout process fails
-
isTabPane
Check, if the element is a tab pane.- Parameters:
id- ID- Returns:
- True, if tab pane
-
getFrame
org.zkoss.zk.ui.HtmlBasedComponent getFrame(int frameId) Returns the frame with the specified ID.- Parameters:
frameId- frame id- Returns:
- frame component
-
setStoredSizes
Sets the sizes of the layout areas that were stored in the backend-configuration.- Parameters:
sizes- area sizes from backend
-