Package javaa.beans
Class FeatureDescriptor
java.lang.Object
javaa.beans.FeatureDescriptor
- Direct Known Subclasses:
BeanDescriptor,EventSetDescriptor,MethodDescriptor,ParameterDescriptor,PropertyDescriptor
Common base class for Descriptors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEnumerates the attribute names.Gets the display name orgetName()if not set.getName()Gets the name.Gets the short description orgetDisplayName()if not set.Gets the value associated with the named attribute.booleanisExpert()Indicates if this feature is an expert feature.booleanisHidden()Indicates if this feature is hidden.booleanIndicates if this feature is preferred.voidsetDisplayName(String displayName) Sets the display name.voidsetExpert(boolean expert) Sets the expert indicator.voidsetHidden(boolean hidden) Sets the hidden indicator.voidSets the name.voidsetPreferred(boolean preferred) Sets the preferred indicator.voidsetShortDescription(String text) Sets the short description.voidSets the value for the named attribute.
-
Constructor Details
-
FeatureDescriptor
public FeatureDescriptor()Constructs an instance.
-
-
Method Details
-
setValue
Sets the value for the named attribute.
- Parameters:
attributeName- The name of the attribute to set a value with.value- The value to set.
-
getValue
Gets the value associated with the named attribute.
- Parameters:
attributeName- The name of the attribute to get a value for.- Returns:
- The attribute's value.
-
attributeNames
Enumerates the attribute names.
- Returns:
- An instance of
Enumeration.
-
setShortDescription
Sets the short description.
- Parameters:
text- The description to set.
-
setName
Sets the name.
- Parameters:
name- The name to set.
-
setDisplayName
Sets the display name.
- Parameters:
displayName- The display name to set.
-
getShortDescription
Gets the short description or
getDisplayName()if not set.- Returns:
- The description.
-
getName
Gets the name.
- Returns:
- The name.
-
getDisplayName
Gets the display name or
getName()if not set.- Returns:
- The display name.
-
setPreferred
public void setPreferred(boolean preferred) Sets the preferred indicator.
- Parameters:
preferred-trueif preferred,falseotherwise.
-
setHidden
public void setHidden(boolean hidden) Sets the hidden indicator.
- Parameters:
hidden-trueif hidden,falseotherwise.
-
setExpert
public void setExpert(boolean expert) Sets the expert indicator.
- Parameters:
expert-trueif expert,falseotherwise.
-
isPreferred
public boolean isPreferred()Indicates if this feature is preferred.
- Returns:
trueif preferred,falseotherwise.
-
isHidden
public boolean isHidden()Indicates if this feature is hidden.
- Returns:
trueif hidden,falseotherwise.
-
isExpert
public boolean isExpert()Indicates if this feature is an expert feature.
- Returns:
trueif hidden,falseotherwise.
-