[libbluray-devel] Implement HListElement

hpi1 git at videolan.org
Sun Apr 17 14:54:40 CEST 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Sun Apr 17 00:07:05 2016 +0300| [858b73841c6c959cfbc620fe8a428e910aa8e81e] | committer: hpi1

Implement HListElement

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=858b73841c6c959cfbc620fe8a428e910aa8e81e
---

 src/libbluray/bdj/java/org/havi/ui/HListElement.java |   17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/src/libbluray/bdj/java/org/havi/ui/HListElement.java b/src/libbluray/bdj/java/org/havi/ui/HListElement.java
index 99fb79a..c784d6d 100644
--- a/src/libbluray/bdj/java/org/havi/ui/HListElement.java
+++ b/src/libbluray/bdj/java/org/havi/ui/HListElement.java
@@ -1,6 +1,7 @@
 /*
  * This file is part of libbluray
  * Copyright (C) 2010  William Hahne
+ * Copyright (C) 2016  Petri Hintukainen
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -23,26 +24,30 @@ import java.awt.Image;
 
 public class HListElement {
     public HListElement(String label) {
-        org.videolan.Logger.unimplemented(HListElement.class.getName(), "");
+        this.label = label;
     }
 
     public HListElement(Image icon, String label) {
-        org.videolan.Logger.unimplemented(HListElement.class.getName(), "");
+        this.label = label;
+        this.icon = icon;
     }
 
     public String getLabel() {
-        throw new Error("Not implemented");
+        return label;
     }
 
     public Image getIcon() {
-        throw new Error("Not implemented");
+        return icon;
     }
 
     public void setLabel(String label) {
-        throw new Error("Not implemented");
+        this.label = label;
     }
 
     public void setIcon(Image icon) {
-        throw new Error("Not implemented");
+        this.icon = icon;
     }
+
+    private Image icon = null;
+    private String label = null;
 }



More information about the libbluray-devel mailing list