|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PluginContainer
Container used to display a single visible plugin. Interface implemented by all Container for plugins. Has methods to add and remove plugins. Note that according to Composite pattern, a plugin is a plugin container by itself.
| Field Summary | |
|---|---|
static java.lang.String |
CENTER
Constraint: Center segment (adds an object directly to this container) |
static java.lang.String |
EAST
Constraint: East segment (adds an object to the east of this container) |
static java.lang.String |
NORTH
Constraint: North segment (adds an object to the north of this container) |
static BasicDropRegionId |
REGION_CENTER
Center region |
static BasicDropRegionId |
REGION_EAST
Eastern region |
static BasicDropRegionId |
REGION_NORTH
Northern region |
static BasicDropRegionId |
REGION_SOUTH
Southern region |
static BasicDropRegionId |
REGION_WEST
Western region |
static java.lang.String |
SOUTH
Constraint: South segment (adds an object to the south of this container) |
static java.lang.String |
WEST
Constraint: West segment (adds an object to the west of this container) |
| Method Summary | |
|---|---|
void |
addPlugin(VisiblePlugin p)
Adds a plugin to the container. |
VisiblePlugin |
getActivePlugin()
Returns the currently active plugin inside this container. |
JaspiraPage |
getPage()
Returns the page level parent plugin of this plugin. |
PluginContainer |
getParentContainer()
Returns the parent container of this container. |
java.util.List |
getPlugins()
Returns all plugins hosted by this container and its sub containers. |
java.util.List |
getVisiblePlugins()
Returns all plugins that are currently visible, i\.e\. shown in their tabbed containers. |
void |
removePlugin(VisiblePlugin p)
Removes a plugin from this container. |
void |
sliceContainer(PluginContainer toInsert,
PluginContainer currentContainer,
java.lang.String constraint)
Slices the component at the given edge, i\.e\. replaces the entry with a new PluginDivider consisting of the old component and the new container. |
| Field Detail |
|---|
static final java.lang.String CENTER
static final java.lang.String NORTH
static final java.lang.String SOUTH
static final java.lang.String EAST
static final java.lang.String WEST
static final BasicDropRegionId REGION_CENTER
static final BasicDropRegionId REGION_NORTH
static final BasicDropRegionId REGION_SOUTH
static final BasicDropRegionId REGION_WEST
static final BasicDropRegionId REGION_EAST
| Method Detail |
|---|
void addPlugin(VisiblePlugin p)
p - Plugin to addvoid removePlugin(VisiblePlugin p)
p - Plugin to removejava.util.List getPlugins()
VisiblePlugin objects or nulljava.util.List getVisiblePlugins()
VisiblePlugin objects or nullVisiblePlugin getActivePlugin()
PluginContainer getParentContainer()
JaspiraPage getPage()
void sliceContainer(PluginContainer toInsert,
PluginContainer currentContainer,
java.lang.String constraint)
PluginDivider consisting of the old component and the new container.
toInsert - Containert to insertcurrentContainer - Currrent container that shall be replacedconstraint - The constraint determines where to place the new container:CENTER/NORTH/SOUTH/EAST/WEST
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||