org.jtheque.core.managers.feature
Interface IFeatureManager

All Known Implementing Classes:
FeatureManager

public interface IFeatureManager

A feature manager specification.

Author:
Baptiste Wicht

Nested Class Summary
static class IFeatureManager.CoreFeature
          An enumeration of the core features.
 
Method Summary
 void addFeature(Feature feature)
          Add a feature.
 void addFeatureListener(FeatureListener listener)
          Add a feature listener.
 Feature addSubFeature(Feature parent, JThequeAction action, Feature.FeatureType type, int position)
          Add a sub feature to a parent feature.
 Feature addSubFeature(Feature parent, java.lang.String actionName, Feature.FeatureType type, int position)
          Add a sub feature to a parent feature.
 Feature addSubFeature(Feature parent, java.lang.String actionName, Feature.FeatureType type, int position, java.lang.String icon)
          Add a sub feature to a parent feature.
 Feature addSubFeature(Feature parent, java.lang.String actionName, Feature.FeatureType type, int position, java.lang.String basename, java.lang.String icon)
          Add a sub feature to a parent feature.
 Feature createFeature(int position, Feature.FeatureType type, java.lang.String key)
          Create a feature.
 Feature getFeature(IFeatureManager.CoreFeature feature)
          Return the core feature.
 java.util.List<Feature> getFeatures()
          Return all the features of the application.
 void removeFeature(Feature feature)
          Remove a feature.
 void removeFeatureListener(FeatureListener listener)
          Remove a feature listener.
 

Method Detail

createFeature

Feature createFeature(int position,
                      Feature.FeatureType type,
                      java.lang.String key)
Create a feature.

Parameters:
position - The position of the feature.
type - The type of the feature.
key - The internationalization key.
Returns:
The created feature.

addSubFeature

Feature addSubFeature(Feature parent,
                      java.lang.String actionName,
                      Feature.FeatureType type,
                      int position,
                      java.lang.String icon)
Add a sub feature to a parent feature.

Parameters:
parent - The parent feature.
actionName - The bean name of the action.
type - The type of the subfeature.
position - The position of the subfeature.
icon - The icon of the action. The manager will search using the images basename of the core.
Returns:
The subfeature.

addSubFeature

Feature addSubFeature(Feature parent,
                      java.lang.String actionName,
                      Feature.FeatureType type,
                      int position,
                      java.lang.String basename,
                      java.lang.String icon)
Add a sub feature to a parent feature.

Parameters:
parent - The parent feature.
actionName - The bean name of the action.
type - The type of the subfeature.
position - The position of the subfeature.
icon - The icon of the action.
basename - The images basename.
Returns:
The subfeature.

addSubFeature

Feature addSubFeature(Feature parent,
                      java.lang.String actionName,
                      Feature.FeatureType type,
                      int position)
Add a sub feature to a parent feature.

Parameters:
parent - The parent feature.
actionName - The bean name of the action.
type - The type of the subfeature.
position - The position of the subfeature.
Returns:
The subfeature.

addSubFeature

Feature addSubFeature(Feature parent,
                      JThequeAction action,
                      Feature.FeatureType type,
                      int position)
Add a sub feature to a parent feature.

Parameters:
parent - The parent feature.
action - The action.
type - The type of the subfeature.
position - The position of the subfeature.
Returns:
The subfeature.

addFeature

void addFeature(Feature feature)
Add a feature.

Parameters:
feature - The feature to add.

removeFeature

void removeFeature(Feature feature)
Remove a feature.

Parameters:
feature - The feature to remove.

getFeatures

java.util.List<Feature> getFeatures()
Return all the features of the application.

Returns:
A List containing all the features.

getFeature

Feature getFeature(IFeatureManager.CoreFeature feature)
Return the core feature.

Parameters:
feature - The feature type.
Returns:
The searched feature.

addFeatureListener

void addFeatureListener(FeatureListener listener)
Add a feature listener.

Parameters:
listener - The feature listener to add.

removeFeatureListener

void removeFeatureListener(FeatureListener listener)
Remove a feature listener.

Parameters:
listener - The feature listener to remove.


Copyright © 2009 JTheque. All Rights Reserved.