[libbluray-devel] org.havi.ui.event: add toString() to events
hpi1
git at videolan.org
Mon May 2 10:29:59 CEST 2016
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sat Apr 30 16:55:38 2016 +0300| [a26dc8df25ff1797f0bb06c1d569809339c4bef2] | committer: hpi1
org.havi.ui.event: add toString() to events
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=a26dc8df25ff1797f0bb06c1d569809339c4bef2
---
.../bdj/java/org/havi/ui/event/HBackgroundImageEvent.java | 4 ++++
src/libbluray/bdj/java/org/havi/ui/event/HItemEvent.java | 6 +++++-
src/libbluray/bdj/java/org/havi/ui/event/HRcEvent.java | 6 ++++++
3 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/src/libbluray/bdj/java/org/havi/ui/event/HBackgroundImageEvent.java b/src/libbluray/bdj/java/org/havi/ui/event/HBackgroundImageEvent.java
index cd5dea0..0223bc4 100644
--- a/src/libbluray/bdj/java/org/havi/ui/event/HBackgroundImageEvent.java
+++ b/src/libbluray/bdj/java/org/havi/ui/event/HBackgroundImageEvent.java
@@ -37,6 +37,10 @@ public class HBackgroundImageEvent extends EventObject {
return id;
}
+ public String toString() {
+ return getClass().getName() + "[source=" + source + ",id=" + id + "]";
+ }
+
public static final int BACKGROUNDIMAGE_FIRST = 1;
public static final int BACKGROUNDIMAGE_LOADED = 1;
public static final int BACKGROUNDIMAGE_FILE_NOT_FOUND = 2;
diff --git a/src/libbluray/bdj/java/org/havi/ui/event/HItemEvent.java b/src/libbluray/bdj/java/org/havi/ui/event/HItemEvent.java
index 65e8ad0..a211f56 100644
--- a/src/libbluray/bdj/java/org/havi/ui/event/HItemEvent.java
+++ b/src/libbluray/bdj/java/org/havi/ui/event/HItemEvent.java
@@ -34,6 +34,10 @@ public class HItemEvent extends AWTEvent {
return item;
}
+ public String toString() {
+ return getClass().getName() + "[source=" + source + ",id=" + id + ",item=" + item + "]";
+ }
+
public static final int ITEM_FIRST = HAdjustmentEvent.ADJUST_LAST + 1;
public static final int ITEM_START_CHANGE = ITEM_FIRST;
public static final int ITEM_TOGGLE_SELECTED = ITEM_FIRST + 1;
@@ -50,6 +54,6 @@ public class HItemEvent extends AWTEvent {
public static final int ITEM_END_CHANGE = ITEM_FIRST + 12;
public static final int ITEM_LAST = ITEM_FIRST + 12;
- private Object item;
+ private final Object item;
private static final long serialVersionUID = -487680187698958380L;
}
diff --git a/src/libbluray/bdj/java/org/havi/ui/event/HRcEvent.java b/src/libbluray/bdj/java/org/havi/ui/event/HRcEvent.java
index 3c9aa8e..d14ca8c 100644
--- a/src/libbluray/bdj/java/org/havi/ui/event/HRcEvent.java
+++ b/src/libbluray/bdj/java/org/havi/ui/event/HRcEvent.java
@@ -33,6 +33,12 @@ public class HRcEvent extends KeyEvent {
super(source, id, when, modifiers, keyCode, keyChar);
}
+ public String toString() {
+ return getClass().getName() + "[source=" + this.source + ",id=" + getID() +
+ ",when=" + getWhen() + ",modifiers=" + getModifiers() +
+ ",keyCode=" + getKeyCode() + ",keyChar=" + getKeyChar() + "]";
+ }
+
public static final int RC_FIRST = 400;
public static final int VK_COLORED_KEY_0 = 403;
public static final int VK_COLORED_KEY_1 = VK_COLORED_KEY_0 + 1;
More information about the libbluray-devel
mailing list