com.tssap.util.ui.glpc.section
Class AbstractSection
java.lang.Object
|
+--com.tssap.util.ui.AbstractEditable
|
+--com.tssap.util.ui.glpc.AbstractGridLayoutPaneContainer
|
+--com.tssap.util.ui.glpc.AbstractTitledGridLayoutPaneContainer
|
+--com.tssap.util.ui.glpc.section.AbstractSection
- All Implemented Interfaces:
- IEditable, IGridLayoutPaneContainer, ISection, ITitledGridLayoutPaneContainer
- Direct Known Subclasses:
- SimpleSection
- public abstract class AbstractSection
- extends AbstractTitledGridLayoutPaneContainer
- implements ISection
This is the abstract base class for all sections. A section is a specially
fomatted GridLayoutPaneContainer with a title and a description
and is intended to be used within forms of an editor. A section contains a
GridLayoutPane as the user area, that can be filled by
subclasses.
The style of the section can be determined by supplying an implementation of
com.tssap.util.ui.lfsupport.IWidgetFactory, e.g.
DefaultWidgetFactory.
|
Constructor Summary |
AbstractSection(IWidgetFactory widgetFactory,
int columns,
boolean equalColumns,
java.lang.String title,
java.lang.String description)
Creates a new AbstractSection. |
AbstractSection(IWidgetFactory widgetFactory,
int columns,
java.lang.String title,
java.lang.String description)
Creates a new AbstractSection with non-equal column widths. |
|
Method Summary |
void |
initContainer(IGridLayoutPane glp)
Initializes the section by setting title and description fonts, creating a
new user area and calling the initSection(GridLayoutPane)
method from the interface ISection that must be implemented by
subsclasses to fill the section.
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSection
public AbstractSection(IWidgetFactory widgetFactory,
int columns,
java.lang.String title,
java.lang.String description)
- Creates a new
AbstractSection with non-equal column widths.
- Parameters:
widgetFactory - The WidgetFactory to use.columns - The number of columns the client area should have.title - The title of the section.description - The description of the section.
AbstractSection
public AbstractSection(IWidgetFactory widgetFactory,
int columns,
boolean equalColumns,
java.lang.String title,
java.lang.String description)
- Creates a new
AbstractSection.
- Parameters:
widgetFactory - The WidgetFactory to use.columns - The number of columns the client area should have.equalColumns - Flag if the columns should have equal width.title - The title of the section.description - The description of the section
initContainer
public final void initContainer(IGridLayoutPane glp)
- Initializes the section by setting title and description fonts, creating a
new user area and calling the
initSection(GridLayoutPane)
method from the interface ISection that must be implemented by
subsclasses to fill the section.
Besides two other abstract methods are called before (preInitSection(
GridLayoutPane)) and after (postInitSection(GrindLayoutPane)
) the initialization. Subclasses can implement these methods in case
they want to supply addional layout at the top or at the bottom of the
section (outside of the client area).
- Specified by:
initContainer in interface IGridLayoutPaneContainer
- Parameters:
glp - The client area of the super class to be filled within the
abstract section.
Copyright © 2005 SAP AG. All Rights Reserved.