audioplayerstate.java
来自「Java与模式 源代码」· Java 代码 · 共 28 行
JAVA
28 行
package com.javapatterns.state.audioplayer;
public abstract class AudioPlayerState
{
protected static AudioPlayerState initialState;
protected static AudioPlayerState playState;
protected static AudioPlayerState stopState;
static
{
playState = new PlayState();
stopState = new StopState();
}
protected AudioPlayer player = null;
public AudioPlayerState() { }
public AudioPlayerState(AudioPlayer aPlayer)
{
player = aPlayer;
}
public void playButton() { }
public void stopButton() { }
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?