|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.application.notation.NotationNameImpl
This class provides definition and manipulation of notation names.
All notation names will be accessed using the
NotationName
wrapper.
Not mutable!
Field Summary | |
---|---|
(package private) javax.swing.Icon |
_icon
|
(package private) java.lang.String |
_name
|
private static java.util.ArrayList |
_notations
|
(package private) java.lang.String |
_version
|
private static Logger |
cat
logger |
Constructor Summary | |
---|---|
protected |
NotationNameImpl(java.lang.String name)
A notation without a version or icon. |
protected |
NotationNameImpl(java.lang.String name,
javax.swing.Icon icon)
A notation without a version and with an icon. |
protected |
NotationNameImpl(java.lang.String name,
java.lang.String version)
A notation with a version and no icon. |
protected |
NotationNameImpl(java.lang.String name,
java.lang.String version,
javax.swing.Icon icon)
A notation with a version and an icon. |
Method Summary | |
---|---|
boolean |
equals(NotationName nn)
Ease-of-use helper to determine if this notation is the same as another. |
static NotationName |
findNotation(java.lang.String s)
Finds a NotationName matching the configuration string. |
private static void |
fireEvent(int eventType,
NotationName nn)
|
static java.util.ArrayList |
getAvailableNotations()
Get all of the registered notations. |
java.lang.String |
getConfigurationValue()
Returns the text string stored in the configuration for this notation. |
javax.swing.Icon |
getIcon()
Returns an icon for the notation, or null if no icon is available. |
java.lang.String |
getName()
Accessor for the language name |
static NotationName |
getNotation(java.lang.String k1)
Finds a NotationName matching the language with no version. |
static NotationName |
getNotation(java.lang.String k1,
java.lang.String k2)
Finds a NotationName matching the language and version. |
static java.lang.String |
getNotationNameString(java.lang.String k1,
java.lang.String k2)
|
java.lang.String |
getTitle()
Gets a textual title for the notation suitable for use in a combo box or other such visual location. |
java.lang.String |
getVersion()
Accessor for the language version |
static NotationName |
makeNotation(java.lang.String k1,
java.lang.String k2,
javax.swing.Icon icon)
Create a NotationName with or without a version. |
void |
moduleDisabled(ArgoModuleEvent event)
Invoked when a module has been disabled. |
void |
moduleEnabled(ArgoModuleEvent event)
Invoked when a module has been enabled. |
void |
moduleLoaded(ArgoModuleEvent event)
Invoked when a module has been loaded. |
void |
moduleUnloaded(ArgoModuleEvent event)
Invoked when a module has been unloaded. |
java.lang.String |
toString()
Ease-of-use helper for usage in swing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static Logger cat
java.lang.String _name
java.lang.String _version
javax.swing.Icon _icon
private static java.util.ArrayList _notations
Constructor Detail |
protected NotationNameImpl(java.lang.String name)
protected NotationNameImpl(java.lang.String name, javax.swing.Icon icon)
protected NotationNameImpl(java.lang.String name, java.lang.String version)
protected NotationNameImpl(java.lang.String name, java.lang.String version, javax.swing.Icon icon)
Method Detail |
public java.lang.String getName()
getName
in interface NotationName
public java.lang.String getVersion()
getVersion
in interface NotationName
public java.lang.String getTitle()
getTitle
in interface NotationName
public javax.swing.Icon getIcon()
getIcon
in interface NotationName
Icon
for the language or null if not available.public java.lang.String getConfigurationValue()
NotationName
NotationName.equals(NotationName)
.
This should incorporate both the name and the version if one
exists.
getConfigurationValue
in interface NotationName
public java.lang.String toString()
NotationName
getConfigurationValue()
.
toString
in interface NotationName
toString
in class java.lang.Object
public static java.lang.String getNotationNameString(java.lang.String k1, java.lang.String k2)
private static void fireEvent(int eventType, NotationName nn)
public static NotationName makeNotation(java.lang.String k1, java.lang.String k2, javax.swing.Icon icon)
public static java.util.ArrayList getAvailableNotations()
public static NotationName findNotation(java.lang.String s)
public boolean equals(NotationName nn)
NotationName
getConfigurationValue().equals(nn.getConfigurationValue())
equals
in interface NotationName
nn
- to compare
public static NotationName getNotation(java.lang.String k1)
public static NotationName getNotation(java.lang.String k1, java.lang.String k2)
public void moduleLoaded(ArgoModuleEvent event)
ArgoModuleEventListener
moduleLoaded
in interface ArgoModuleEventListener
public void moduleUnloaded(ArgoModuleEvent event)
ArgoModuleEventListener
moduleUnloaded
in interface ArgoModuleEventListener
public void moduleEnabled(ArgoModuleEvent event)
ArgoModuleEventListener
moduleEnabled
in interface ArgoModuleEventListener
public void moduleDisabled(ArgoModuleEvent event)
ArgoModuleEventListener
moduleDisabled
in interface ArgoModuleEventListener
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2004 (20040306) | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |