Android Open Source - Android-NFC-WiFi-Controller Code Event From Project Back to project page Android-NFC-WiFi-Controller .
License The source code is released under:
MIT License
If you think the Android project Android-NFC-WiFi-Controller listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code package sanchezsobrino.multimedia.anwc.business;
/ / f r o m w w w . j a v a 2 s . c o m
import java.util.HashMap;
import java.util.Map;
public enum CodeEvent {
UNKNOWN(-1), ARRIBA(0), ABAJO(1), START_PRESENTATION(2), STOP_PRESENTATION(3), QUIT(4), IZQUIERDA(5), DERECHA(6);
private int code;
private CodeEvent(int c) {
code = c;
}
private static final Map<Integer , CodeEvent> intToTypeMap = new HashMap<Integer , CodeEvent>();
static {
for (CodeEvent type : CodeEvent.values()) {
intToTypeMap.put(type.code, type);
}
}
public static CodeEvent fromInt(int i) {
CodeEvent type = intToTypeMap.get(Integer.valueOf(i));
if (type == null)
return CodeEvent.UNKNOWN;
return type;
}
public static int fromCodeEvent(CodeEvent event) {
return event.code;
}
}
Java Source Code List com.dm.zbar.android.scanner.CameraPreview.java com.dm.zbar.android.scanner.ZBarConstants.java com.dm.zbar.android.scanner.ZBarScannerActivity.java sanchezsobrino.multimedia.anwc.CodeEvent.java sanchezsobrino.multimedia.anwc.ConnectedActivity.java sanchezsobrino.multimedia.anwc.ControlActivity.java sanchezsobrino.multimedia.anwc.MainActivity.java sanchezsobrino.multimedia.anwc.NfcUtils.java sanchezsobrino.multimedia.anwc.business.AboutMenuItemListener.java sanchezsobrino.multimedia.anwc.business.ChoosePortDialogListener.java sanchezsobrino.multimedia.anwc.business.CodeEvent.java sanchezsobrino.multimedia.anwc.business.CustomQRCode.java sanchezsobrino.multimedia.anwc.business.ExitMenuItemListener.java sanchezsobrino.multimedia.anwc.business.InstructionsMenuItemListener.java sanchezsobrino.multimedia.anwc.business.KeySimulator.java sanchezsobrino.multimedia.anwc.business.LocalizedString.java sanchezsobrino.multimedia.anwc.business.TCPServer.java sanchezsobrino.multimedia.anwc.persistence.LocalizedStringManager.java sanchezsobrino.multimedia.anwc.presentation.ChoosePortDialog.java sanchezsobrino.multimedia.anwc.presentation.LogPane.java sanchezsobrino.multimedia.anwc.presentation.MainWindow.java