Package com.saperion.ngc.iform.layout
Class AbstractFormLayout
java.lang.Object
org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zul.Borderlayout
com.saperion.ngc.iform.layout.AbstractFormLayout
- All Implemented Interfaces:
FormLayout
,Serializable
,Cloneable
,org.zkoss.zk.ui.Component
,org.zkoss.zk.ui.ext.Scope
,org.zkoss.zk.ui.sys.ComponentCtrl
- Direct Known Subclasses:
FormLayout1
,FormLayout10
,FormLayout11
,FormLayout12
,FormLayout13
,FormLayout14
,FormLayout15
,FormLayout16
,FormLayout17
,FormLayout18
,FormLayout19
,FormLayout2
,FormLayout20
,FormLayout21
,FormLayout3
,FormLayout4
,FormLayout5
,FormLayout6
,FormLayout7
,FormLayout8
,FormLayout9
,PaneLayout
Abstract implementation of FormLayout.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl
Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.AbstractComponent.Children
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IntelligentFormViewImpl
Parent form of this layout.protected static final double
100 percent.Sizes stored in configuration.Fields inherited from class org.zkoss.zul.Borderlayout
CENTER, EAST, NORTH, SOUTH, WEST
Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent
_zclass
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl
AFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
addChildToFrame
(org.zkoss.zk.ui.Component child, int frameId) Adds a child component to the specified frame.org.zkoss.zk.ui.HtmlBasedComponent
getFrame
(int frameId) Returns the frame with the specified ID.protected final int
getFrameHeight
(com.saperion.ngc.iform.xml.PosType framePosition) Calculates the height of a frame.protected final int
getFrameWidth
(com.saperion.ngc.iform.xml.PosType framePosition) Calculates the width of a frame.final int
getType()
Returns the type of the layout.boolean
Check, if the element is a tab pane.void
setStoredSizes
(Map<Integer, AreaSize> sizes) Sets the sizes of the layout areas that were stored in the backend-configuration.Methods inherited from class org.zkoss.zul.Borderlayout
beforeChildAdded, clone, getCenter, getEast, getNorth, getSouth, getWest, getZclass, insertBefore, isAnimationDisabled, onChildRemoved, renderProperties, resize, setAnimationDisabled
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, evalCSSFlex, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getPropertyAccess, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, invalidate, invalidatePartial, isChildable, isInitialized, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onPageAttached, onPageDetached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl
invalidatePartial
Methods inherited from interface com.saperion.ngc.iform.layout.FormLayout
finishLayout, setFrameDimensions
-
Field Details
-
PERCENT_100
protected static final double PERCENT_100100 percent.- See Also:
-
sizes
Sizes stored in configuration. -
parentForm
Parent form of this layout.
-
-
Method Details
-
getType
public final int getType()Description copied from interface:FormLayout
Returns the type of the layout.- Specified by:
getType
in interfaceFormLayout
- Returns:
- type
-
addChildToFrame
public final void addChildToFrame(org.zkoss.zk.ui.Component child, int frameId) Description copied from interface:FormLayout
Adds a child component to the specified frame.- Specified by:
addChildToFrame
in interfaceFormLayout
- Parameters:
child
- Child componentframeId
- frameId
-
getFrameHeight
protected final int getFrameHeight(com.saperion.ngc.iform.xml.PosType framePosition) throws FormRenderException Calculates the height of a frame.- Parameters:
framePosition
- frame position- Returns:
- height
- Throws:
FormRenderException
- when the height can not be calculated
-
getFrameWidth
protected final int getFrameWidth(com.saperion.ngc.iform.xml.PosType framePosition) throws FormRenderException Calculates the width of a frame.- Parameters:
framePosition
- frame position- Returns:
- width
- Throws:
FormRenderException
- when the width can not be calculated
-
isTabPane
Check, if the element is a tab pane.- Specified by:
isTabPane
in interfaceFormLayout
- Parameters:
id
- ID- Returns:
- True, if tab pane
- See Also:
-
getFrame
public org.zkoss.zk.ui.HtmlBasedComponent getFrame(int frameId) Returns the frame with the specified ID.- Specified by:
getFrame
in interfaceFormLayout
- Parameters:
frameId
- frame id- Returns:
- frame component
- See Also:
-
setStoredSizes
Sets the sizes of the layout areas that were stored in the backend-configuration.- Specified by:
setStoredSizes
in interfaceFormLayout
- Parameters:
sizes
- area sizes from backend- See Also:
-