|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdasher.CDasherComponent
dasher.CDasherModule
public class CDasherModule
A Module is a richer extension of a Component. It supplies all the facilities of a Component, including registration for event listening and access to a settings store, and adds some module-specific functions, including:
| Field Summary | |
|---|---|
private long |
m_iID
This module's unique identifier |
private int |
m_iRefCount
Current reference count for this module |
private int |
m_iType
This module's type number |
private java.lang.String |
m_szName
Module name |
| Fields inherited from class dasher.CDasherComponent |
|---|
m_EventHandler, m_SettingsStore |
| Constructor Summary | |
|---|---|
CDasherModule(CEventHandler EventHandler,
CSettingsStore SettingsStore,
long iID,
int iType,
java.lang.String szName)
Creates a new module, passing the appropriate parameters to DasherComponent's constructor. |
|
| Method Summary | |
|---|---|
long |
GetID()
Gets this module's unique ID |
java.lang.String |
GetName()
Gets this module's name |
int |
GetType()
Gets this module's type ID |
void |
Ref()
Increments this module's reference count |
void |
Unref()
Decrements this module's reference count; if this becomes zero, unregisters the module with the event handler so that it can be garbage collected. |
| Methods inherited from class dasher.CDasherComponent |
|---|
GetBoolParameter, GetLongParameter, GetParameterName, GetParameterType, GetStringParameter, HandleEvent, InsertEvent, SetBoolParameter, SetLongParameter, SetStringParameter, UnregisterComponent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private long m_iID
private int m_iType
private int m_iRefCount
private java.lang.String m_szName
| Constructor Detail |
|---|
public CDasherModule(CEventHandler EventHandler, CSettingsStore SettingsStore, long iID, int iType, java.lang.String szName)
EventHandler - EventHandler with which this module
should register itselfSettingsStore - SettingsStore to useiID - Unique IDiType - Type numberszName - Friendly, preferably unique, name| Method Detail |
|---|
public long GetID()
public int GetType()
public java.lang.String GetName()
public void Ref()
public void Unref()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||