| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
util.IEventListener --+
|
terminal.paintable.IPaintable --+
|
object --+ |
| |
terminal.variable_owner.IVariableOwner --+
|
object --+ |
| |
terminal.sizeable.ISizeable --+
|
component.IComponent --+
|
object --+ |
| |
event.method_event_source.IMethodEventSource --+
|
abstract_component.AbstractComponent --+
|
object --+ |
| |
util.IEventListener --+ |
| |
terminal.paintable.IPaintable --+ |
| |
object --+ | |
| | |
terminal.variable_owner.IVariableOwner --+ |
| |
object --+ | |
| | |
terminal.sizeable.ISizeable --+ |
| |
component.IComponent --+ |
| |
component_container.IComponentContainer --+
|
abstract_component_container.AbstractComponentContainer --+
|
object --+ |
| |
util.IEventListener --+ |
| |
terminal.paintable.IPaintable --+ |
| |
object --+ | |
| | |
terminal.variable_owner.IVariableOwner --+ |
| |
object --+ | |
| | |
terminal.sizeable.ISizeable --+ |
| |
component.IComponent --+ |
| |
component_container.IComponentContainer --+ |
| |
layout.ILayout --+
|
object --+ |
| |
layout.IMarginHandler --+
|
abstract_layout.AbstractLayout --+
|
CustomLayout
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.
Version: 1.1.2
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from Inherited from Inherited from |
|||
|
|||
CLIENT_WIDGET = Nonehash(x) |
|||
_BUFFER_SIZE = 10000
|
|||
|
Inherited from Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Default constructor only used by subclasses. Subclasses are responsible for setting the appropriate fields. Either setTemplateName, that makes layout fetch the template from theme, or setTemplateContents. Template file is fetched from "<theme>/layout/<templateName>".
|
Adds the component into this container to given location. If the location is already populated, the old component is removed. If the component is added without specifying the location (empty string is then used as location). Only one component can be added to the default "" location and adding more components into that location overwrites the old components.
|
Removes the component from this container or the given location.
|
Gets the component container iterator for going trough all the components in the container.
|
Gets the number of contained components. Consistent with the iterator returned by getComponentIterator.
|
Gets the child-component by its location.
|
Paints the content of this component.
|
Replaces the component in the container with another one without changing position. This method replaces component with another one is such way that the new component overtakes the position of the old component. If the old component is not in the container, the new component is added to the container. If the both component are already in the container, their positions are swapped. IComponent attach and detach events should be taken care as with add and remove.
|
CustomLayout's template selecting was previously implemented with setStyle. Overriding to improve backwards compatibility.
Deprecated: Use setTemplateName instead |
Set the name of the template used to draw custom layout. With GWT-adapter, the template with name 'templatename' is loaded from VAADIN/themes/themename/layouts/templatename.html. If the theme has not been set (with Application.setTheme()), themename is 'default'. |
Although most layouts support margins, CustomLayout does not. The behaviour of this layout is determined almost completely by the actual template.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Sat Apr 20 16:52:55 2013 | http://epydoc.sourceforge.net |