⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tvchannel.java

📁 JavaTV Program source code Need to play Windows Media files and streams, mpeg4 video or DVDs in j
💻 JAVA
字号:
/* * Copyright (C) 2005 by Enrico Chiaretti - enrico.chiaretti@gmail.comThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *//* * TvChannel.java * * Created on 2 giugno 2005, 14.06 * Channel class. * the index is the number you want for it on the remote control * the name is the station name (just a description) * the freq is very important, as it is used to set the tuner *//** this is the class implementing the tv channel / station features. * @author Enrico Chiaretti */public class TvChannel {        /** this is the name of the channel / station */        public String name;        /** the progressive index that represent the order in the form */        public Integer index;        /** the frequency of the channel. REQUIRED (by now) */        public Long freq;        /** the number for this station in the channel table. It could be used to set the     * frequency in future releases     */        public String number;    /** the description to stations in the channel table.     */        public String description;        /** Creates a new instance of TvChannel */    public TvChannel() {    }        /** creates a new channel. you can enter the values inline. the parameters are quite     * clear.     * @param aindex value for the index property     * @param aname value for the name property     * @param anumber value for the number property (it is a string!)     * @param afreq value for the freq property     */        public TvChannel(int aindex, String aname, String anumber, String adescr, long afreq)    {        index = new Integer(aindex);        freq = new Long(afreq);        number = anumber;        name = aname;	description = adescr;	System.out.println(index+" "+freq+" "+number+" "+name+" "+description);    }        /** this creates the string to display on the form     * @return returns a string     */        public String toString()    {        return name;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -