You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.5 KiB
50 lines
1.5 KiB
package com.fr.design.actions.community; |
|
|
|
import com.fr.design.i18n.LocaleLinkProvider; |
|
import com.fr.design.menu.MenuKeySet; |
|
import com.fr.design.utils.BrowseUtils; |
|
|
|
import javax.swing.KeyStroke; |
|
import java.awt.event.ActionEvent; |
|
|
|
public class FacebookFansAction extends UpAction { |
|
|
|
/** |
|
* 云中心facebook页在配置文件中对应的配置文件key |
|
*/ |
|
private static final String PROPS_LINK_KEY = "Fine-Design-CloudCenter_FaceBook"; |
|
|
|
/** |
|
* 云中心facebook页默认链接在配置文件中对应的配置文件key |
|
*/ |
|
private static final String PROPS_LINK_KEY_DEFAULT = "Fine-Design-CloudCenter_FaceBook_Default"; |
|
|
|
public FacebookFansAction() { |
|
this.setMenuKeySet(FACEBOOKFANS); |
|
this.setName(getMenuKeySet().getMenuName()); |
|
this.setMnemonic(getMenuKeySet().getMnemonic()); |
|
this.setSmallIcon("/com/fr/design/images/bbs/facebook"); |
|
} |
|
|
|
@Override |
|
public void actionPerformed(ActionEvent arg0) { |
|
BrowseUtils.browser(LocaleLinkProvider.getInstance().getLink(PROPS_LINK_KEY, PROPS_LINK_KEY_DEFAULT)); |
|
} |
|
|
|
public static final MenuKeySet FACEBOOKFANS = new MenuKeySet() { |
|
@Override |
|
public char getMnemonic() { |
|
return 'F'; |
|
} |
|
|
|
@Override |
|
public String getMenuName() { |
|
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Community_FaceBook_Fans"); |
|
} |
|
|
|
@Override |
|
public KeyStroke getKeyStroke() { |
|
return null; |
|
} |
|
}; |
|
}
|
|
|