public abstract class SwingFlatSectionLayoutDecorator extends FlatSectionLayoutDecorator<JComponent,JComponent,SwingMetawidget>
FlatSectionLayoutDecorator.State| Modifier | Constructor and Description |
|---|---|
protected |
SwingFlatSectionLayoutDecorator(LayoutDecoratorConfig<JComponent,JComponent,SwingMetawidget> config) |
| Modifier and Type | Method and Description |
|---|---|
protected String[] |
getSections(Map<String,String> attributes) |
protected FlatSectionLayoutDecorator.State |
getState(JComponent container,
SwingMetawidget metawidget) |
protected boolean |
isIgnored(JComponent component)
Returns
true if the given widget should be ignored, and no section heading
created for it. |
void |
startContainerLayout(JComponent container,
SwingMetawidget metawidget)
Initialise the given container, using the given Metawidget to access additional services if
needed (such as state saving).
|
protected String |
stripSection(Map<String,String> attributes) |
addSectionWidget, layoutWidgetendContainerLayout, getDelegate, onEndBuild, onStartBuildprotected SwingFlatSectionLayoutDecorator(LayoutDecoratorConfig<JComponent,JComponent,SwingMetawidget> config)
public void startContainerLayout(JComponent container, SwingMetawidget metawidget)
AdvancedLayoutstartContainerLayout in interface AdvancedLayout<JComponent,JComponent,SwingMetawidget>startContainerLayout in class FlatSectionLayoutDecorator<JComponent,JComponent,SwingMetawidget>container - the container to layout. This is often the same as the given Metawidgetmetawidget - the parent Metawidget. Never nullprotected String stripSection(Map<String,String> attributes)
stripSection in class FlatSectionLayoutDecorator<JComponent,JComponent,SwingMetawidget>protected String[] getSections(Map<String,String> attributes)
getSections in class FlatSectionLayoutDecorator<JComponent,JComponent,SwingMetawidget>protected FlatSectionLayoutDecorator.State getState(JComponent container, SwingMetawidget metawidget)
getState in class FlatSectionLayoutDecorator<JComponent,JComponent,SwingMetawidget>protected boolean isIgnored(JComponent component)
FlatSectionLayoutDecoratortrue if the given widget should be ignored, and no section heading
created for it. For example, the widget might be an empty Stub widget.
Subclasses should override this method and return true if the widget is some
other kind of ignored component (eg. HtmlInputHidden).
isIgnored in class FlatSectionLayoutDecorator<JComponent,JComponent,SwingMetawidget>Copyright © 2015. All Rights Reserved.