|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jtheque.core.managers.feature.Feature
public class Feature
A Feature of JTheque.
| Nested Class Summary | |
|---|---|
static class |
Feature.FeatureType
The Feature Type. |
| Constructor Summary | |
|---|---|
Feature()
Construct a new Feature. |
|
Feature(Feature.FeatureType type,
Integer position,
Action action)
Construct a new Feature for an action. |
|
Feature(Feature.FeatureType type,
String titleKey,
Integer position)
Construct a new Feature for a menu. |
|
| Method Summary | |
|---|---|
void |
addSubFeature(Feature feature)
Add a sub feature to the feature. |
Action |
getAction()
Return the action of the feature. |
String |
getBaseName()
Return the base name for getting the icon. |
String |
getIcon()
Return the icon of the feature. |
Integer |
getPosition()
Return the position of the feature. |
Collection<Feature> |
getSubFeatures()
Return the sub features of the feature. |
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 sub feature to the feature. |
void |
setAction(Action action)
Set the action of the feature. |
void |
setBaseName(String baseName)
Set the base name for the resources. |
void |
setIcon(String icon)
Set the icon of the feature. |
void |
setPosition(Integer position)
Set the position of the feature. |
void |
setTitleKey(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 |
|---|
public Feature()
public Feature(Feature.FeatureType type,
Integer position,
Action action)
type - The type of feature.position - The position of the feature in the parent.action - The action to execute when the feature is pressed.
public Feature(Feature.FeatureType type,
String titleKey,
Integer position)
type - The type of feature.titleKey - The i18n key of the title of the feature.position - The position of the feature in the parent.| Method Detail |
|---|
public final Feature.FeatureType getType()
public final void setType(Feature.FeatureType type)
type - The type of the feature.public final String getTitleKey()
public final void setTitleKey(String titleKey)
titleKey - The title key.public final Action getAction()
public final void setAction(Action action)
action - The action.public final Collection<Feature> getSubFeatures()
public void addSubFeature(Feature feature)
feature - The feature to add.public void removeSubFeature(Feature feature)
feature - The feature to remove.public final Integer getPosition()
public final void setPosition(Integer position)
position - The position of the feature.public final String getIcon()
public final void setIcon(String icon)
icon - The icon of the feature.public final String getBaseName()
public final void setBaseName(String baseName)
baseName - The base name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||