|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdasher.CModuleFactory
dasher.CWrapperFactory
public class CWrapperFactory
A simple ModuleFactory which simply wraps a pre-existing DasherModule and returns it as the sole module it can produce.
| Field Summary | |
|---|---|
protected int |
m_iCurrentPos
Index of the next module to retrieve |
protected CDasherModule |
m_Module
Module wrapped by this factory |
| Constructor Summary | |
|---|---|
CWrapperFactory(CEventHandler EventHandler,
CSettingsStore SettingsStore,
CDasherModule Module)
Creates a new WrapperFactory wrapping a specified Module. |
|
| Method Summary | |
|---|---|
void |
DestroyFactory()
Unref's our module and deletes its reference. |
CDasherModule |
GetModule(long iID)
Returns our wrapped module if the ID is correct, or null otherwise. |
java.lang.String |
GetName(long iID)
Returns our wrapped module's name if the ID is correct, or "Not implemented" otherwise. |
SFactoryInfo |
GetNext(SFactoryInfo info)
Returns the details of our module with the name "Unknown Module" if this is the first call made to this method, or a copy of the SFactoryInfo fed in if not. |
int |
GetType(long iID)
Returns our wrapped module's type if the ID is correct, or 0 otherwise. |
boolean |
IsMore()
Returns true if no Modules have been retrieved yet |
void |
Start()
Sets m_iCurrentPost to 0 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CDasherModule m_Module
protected int m_iCurrentPos
| Constructor Detail |
|---|
public CWrapperFactory(CEventHandler EventHandler,
CSettingsStore SettingsStore,
CDasherModule Module)
EventHandler - EventHandler with which to register ourselvesSettingsStore - Settings repository to useModule - Module to wrap| Method Detail |
|---|
public void DestroyFactory()
public void Start()
Start in class CModuleFactorypublic boolean IsMore()
IsMore in class CModuleFactorypublic SFactoryInfo GetNext(SFactoryInfo info)
GetNext in class CModuleFactoryinfo - Previous module details
public CDasherModule GetModule(long iID)
GetModule in class CModuleFactoryiID - UID of the required module
public java.lang.String GetName(long iID)
GetName in class CModuleFactoryiID - UID of the requested module
public int GetType(long iID)
GetType in class CModuleFactoryiID - UID of the requested module
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||