public abstract class UIComponentNestedSectionLayoutDecorator extends NestedSectionLayoutDecorator<javax.faces.component.UIComponent,javax.faces.component.UIComponent,UIMetawidget>
Modifier and Type | Class and Description |
---|---|
static class |
UIComponentNestedSectionLayoutDecorator.UIComponentState
Simple, lightweight structure for saving state.
|
NestedSectionLayoutDecorator.State<C>
Modifier | Constructor and Description |
---|---|
protected |
UIComponentNestedSectionLayoutDecorator(LayoutDecoratorConfig<javax.faces.component.UIComponent,javax.faces.component.UIComponent,UIMetawidget> config) |
Modifier and Type | Method and Description |
---|---|
protected abstract javax.faces.component.UIComponent |
createNewSectionWidget(javax.faces.component.UIComponent previousSectionWidget,
String section,
Map<String,String> attributes,
javax.faces.component.UIComponent container,
UIMetawidget metawidget)
Creates a new widget to hold this section (
getState().currentSection ). |
protected javax.faces.component.UIComponent |
createSectionWidget(javax.faces.component.UIComponent previousSectionWidget,
String section,
Map<String,String> attributes,
javax.faces.component.UIComponent container,
UIMetawidget metawidget)
Overridden, and made final, to support searching for existing section widgets before creating
new ones.
|
protected NestedSectionLayoutDecorator.State<javax.faces.component.UIComponent> |
getState(javax.faces.component.UIComponent container,
UIMetawidget metawidget) |
protected boolean |
isIgnored(javax.faces.component.UIComponent component) |
void |
onEndBuild(UIMetawidget metawidget)
Clears out all
existingSectionsUsed . |
protected String |
stripSection(Map<String,String> attributes) |
endContainerLayout, layoutWidget, startContainerLayout
getDelegate, onStartBuild
protected UIComponentNestedSectionLayoutDecorator(LayoutDecoratorConfig<javax.faces.component.UIComponent,javax.faces.component.UIComponent,UIMetawidget> config)
protected String stripSection(Map<String,String> attributes)
stripSection
in class NestedSectionLayoutDecorator<javax.faces.component.UIComponent,javax.faces.component.UIComponent,UIMetawidget>
protected NestedSectionLayoutDecorator.State<javax.faces.component.UIComponent> getState(javax.faces.component.UIComponent container, UIMetawidget metawidget)
getState
in class NestedSectionLayoutDecorator<javax.faces.component.UIComponent,javax.faces.component.UIComponent,UIMetawidget>
protected boolean isIgnored(javax.faces.component.UIComponent component)
isIgnored
in class NestedSectionLayoutDecorator<javax.faces.component.UIComponent,javax.faces.component.UIComponent,UIMetawidget>
protected final javax.faces.component.UIComponent createSectionWidget(javax.faces.component.UIComponent previousSectionWidget, String section, Map<String,String> attributes, javax.faces.component.UIComponent container, UIMetawidget metawidget)
This avoids creating duplicate section widgets for components that use
UIMetawidget.COMPONENT_ATTRIBUTE_NOT_RECREATABLE
. Such components, and their
enclosing section widgets, will survive POST-back so we must reconnect with them.
createSectionWidget
in class NestedSectionLayoutDecorator<javax.faces.component.UIComponent,javax.faces.component.UIComponent,UIMetawidget>
previousSectionWidget
- the previous section widget (if any). This can be useful for tracing back to, say,
a TabHostprotected abstract javax.faces.component.UIComponent createNewSectionWidget(javax.faces.component.UIComponent previousSectionWidget, String section, Map<String,String> attributes, javax.faces.component.UIComponent container, UIMetawidget metawidget)
getState().currentSection
).
Clients should use this version of the method instead of createSectionWidget
, in
order to support UIMetawidget.COMPONENT_ATTRIBUTE_NOT_RECREATABLE
.
previousSectionWidget
- the previous section widget (if any). This can be useful for tracing back to, say,
a TabHostpublic void onEndBuild(UIMetawidget metawidget)
existingSectionsUsed
. Needed for ICEfaces support.onEndBuild
in interface AdvancedLayout<javax.faces.component.UIComponent,javax.faces.component.UIComponent,UIMetawidget>
onEndBuild
in class LayoutDecorator<javax.faces.component.UIComponent,javax.faces.component.UIComponent,UIMetawidget>
metawidget
- the parent Metawidget. Never nullCopyright © 2015. All Rights Reserved.