com.tssap.util.ui.glpc.section
Class SimpleSection
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
|
+--com.tssap.util.ui.glpc.section.SimpleSection
- All Implemented Interfaces:
- IEditable, IGridLayoutPaneContainer, ISection, ISimpleSection, ITitledGridLayoutPaneContainer
- public final class SimpleSection
- extends AbstractSection
- implements ISimpleSection
This class represents a standard simple section that can be used to add any
UI components. It provides a title and a description at its top that is
displayed in the default section style.
The look and feel of the Section can be set by using different
WidgetFactories while creating the section.
This class is not intended to be subclassed.
|
Constructor Summary |
SimpleSection(IWidgetFactory widgetFactory,
int columns,
boolean equalColumns,
java.lang.String title,
java.lang.String description)
Creates a new SimpleSection. |
SimpleSection(IWidgetFactory widgetFactory,
int columns,
java.lang.String title,
java.lang.String description)
Creates a new SimpleSection. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleSection
public SimpleSection(IWidgetFactory widgetFactory,
int columns,
java.lang.String title,
java.lang.String description)
- Creates a new SimpleSection.
- Parameters:
widgetFactory - The widget factory to use to create any child UI
elements.columns - The number of columns for the client area.title - The title for the SimpleSection.description - The description for the SimpleSection. If no
description is given, it is empty by default.
SimpleSection
public SimpleSection(IWidgetFactory widgetFactory,
int columns,
boolean equalColumns,
java.lang.String title,
java.lang.String description)
- Creates a new SimpleSection.
- Parameters:
widgetFactory - The widget factory to use to create any child UI
elements.columns - The number of columns for the client area.equalColumns - If this flag is set to true, all columns of the
client area will have the same width, regardless of
their content.title - The title for the SimpleSection.description - The description for the SimpleSection. If no
description is given, it is empty by default.
initSection
public void initSection(IGridLayoutPane glp)
- Initializes the client area of this grid layout pane container subclass. By
default the client area is empty and can be filled with any UI element by
the user of this class. The implementation of this method within this class
simple stores the reference in a member variable for later access.
- Specified by:
initSection in interface ISection
- Parameters:
gridLayoutPane - The client area of the grid layout pane container
subclass.
getClientArea
public IGridLayoutPane getClientArea()
- Returns the client area. This area is empty by default and can be used to
add any component.
- Specified by:
getClientArea in interface ISimpleSection
- Returns:
- The client area defined by this grid layout pane container
subsclass.
Copyright © 2005 SAP AG. All Rights Reserved.