EAS 如何设置快捷键 弹出窗口

 AbstractHidedMenuItem hideMenu= new AbstractHidedMenuItem("F9") {
   /**
    *
    */
   private static final long serialVersionUID = -5490932560824525883L;

   public void action_actionPerformed() {
    try {
     
        Map map=new UIContext(this);//可以在Map  里面设置要显示的数据
        
        IUIWindow uiWindow=null;
        String ErrorViewUIClass = "com.kingdee.eas.custom.zzdb.client.SaoMiaoUI";
        // ErrorViewUIClass  为弹出提示框具体路径
        try {
         uiWindow = (UIModelDialog) UIFactory.createUIFactory(UIFactoryName.MODEL).create(
        ErrorViewUIClass, map, null, OprtState.VIEW);
         SaoMiaoUI evi = (SaoMiaoUI) uiWindow.getUIObject();
         
          //  evi.setZzListUI(getLisui());
         uiWindow.show();

     } catch (Exception e2) {
      e2.printStackTrace();
     }
     
    } catch (Exception e) {
     SysUtil.abort(e);
    }
   }
  };
  hideMenu.setVisible(true);
  hideMenu.setText("xxxx");
  hideMenu.setEnabled(true);
  hideMenu.setPreferredSize(new Dimension(100, 23));
  this.menuView.add(hideMenu);

你可能感兴趣的:(eas)