Methods Summary |
---|
private void | addTable(java.util.Hashtable t)
if (t == null) {
return;
}
java.util.Enumeration keys = t.keys();
while (keys.hasMoreElements()) {
String key = (String)keys.nextElement();
Object value = t.get(key);
setValue(key, value);
}
|
public java.util.Enumeration | attributeNames()Gets an enumeration of the locale-independent names of this
feature.
if (table == null) {
table = new java.util.Hashtable();
}
return table.keys();
|
static java.lang.String | capitalize(java.lang.String s)
return NameGenerator.capitalize(s);
|
static java.lang.ref.Reference | createReference(java.lang.Object obj, boolean soft)Create a Reference wrapper for the object.
Reference ref = null;
if (obj != null) {
if (soft) {
ref = new SoftReference(obj);
} else {
ref = new WeakReference(obj);
}
}
return ref;
|
static java.lang.ref.Reference | createReference(java.lang.Object obj)
return createReference(obj, false);
|
java.lang.Class | getClass0()
return (Class)getObject(classRef);
|
public java.lang.String | getDisplayName()Gets the localized display name of this feature.
if (displayName == null) {
return getName();
}
return displayName;
|
public java.lang.String | getName()Gets the programmatic name of this feature.
return name;
|
static java.lang.Object | getObject(java.lang.ref.Reference ref)Returns an object from a Reference wrapper.
return (ref == null) ? null : (Object)ref.get();
|
public java.lang.String | getShortDescription()Gets the short description of this feature.
if (shortDescription == null) {
return getDisplayName();
}
return shortDescription;
|
public java.lang.Object | getValue(java.lang.String attributeName)Retrieve a named attribute with this feature.
if (table == null) {
return null;
}
return table.get(attributeName);
|
public boolean | isExpert()The "expert" flag is used to distinguish between those features that are
intended for expert users from those that are intended for normal users.
return expert;
|
public boolean | isHidden()The "hidden" flag is used to identify features that are intended only
for tool use, and which should not be exposed to humans.
return hidden;
|
public boolean | isPreferred()The "preferred" flag is used to identify features that are particularly
important for presenting to humans.
return preferred;
|
void | setClass0(java.lang.Class cls)
classRef = createReference(cls);
|
public void | setDisplayName(java.lang.String displayName)Sets the localized display name of this feature.
this.displayName = displayName;
|
public void | setExpert(boolean expert)The "expert" flag is used to distinguish between features that are
intended for expert users from those that are intended for normal users.
this.expert = expert;
|
public void | setHidden(boolean hidden)The "hidden" flag is used to identify features that are intended only
for tool use, and which should not be exposed to humans.
this.hidden = hidden;
|
public void | setName(java.lang.String name)Sets the programmatic name of this feature.
this.name = name;
|
public void | setPreferred(boolean preferred)The "preferred" flag is used to identify features that are particularly
important for presenting to humans.
this.preferred = preferred;
|
public void | setShortDescription(java.lang.String text)You can associate a short descriptive string with a feature. Normally
these descriptive strings should be less than about 40 characters.
shortDescription = text;
|
public void | setValue(java.lang.String attributeName, java.lang.Object value)Associate a named attribute with this feature.
if (table == null) {
table = new java.util.Hashtable();
}
table.put(attributeName, value);
|