📄 audioplayerstate.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -