|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ElementDescription<T extends Element>
Provides information regarding the element, such as its name, a short description, its version number etc.
Those information might or might not be the same as the one provided by the
element information property list and have various usage within the workflow
definition process, but one of the strength of the
ElementDescription
over the element information property list is
that it can provide information specific to an instance of the element, where
the element information property list only provide general information
regarding the Element
class.
Element.getDescription()
,
ActionDescription
,
VariableDescription
Field Summary | |
---|---|
static java.lang.String |
CATEGORY_SEPARATOR
The character used to separated categories in the description file: semicolumn ( ; ) |
static java.lang.String |
DESCRIPTION_CATEGORIES
The categories that the element belongs too. |
static java.lang.String |
DESCRIPTION_COMPANY_NAME
The company that develops the element. |
static java.lang.String |
DESCRIPTION_COMPANY_SUPPORT
The support website. |
static java.lang.String |
DESCRIPTION_COMPANY_WEBSITE
The company website. |
static java.lang.String |
DESCRIPTION_COPYRIGHT
The copyright of the element. |
static java.lang.String |
DESCRIPTION_ICON
The icon ressource representing the element. |
static java.lang.String |
DESCRIPTION_SUMMARY
A summary of what the element is doing. |
static java.lang.String |
DESCRIPTION_TITLE
The title of the element. |
static java.lang.String |
DESCRIPTION_VERSION
The version of the element. |
static java.lang.String |
TYPE
The type of the element. |
Method Summary | |
---|---|
void |
addElementDescriptionChangeListener(ElementDescriptionChangeListener listener)
Adds a element description change listener. |
Category[] |
getCategories()
Returns the categories associated to the element. |
java.lang.String |
getDescription(java.lang.String key)
Returns the information associated to the given key. |
javax.swing.ImageIcon |
getIcon()
Returns the icon associated to the element. |
Element |
newElementInstance(Workflow workflow)
Creates and returns a new instance of the element described. |
void |
removeElementDescriptionChangeListener(ElementDescriptionChangeListener listener)
Removes a element description change listener. |
Methods inherited from interface com.jbbres.lib.search.Searchable |
---|
getSearchableValue |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Field Detail |
---|
static final java.lang.String CATEGORY_SEPARATOR
;
)
static final java.lang.String TYPE
"action"
and "variable"
static final java.lang.String DESCRIPTION_TITLE
static final java.lang.String DESCRIPTION_SUMMARY
static final java.lang.String DESCRIPTION_COMPANY_NAME
static final java.lang.String DESCRIPTION_COMPANY_WEBSITE
static final java.lang.String DESCRIPTION_COMPANY_SUPPORT
static final java.lang.String DESCRIPTION_VERSION
static final java.lang.String DESCRIPTION_COPYRIGHT
static final java.lang.String DESCRIPTION_ICON
The value associated to this key should be a String
giving
the addresse of the image ressource. The address can be either relative
from the properties file, either absolute.
If the name begins with a '/' ('/'), then the absolute name of the
resource is the portion of the name following the '/'. Otherwise, the
absolute name is of the following form:
modified_package_name/name
Where the
modified_package_name is the package name of this object with '/'
substituted for '.' ('.').
static final java.lang.String DESCRIPTION_CATEGORIES
;
)
Method Detail |
---|
Element newElementInstance(Workflow workflow)
This methods should not add the new element to the given workflow.
Action(s) takes care of calling the appropried
Workflow.add(Element)
method.
workflow
- - the workflow that will own the element
java.lang.String getDescription(java.lang.String key)
key
- - the key
javax.swing.ImageIcon getIcon()
Category[] getCategories()
void addElementDescriptionChangeListener(ElementDescriptionChangeListener listener)
listener
- - the listenerElementDescriptionChangeListener
void removeElementDescriptionChangeListener(ElementDescriptionChangeListener listener)
listener
- - the listenerElementDescriptionChangeListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |