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.
46 lines
1.1 KiB
46 lines
1.1 KiB
package com.fr.design.actions.help; |
|
|
|
import com.fr.base.BaseUtils; |
|
import com.fr.design.actions.UpdateAction; |
|
import com.fr.design.menu.MenuKeySet; |
|
import com.fr.general.Inter; |
|
import com.fr.start.ServerStarter; |
|
|
|
import javax.swing.*; |
|
import java.awt.event.ActionEvent; |
|
|
|
|
|
public class WebDemoAction extends UpdateAction { |
|
public WebDemoAction() { |
|
this.setMenuKeySet(PRODUCT_DEMO); |
|
this.setName(getMenuKeySet().getMenuName()); |
|
this.setMnemonic(getMenuKeySet().getMnemonic()); |
|
this.setSmallIcon(BaseUtils.readIcon("/com/fr/design/images/m_help/demo.png")); |
|
} |
|
|
|
/** |
|
* 动作 |
|
* @param evt 事件 |
|
*/ |
|
public void actionPerformed(ActionEvent evt) { |
|
ServerStarter.browserDemoURL(); |
|
} |
|
|
|
public static final MenuKeySet PRODUCT_DEMO = new MenuKeySet() { |
|
@Override |
|
public char getMnemonic() { |
|
return 'D'; |
|
} |
|
|
|
@Override |
|
public String getMenuName() { |
|
return Inter.getLocText("FR-Product_Demo"); |
|
} |
|
|
|
@Override |
|
public KeyStroke getKeyStroke() { |
|
return null; |
|
} |
|
}; |
|
|
|
} |