|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.core.managers.feature.FeatureManager
public final class FeatureManager
A Feature manager.
Nested Class Summary | |
---|---|
protected class |
FeatureManager.ManagedFeature
A managed feature. |
Nested classes/interfaces inherited from interface org.jtheque.core.managers.feature.IFeatureManager |
---|
IFeatureManager.CoreFeature |
Constructor Summary | |
---|---|
FeatureManager()
Construct a new FeatureManager. |
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 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,
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. |
void |
close()
Close the manager. |
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 |
init()
Init the manager. |
void |
preInit()
Pre-init the manager. |
void |
removeFeature(Feature feature)
Remove a feature. |
void |
removeFeatureListener(FeatureListener listener)
Remove a feature listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeatureManager()
Method Detail |
---|
public void preInit()
IManager
preInit
in interface IManager
public void close() throws ManagerException
IManager
close
in interface IManager
ManagerException
- If an error occurs during the close process.public void init() throws ManagerException
IManager
init
in interface IManager
ManagerException
- If an error occurs during the init process.public Feature createFeature(int position, Feature.FeatureType type, java.lang.String key)
IFeatureManager
createFeature
in interface IFeatureManager
position
- The position of the feature.type
- The type of the feature.key
- The internationalization key.
public Feature addSubFeature(Feature parent, java.lang.String actionName, Feature.FeatureType type, int position, java.lang.String basename, java.lang.String icon)
IFeatureManager
addSubFeature
in interface IFeatureManager
parent
- The parent feature.actionName
- The bean name of the action.type
- The type of the subfeature.position
- The position of the subfeature.basename
- The images basename.icon
- The icon of the action.
public Feature addSubFeature(Feature parent, java.lang.String actionName, Feature.FeatureType type, int position, java.lang.String icon)
IFeatureManager
addSubFeature
in interface IFeatureManager
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.
public Feature addSubFeature(Feature parent, java.lang.String action, Feature.FeatureType type, int position)
IFeatureManager
addSubFeature
in interface IFeatureManager
parent
- The parent feature.action
- The bean name of the action.type
- The type of the subfeature.position
- The position of the subfeature.
public Feature addSubFeature(Feature parent, JThequeAction action, Feature.FeatureType type, int position)
IFeatureManager
addSubFeature
in interface IFeatureManager
parent
- The parent feature.action
- The action.type
- The type of the subfeature.position
- The position of the subfeature.
public void addFeature(Feature feature)
IFeatureManager
addFeature
in interface IFeatureManager
feature
- The feature to add.public void removeFeature(Feature feature)
IFeatureManager
removeFeature
in interface IFeatureManager
feature
- The feature to remove.public java.util.List<Feature> getFeatures()
IFeatureManager
getFeatures
in interface IFeatureManager
public Feature getFeature(IFeatureManager.CoreFeature feature)
IFeatureManager
getFeature
in interface IFeatureManager
feature
- The feature type.
public void addFeatureListener(FeatureListener listener)
IFeatureManager
addFeatureListener
in interface IFeatureManager
listener
- The feature listener to add.public void removeFeatureListener(FeatureListener listener)
IFeatureManager
removeFeatureListener
in interface IFeatureManager
listener
- The feature listener to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |