|
|||||||||
| Home >> All >> org >> javahispano >> canyamo >> core >> [ command overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.javahispano.canyamo.core.command
Class AbstractCommand

java.lang.Objectorg.javahispano.canyamo.core.command.AbstractCommand
- All Implemented Interfaces:
- org.javahispano.canyamo.core.action.ActionListener, Command
- public abstract class AbstractCommand
- extends java.lang.Object
- implements Command
- extends java.lang.Object
Description of the Class
| Field Summary | |
protected org.javahispano.canyamo.core.application.Application |
app
Description of the Field |
protected java.lang.String |
name
Description of the Field |
| Constructor Summary | |
AbstractCommand()
|
|
| Method Summary | |
void |
addProperty(java.lang.String name,
java.lang.String value)
Adds a feature to the Property attribute of the AbstractDisplayer object |
protected void |
debug(java.lang.String message)
Logs a message in log tool only if in "debug mode" This mode can be set in CanyamoLog TO DO Actually this "debug mode" is hard-coded, it should be usefull to make it configurable |
protected void |
error(java.lang.String message)
Logs a message in log tool with "error" priority |
org.javahispano.canyamo.core.application.Application |
getApplication()
Gets the Application to which this displayer belong to |
java.lang.String |
getDescription()
Returns a description of this command |
java.lang.String |
getName()
Returns the name of this command |
void |
init()
Initialites this command |
protected void |
log(java.lang.String message)
Logs a message in log tool with "normal" priority |
abstract void |
run()
Main processing method for the AbstractCommand object |
void |
setApplication(org.javahispano.canyamo.core.application.Application app)
Sets the Application to which this displayer belong to |
void |
setName(java.lang.String name)
Sets the name of this command |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
app
protected org.javahispano.canyamo.core.application.Application app
- Description of the Field
name
protected java.lang.String name
- Description of the Field
| Constructor Detail |
AbstractCommand
public AbstractCommand()
| Method Detail |
setName
public void setName(java.lang.String name)
setApplication
public void setApplication(org.javahispano.canyamo.core.application.Application app)
- Sets the
Applicationto which this displayer belong to- Specified by:
setApplicationin interfaceCommand
getName
public java.lang.String getName()
getDescription
public java.lang.String getDescription()
- Returns a description of this command
- Specified by:
getDescriptionin interfaceCommand
getApplication
public org.javahispano.canyamo.core.application.Application getApplication()
- Gets the
Applicationto which this displayer belong to- Specified by:
getApplicationin interfaceCommand
init
public void init()
run
public abstract void run()
- Main processing method for the AbstractCommand object
- Specified by:
runin interfaceorg.javahispano.canyamo.core.action.ActionListener
addProperty
public void addProperty(java.lang.String name, java.lang.String value)
- Adds a feature to the Property attribute of the AbstractDisplayer object
- Specified by:
addPropertyin interfaceCommand
- Since:
log
protected void log(java.lang.String message)
- Logs a message in log tool with "normal" priority
error
protected void error(java.lang.String message)
- Logs a message in log tool with "error" priority
debug
protected void debug(java.lang.String message)
- Logs a message in log tool only if in "debug mode"
This mode can be set inCanyamoLog
TO DO
Actually this "debug mode" is hard-coded, it should be usefull to make it configurable
|
|||||||||
| Home >> All >> org >> javahispano >> canyamo >> core >> [ command overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.javahispano.canyamo.core.command.AbstractCommand