public class Component extends Object implements IComponent, INotifiable
| Constructor and Description |
|---|
Component() |
Component(String name,
String description) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exec(Object sender,
String command,
Object info)
Sends a command for the object to react
|
String |
getDescription()
Gets the description of this component.
|
String |
getName()
Gets the name of this component.
|
protected void |
setDescription(String description) |
protected void |
setName(String name) |
String |
toString() |
protected void setName(String name)
public String getName()
IComponentgetName in interface IComponentprotected void setDescription(String description)
public String getDescription()
IComponentgetDescription in interface IComponentpublic boolean exec(Object sender, String command, Object info)
INotifiableexec in interface INotifiablecommand - a string identifying the commandinfo - command-specific objectCopyright © 2019. All rights reserved.