com.confusionists.mjdjApi.midiDevice
Class AbstractDeviceWrapper

java.lang.Object
  extended by com.confusionists.mjdjApi.midiDevice.AbstractDeviceWrapper
All Implemented Interfaces:
DeviceWrapper
Direct Known Subclasses:
AbstractReceiverDeviceWrapper, AbstractTransmitterDeviceWrapper

public abstract class AbstractDeviceWrapper
extends java.lang.Object
implements DeviceWrapper

Default base class for ReceiverDeviceWrapper and TransmitterDeviceWrapper. Subclasses should extend one of those two.

Author:
DanielRosenstark [at_sign] confusionists.com

Constructor Summary
AbstractDeviceWrapper()
           
 
Method Summary
 MjdjService getService()
           
 boolean isActive()
           
 void setActive(boolean active)
           
 void setService(MjdjService service)
           
 void toggleUi()
          Implementers can just do nothing in this method if there is no UI to show
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.confusionists.mjdjApi.midiDevice.DeviceWrapper
close, getName, open
 

Constructor Detail

AbstractDeviceWrapper

public AbstractDeviceWrapper()
Method Detail

setService

public void setService(MjdjService service)
Specified by:
setService in interface DeviceWrapper

getService

public MjdjService getService()
Specified by:
getService in interface DeviceWrapper

setActive

public void setActive(boolean active)
Specified by:
setActive in interface DeviceWrapper

isActive

public boolean isActive()
Specified by:
isActive in interface DeviceWrapper

toString

public java.lang.String toString()
Specified by:
toString in interface DeviceWrapper
Overrides:
toString in class java.lang.Object

toggleUi

public void toggleUi()
Description copied from interface: DeviceWrapper
Implementers can just do nothing in this method if there is no UI to show

Specified by:
toggleUi in interface DeviceWrapper