|
|
|
package com.fr.design.actions.community;
|
|
|
|
|
|
|
|
import com.fr.design.i18n.LocaleLinkProvider;
|
|
|
|
import com.fr.design.login.AbstractDesignerSSO;
|
|
|
|
import com.fr.design.menu.MenuKeySet;
|
|
|
|
|
|
|
|
import javax.swing.KeyStroke;
|
|
|
|
|
|
|
|
public class QuestionAction extends AbstractDesignerSSO {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 云中心问答页在配置文件中对应的配置文件key
|
|
|
|
*/
|
|
|
|
private static final String PROPS_LINK_KEY = "Fine-Design-CloudCenter_Question";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 云中心问答页默认链接在配置文件中对应的配置文件key
|
|
|
|
*/
|
|
|
|
private static final String PROPS_LINK_KEY_DEFAULT = "Fine-Design-CloudCenter_Question_Default";
|
|
|
|
|
|
|
|
public QuestionAction() {
|
|
|
|
this.setMenuKeySet(QUESTIONS);
|
|
|
|
this.setName(getMenuKeySet().getMenuName());
|
|
|
|
this.setMnemonic(getMenuKeySet().getMnemonic());
|
|
|
|
this.setSmallIcon("/com/fr/design/images/bbs/question");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getJumpUrl() {
|
|
|
|
return LocaleLinkProvider.getInstance().getLink(PROPS_LINK_KEY ,PROPS_LINK_KEY_DEFAULT);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static final MenuKeySet QUESTIONS = new MenuKeySet() {
|
|
|
|
@Override
|
|
|
|
public char getMnemonic() {
|
|
|
|
return 'Q';
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getMenuName() {
|
|
|
|
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Community_Questions");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public KeyStroke getKeyStroke() {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|