playlistitem.java

来自「电子工业出版社的<Java案例开发集锦>一书源代码」· Java 代码 · 共 48 行

JAVA
48
字号
package javazoom.jlGui.playlist;

 //PlaylistItem.
public class PlaylistItem
{
	protected String	_name = null;
	protected String	_location = null;
	protected boolean	_isFile = true;
	protected long		_seconds = -1;

	protected PlaylistItem()
	{
	}

	public PlaylistItem(String name, String location, long seconds, boolean isFile)
	{
		_name = name;
		_location = location;
		_seconds = seconds;
		_isFile = isFile;
	}

	public String getName()
	{
		return _name;
	}

	public String getDisplay()
	{
		return _name;
	}

	public String getLocation()
	{
		return _location;
	}

	public boolean isFile()
	{
		return _isFile;
	}

	public long getLength()
	{
		return _seconds;
	}
}

⌨️ 快捷键说明

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