1 /* 2 * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 package com.sun.swingset3.demos.table; 25 26 import java.net.URI; 27 import java.util.ArrayList; 28 import java.util.List; 29 30 /** 31 * 32 * @author aim 33 */ 34 public class OscarCandidate { 35 36 private String category; 37 private Integer year; 38 private boolean winner = false; 39 private String movie; 40 private URI imdbURI; 41 private final ArrayList<String> persons = new ArrayList<String>(); 42 43 /** 44 * Creates a new instance of OscarCandidate 45 */ OscarCandidate(String category)46 public OscarCandidate(String category) { 47 this.category = category; 48 } 49 getCategory()50 public String getCategory() { 51 return category; 52 } 53 setCategory(String category)54 public void setCategory(String category) { 55 this.category = category; 56 } 57 getYear()58 public Integer getYear() { 59 return year; 60 } 61 setYear(Integer year)62 public void setYear(Integer year) { 63 this.year = year; 64 } 65 isWinner()66 public boolean isWinner() { 67 return winner; 68 } 69 setWinner(boolean winner)70 public void setWinner(boolean winner) { 71 this.winner = winner; 72 } 73 getMovieTitle()74 public String getMovieTitle() { 75 return movie; 76 } 77 setMovieTitle(String movie)78 public void setMovieTitle(String movie) { 79 this.movie = movie; 80 } 81 getIMDBMovieURI()82 public URI getIMDBMovieURI() { 83 return imdbURI; 84 } 85 setIMDBMovieURI(URI uri)86 public void setIMDBMovieURI(URI uri) { 87 this.imdbURI = uri; 88 } 89 getPersons()90 public List<String> getPersons() { 91 return persons; 92 } 93 94 95 } 96