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.
47 lines
1.2 KiB
47 lines
1.2 KiB
package com.fr.design.actions.community; |
|
|
|
import com.fr.base.svg.IconUtils; |
|
import com.fr.design.menu.MenuKeySet; |
|
import com.fr.design.utils.BrowseUtils; |
|
import com.fr.general.CloudCenter; |
|
|
|
import javax.swing.KeyStroke; |
|
import java.awt.event.ActionEvent; |
|
|
|
/** |
|
* Created by XINZAI on 2018/8/23. |
|
*/ |
|
public class CenterAction extends UpAction{ |
|
public CenterAction() |
|
{ |
|
this.setMenuKeySet(CENTER); |
|
this.setName(getMenuKeySet().getMenuName()); |
|
this.setMnemonic(getMenuKeySet().getMnemonic()); |
|
this.setSmallIcon("/com/fr/design/images/bbs/center"); |
|
|
|
} |
|
|
|
@Override |
|
public void actionPerformed(ActionEvent arg0) |
|
{ |
|
String url = CloudCenter.getInstance().acquireUrlByKind("bbs.center"); |
|
BrowseUtils.browser(url); |
|
|
|
} |
|
public static final MenuKeySet CENTER = new MenuKeySet() { |
|
@Override |
|
public char getMnemonic() { |
|
return 'C'; |
|
} |
|
|
|
@Override |
|
public String getMenuName() { |
|
return com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Basic_Commuinity_Center"); |
|
} |
|
|
|
@Override |
|
public KeyStroke getKeyStroke() { |
|
return null; |
|
} |
|
}; |
|
}
|
|
|