📄 topicbgsound.java
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package biz.tbuy.bbs.bean;import biz.tbuy.bbs.TopicBuilder;import biz.tbuy.bbs.TopicFactory;import biz.tbuy.bbs.TopicModel;import biz.tbuy.common.Constants;import biz.tbuy.common.Utils;import java.util.List;import javax.faces.model.SelectItem;/** * * @author Administrator */public class TopicBgsound extends BaseBean{ private TopicModel _topic; /** Creates a new instance of TopicBgsound */ public TopicBgsound() { _topic = new TopicModel(); } public void setTopic(TopicModel topic) { _topic = topic; } public TopicModel getTopic() { return _topic; } public List<SelectItem> getBgsounds() { return getBBSApplication().getBgsounds(); } // -------------------------------------------------- change bgsound /** * 给主题更换一首背景音乐 * @return */ public String change() { TopicBuilder tBuilder = TopicFactory.newBuilder(_topic); if (tBuilder.changeBgsound(_topic.getMusic())) { Utils.addInfoMessage(getBundle(), "修改背景音乐信息成功!"); return Constants.OUT_SUCCESS; } return Constants.OUT_FAILURE; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -