Package zombie.radio.devices
Class DevicePresets
java.lang.Object
zombie.radio.devices.DevicePresets
- All Implemented Interfaces:
java.lang.Cloneable
public class DevicePresets
extends java.lang.Object
implements java.lang.Cloneable
-
Field Summary
Fields Modifier and Type Field Description protected int
maxPresets
protected java.util.ArrayList
presets
-
Constructor Summary
Constructors Constructor Description DevicePresets()
-
Method Summary
Modifier and Type Method Description void
addPreset(java.lang.String string, int int1)
void
clearPresets()
protected java.lang.Object
clone()
int
getMaxPresets()
int
getPresetFreq(int int1)
java.lang.String
getPresetName(int int1)
java.util.ArrayList
getPresets()
KahluaTable
getPresetsLua()
void
load(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1)
void
removePreset(int int1)
void
save(java.nio.ByteBuffer byteBuffer, boolean boolean1)
void
setMaxPresets(int int1)
void
setPreset(int int1, java.lang.String string, int int2)
void
setPresetFreq(int int1, int int2)
void
setPresetName(int int1, java.lang.String string)
void
setPresets(java.util.ArrayList arrayList)
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
maxPresets
protected int maxPresets -
presets
protected java.util.ArrayList presets
-
-
Constructor Details
-
DevicePresets
public DevicePresets()
-
-
Method Details
-
clone
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException- Overrides:
clone
in classjava.lang.Object
- Throws:
java.lang.CloneNotSupportedException
-
getPresetsLua
-
getPresets
public java.util.ArrayList getPresets() -
setPresets
public void setPresets(java.util.ArrayList arrayList) -
getMaxPresets
public int getMaxPresets() -
setMaxPresets
public void setMaxPresets(int int1) -
addPreset
public void addPreset(java.lang.String string, int int1) -
removePreset
public void removePreset(int int1) -
getPresetName
public java.lang.String getPresetName(int int1) -
getPresetFreq
public int getPresetFreq(int int1) -
setPresetName
public void setPresetName(int int1, java.lang.String string) -
setPresetFreq
public void setPresetFreq(int int1, int int2) -
setPreset
public void setPreset(int int1, java.lang.String string, int int2) -
clearPresets
public void clearPresets() -
save
public void save(java.nio.ByteBuffer byteBuffer, boolean boolean1) throws java.io.IOException- Throws:
java.io.IOException
-
load
public void load(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1) throws java.io.IOException- Throws:
java.io.IOException
-