A container component with freely designed layout and style. The
layout consists of items with textually represented locations. Each item
contains one sub-component, which can be any Muntjac component, such as a
layout. The adapter and theme are responsible for rendering the layout
with a given style by placing the items in the defined locations.
The placement of the locations is not fixed - different themes can
define the locations in a way that is suitable for them. One typical
example would be to create visual design for a web site as a custom
layout: the visual design would define locations for "menu",
"body", and "title", for example. The layout would
then be implemented as an XHTML template for each theme.
The default theme handles the styles that are not defined by drawing
the subcomponents just as in OrderedLayout.
|
|
|
initTemplateContentsFromInputStream(self,
templateStream) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
replaceComponent(self,
oldComponent,
newComponent)
Replaces the component in the container with another one without
changing position. |
source code
|
|
|
setStyle(self,
name)
CustomLayout's template selecting was previously implemented with
setStyle. |
source code
|
|
|
getTemplateName(self)
Get the name of the template |
source code
|
|
|
getTemplateContents(self)
Get the contents of the template |
source code
|
|
|
|
|
setTemplateContents(self,
templateContents)
Set the contents of the template used to draw the custom layout. |
source code
|
|
|
|
Inherited from abstract_layout.AbstractLayout :
changeVariables ,
fireClick ,
getMargin
Inherited from abstract_component_container.AbstractComponentContainer :
addCallback ,
addListener ,
attach ,
detach ,
fireComponentAttachEvent ,
fireComponentDetachEvent ,
getInvalidSizedChildren ,
moveComponentsFrom ,
removeAllComponents ,
removeCallback ,
removeListener ,
repaintChangedChildTrees ,
repaintChildTrees ,
requestRepaintAll ,
setEnabled ,
setHeight ,
setWidth
Inherited from abstract_component.AbstractComponent :
__getstate__ ,
__setstate__ ,
addStyleName ,
childRequestedRepaint ,
fireComponentErrorEvent ,
fireComponentEvent ,
fireEvent ,
fireRequestRepaintEvent ,
focus ,
getApplication ,
getCSSHeight ,
getCSSWidth ,
getCaption ,
getComponentError ,
getData ,
getDebugId ,
getDescription ,
getErrorHandler ,
getErrorMessage ,
getHeight ,
getHeightUnits ,
getIcon ,
getListeners ,
getLocale ,
getParent ,
getStyle ,
getStyleName ,
getWidth ,
getWidthUnits ,
getWindow ,
handleError ,
hasListeners ,
isEnabled ,
isImmediate ,
isReadOnly ,
isVisible ,
paint ,
parseStringSize ,
registerCallback ,
registerListener ,
removeStyleName ,
requestRepaint ,
requestRepaintRequests ,
setCaption ,
setComponentError ,
setData ,
setDebugId ,
setDescription ,
setErrorHandler ,
setHeightUnits ,
setIcon ,
setImmediate ,
setLocale ,
setParent ,
setReadOnly ,
setSizeFull ,
setSizeUndefined ,
setStyleName ,
setVisible ,
setWidthUnits ,
withdrawCallback ,
withdrawListener
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|