org.jtheque.core.managers.feature
Class Feature

java.lang.Object
  extended by org.jtheque.core.managers.feature.Feature
Direct Known Subclasses:
FeatureManager.ManagedFeature

public class Feature
extends java.lang.Object

A Feature of JTheque.

Author:
Baptiste Wicht

Nested Class Summary
static class Feature.FeatureType
          The Feature Type.
 
Constructor Summary
Feature()
           
 
Method Summary
 void addSubFeature(Feature feature)
          Add a subfeature to the feature.
 JThequeAction getAction()
          Return the action of the feature.
 java.lang.String getBaseName()
          Return the basename for getting the icon.
 java.lang.String getIcon()
          Return the icon of the feature.
 java.lang.Integer getPosition()
          Return the position of the feature.
 java.util.List<Feature> getSubFeatures()
          Return the subfeatures of the feature.
 java.lang.String getTitleKey()
          Return the internationalization key of the title of the feature.
 Feature.FeatureType getType()
          Return the type of the feature.
 void removeSubFeature(Feature feature)
          Remove a subfeature to the feature.
 void setAction(JThequeAction action)
          Set the action of the feature.
 void setBaseName(java.lang.String baseName)
          Set the basename for the resources.
 void setIcon(java.lang.String icon)
          Set the icon of the feature.
 void setPosition(java.lang.Integer position)
          Set the position of the feature.
 void setTitleKey(java.lang.String titleKey)
          Set the internationalization key of the title of the feature.
 void setType(Feature.FeatureType type)
          Set the type of the feature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Feature

public Feature()
Method Detail

getType

public final Feature.FeatureType getType()
Return the type of the feature.

Returns:
The type of the feature.

setType

public final void setType(Feature.FeatureType type)
Set the type of the feature.

Parameters:
type - The type of the feature.

getTitleKey

public final java.lang.String getTitleKey()
Return the internationalization key of the title of the feature.

Returns:
The internationalisation key of the feature.

setTitleKey

public final void setTitleKey(java.lang.String titleKey)
Set the internationalization key of the title of the feature.

Parameters:
titleKey - The title key.

getAction

public final JThequeAction getAction()
Return the action of the feature.

Returns:
The action.

setAction

public final void setAction(JThequeAction action)
Set the action of the feature.

Parameters:
action - The action.

getSubFeatures

public final java.util.List<Feature> getSubFeatures()
Return the subfeatures of the feature.

Returns:
A List containing all the subfeature of the feature.

addSubFeature

public void addSubFeature(Feature feature)
Add a subfeature to the feature.

Parameters:
feature - The feature to add.

removeSubFeature

public void removeSubFeature(Feature feature)
Remove a subfeature to the feature.

Parameters:
feature - The feature to remove.

getPosition

public final java.lang.Integer getPosition()
Return the position of the feature.

Returns:
The position of the feature.

setPosition

public final void setPosition(java.lang.Integer position)
Set the position of the feature.

Parameters:
position - The position of the feature.

getIcon

public final java.lang.String getIcon()
Return the icon of the feature.

Returns:
The icon of the feature.

setIcon

public final void setIcon(java.lang.String icon)
Set the icon of the feature.

Parameters:
icon - The icon of the feature.

getBaseName

public final java.lang.String getBaseName()
Return the basename for getting the icon.

Returns:
The basename.

setBaseName

public final void setBaseName(java.lang.String baseName)
Set the basename for the resources.

Parameters:
baseName - The basename.


Copyright © 2009 JTheque. All Rights Reserved.