internal GlassPane([In] DashboardFrame obj0, [In] DashboardPanel obj1)
 {
   base.\u002Ector();
   GlassPane glassPane1 = this;
   this.dragType = -1;
   this.areas = (Map) new HashMap();
   this.showGrid = false;
   this.frame = obj0;
   this.panel = obj1;
   this.elementMenu = new JPopupMenu();
   JPopupMenu jpopupMenu1 = this.elementMenu;
   GlassPane glassPane2 = this;
   JMenu jmenu1 = new JMenu("Change to...");
   JMenu jmenu2 = jmenu1;
   this.changeToMenu = jmenu1;
   jpopupMenu1.add((JMenuItem) jmenu2);
   JPopupMenu jpopupMenu2 = this.elementMenu;
   JMenuItem.__\u003Cclinit\u003E();
   JMenuItem jmenuItem1 = new JMenuItem((Action) new GlassPane.PropertiesItemAction(this, "Properties...", (GlassPane\u00241) null));
   jpopupMenu2.add(jmenuItem1);
   JPopupMenu jpopupMenu3 = this.elementMenu;
   JMenuItem.__\u003Cclinit\u003E();
   JMenuItem jmenuItem2 = new JMenuItem((Action) new GlassPane.MoveToBackAction(this, "Send to Back", (GlassPane\u00241) null));
   jpopupMenu3.add(jmenuItem2);
   JPopupMenu jpopupMenu4 = this.elementMenu;
   GlassPane glassPane3 = this;
   JMenuItem.__\u003Cclinit\u003E();
   JMenuItem jmenuItem3 = new JMenuItem((Action) new GlassPane.ResetSizeAction(this, (GlassPane\u00241) null));
   JMenuItem jmenuItem4 = jmenuItem3;
   this.resizeMenu = jmenuItem3;
   jpopupMenu4.add(jmenuItem4);
   JPopupMenu jpopupMenu5 = this.elementMenu;
   JMenuItem.__\u003Cclinit\u003E();
   JMenuItem jmenuItem5 = new JMenuItem((Action) new GlassPane.DeleteItemAction(this));
   jpopupMenu5.add(jmenuItem5);
   ((Component) this).addComponentListener((ComponentListener) new GlassPane\u00241(this));
   ((Component) this).addKeyListener((KeyListener) new GlassPane\u00242(this));
   ((JComponent) this).setOpaque(false);
   ((Component) this).setFocusable(true);
   GlassPane.GlassMouseListener glassMouseListener = new GlassPane.GlassMouseListener(this, (GlassPane\u00241) null);
   ((Component) this).addMouseListener((MouseListener) glassMouseListener);
   ((Component) this).addMouseMotionListener((MouseMotionListener) glassMouseListener);
 }
		/// <summary>
		/// Returns a properly configured <code>PropertyChangeListener</code>
		/// which updates the control as changes to the <code>Action</code> occur.
		/// </summary>
		public PropertyChangeListener createActionChangeListener(JMenuItem @b)
		{
			return default(PropertyChangeListener);
		}
		/// <summary>
		/// Appends the specified menu item to the end of this menu.
		/// </summary>
		public JMenuItem add(JMenuItem @menuItem)
		{
			return default(JMenuItem);
		}
 internal DashboardMenu([In] DashboardFrame obj0, [In] MainPanel obj1)
 {
   base.\u002Ector();
   DashboardMenu dashboardMenu = this;
   JMenu jmenu1 = new JMenu("File");
   JMenuItem jmenuItem1 = new JMenuItem("Open...");
   jmenuItem1.setAccelerator(KeyStroke.getKeyStroke(79, 128));
   ((AbstractButton) jmenuItem1).addActionListener((ActionListener) new DashboardMenu\u00241(this, obj0));
   jmenu1.add(jmenuItem1);
   JMenuItem jmenuItem2 = new JMenuItem("New");
   jmenuItem2.setAccelerator(KeyStroke.getKeyStroke(78, 128));
   ((AbstractButton) jmenuItem2).addActionListener((ActionListener) new DashboardMenu\u00242(this, obj1));
   jmenu1.add(jmenuItem2);
   JMenuItem jmenuItem3 = new JMenuItem("Save");
   jmenuItem3.setAccelerator(KeyStroke.getKeyStroke(83, 128));
   ((AbstractButton) jmenuItem3).addActionListener((ActionListener) new DashboardMenu\u00243(this, obj0));
   jmenu1.add(jmenuItem3);
   JMenuItem jmenuItem4 = new JMenuItem("Save As...");
   jmenuItem4.setAccelerator(KeyStroke.getKeyStroke(83, 192));
   ((AbstractButton) jmenuItem4).addActionListener((ActionListener) new DashboardMenu\u00244(this, obj0));
   jmenu1.add(jmenuItem4);
   JMenuItem jmenuItem5 = new JMenuItem("Preferences");
   ((AbstractButton) jmenuItem5).addActionListener((ActionListener) new DashboardMenu\u00245(this, obj0));
   jmenu1.add(jmenuItem5);
   JMenuItem jmenuItem6 = new JMenuItem("Exit");
   ((AbstractButton) jmenuItem6).addActionListener((ActionListener) new DashboardMenu\u00246(this, obj0));
   jmenu1.add(jmenuItem6);
   JMenu jmenu2 = new JMenu("View");
   JCheckBoxMenuItem jcheckBoxMenuItem1 = new JCheckBoxMenuItem("Editable");
   ((AbstractButton) jcheckBoxMenuItem1).addActionListener((ActionListener) new DashboardMenu\u00247(this));
   ((JMenuItem) jcheckBoxMenuItem1).setAccelerator(KeyStroke.getKeyStroke(69, 128));
   jmenu2.add((JMenuItem) jcheckBoxMenuItem1);
   JCheckBoxMenuItem jcheckBoxMenuItem2 = new JCheckBoxMenuItem("Edit Subsystems");
   ((AbstractButton) jcheckBoxMenuItem2).addActionListener((ActionListener) new DashboardMenu\u00248(this));
   ((JMenuItem) jcheckBoxMenuItem2).setAccelerator(KeyStroke.getKeyStroke(69, 192));
   ((AbstractButton) jcheckBoxMenuItem2).doClick();
   jmenu2.add((JMenuItem) jcheckBoxMenuItem2);
   JMenuItem jmenuItem7 = new JMenuItem("Reset LiveWindow");
   ((AbstractButton) jmenuItem7).addActionListener((ActionListener) new DashboardMenu\u00249(this));
   jmenuItem7.setAccelerator(KeyStroke.getKeyStroke(82, 128));
   Robot.getLiveWindow().getSubTable("~STATUS~").addTableListener("LW Enabled", (ITableListener) new DashboardMenu\u002410(this, obj0, obj1, jmenuItem7), true);
   jmenu2.add(jmenuItem7);
   JMenu jmenu3 = new JMenu("Add...");
   Iterator iterator = DisplayElementRegistry.getStaticWidgets().iterator();
   while (iterator.hasNext())
   {
     Class clazz = (Class) iterator.next();
     JMenuItem.__\u003Cclinit\u003E();
     JMenuItem jmenuItem8 = new JMenuItem(DisplayElement.getName(clazz));
     ((AbstractButton) jmenuItem8).addActionListener((ActionListener) new DashboardMenu\u002411(this, clazz, obj1));
     jmenu3.add(jmenuItem8);
   }
   jmenu2.add((JMenuItem) jmenu3);
   JMenu jmenu4 = new JMenu("Reveal...");
   jmenu2.addMenuListener((MenuListener) new DashboardMenu\u002412(this, jmenu4, obj1));
   jmenu2.add((JMenuItem) jmenu4);
   JMenuItem jmenuItem9 = new JMenuItem("Remove Unused");
   ((AbstractButton) jmenuItem9).addActionListener((ActionListener) new DashboardMenu\u002413(this));
   jmenu2.add(jmenuItem9);
   this.add(jmenu1);
   this.add(jmenu2);
 }
 private JMenuBar createMenuBar([In] ResourceBundle obj0)
 {
   JMenuBar jmenuBar = new JMenuBar();
   string string1 = obj0.getString("system-frame.menu.file");
   Character character1 = (Character) obj0.getObject("system-frame.menu.file.mnemonic");
   JMenu jmenu1 = new JMenu(string1, true);
   ((AbstractButton) jmenu1).setMnemonic(character1.charValue());
   string string2 = obj0.getString("system-frame.menu.file.close");
   Character character2 = (Character) obj0.getObject("system-frame.menu.file.close.mnemonic");
   JMenuItem.__\u003Cclinit\u003E();
   JMenuItem jmenuItem1 = new JMenuItem(string2, (int) character2.charValue());
   ((AbstractButton) jmenuItem1).setActionCommand("CLOSE");
   ((AbstractButton) jmenuItem1).addActionListener((ActionListener) this);
   jmenu1.add(jmenuItem1);
   string string3 = obj0.getString("system-frame.menu.edit");
   Character character3 = (Character) obj0.getObject("system-frame.menu.edit.mnemonic");
   JMenu jmenu2 = new JMenu(string3);
   ((AbstractButton) jmenu2).setMnemonic(character3.charValue());
   string string4 = obj0.getString("system-frame.menu.edit.copy");
   Character character4 = (Character) obj0.getObject("system-frame.menu.edit.copy.mnemonic");
   JMenuItem.__\u003Cclinit\u003E();
   JMenuItem jmenuItem2 = new JMenuItem(string4, (int) character4.charValue());
   ((AbstractButton) jmenuItem2).setActionCommand("COPY");
   ((AbstractButton) jmenuItem2).addActionListener((ActionListener) this);
   jmenu2.add(jmenuItem2);
   jmenuBar.add(jmenu1);
   jmenuBar.add(jmenu2);
   return jmenuBar;
 }
		/// <summary>
		/// Removes the specified menu item from this menu.
		/// </summary>
		public void remove(JMenuItem @item)
		{
		}
		/// <summary>
		/// Inserts the specified <code>JMenuitem</code> at a given position.
		/// </summary>
		public JMenuItem insert(JMenuItem @mi, int @pos)
		{
			return default(JMenuItem);
		}
 /// <summary>
 /// Appends a menu item to the end of this menu.
 /// </summary>
 public JMenuItem add(JMenuItem @menuItem)
 {
     return(default(JMenuItem));
 }
 /// <summary>
 /// Removes the specified menu item from this menu.
 /// </summary>
 public void remove(JMenuItem @item)
 {
 }
Exemple #10
0
 /// <summary>
 /// Inserts the specified <code>JMenuitem</code> at a given position.
 /// </summary>
 public JMenuItem insert(JMenuItem @mi, int @pos)
 {
     return(default(JMenuItem));
 }
Exemple #11
0
 /// <summary>
 /// Returns a properly configured <code>PropertyChangeListener</code>
 /// which updates the control as changes to the <code>Action</code> occur.
 /// </summary>
 public PropertyChangeListener createActionChangeListener(JMenuItem @b)
 {
     return(default(PropertyChangeListener));
 }
 protected internal override JPopupMenu createPopupMenu(bool properties, bool save, bool print, bool zoom)
 {
   int num1 = properties ? 1 : 0;
   int num2 = save ? 1 : 0;
   int num3 = print ? 1 : 0;
   int num4 = zoom ? 1 : 0;
   JPopupMenu popupMenu = base.createPopupMenu(num1 != 0, num2 != 0, num3 != 0, num4 != 0);
   int num5 = this.getPopupMenuItem(popupMenu, "Zoom In");
   int num6 = this.getPopupMenuItem(popupMenu, "Zoom Out");
   int num7 = this.getPopupMenuItem(popupMenu, "Auto Range");
   if (num4 != 0)
   {
     JMenuItem jmenuItem1 = new JMenuItem("Zoom In");
     ((AbstractButton) jmenuItem1).setActionCommand("Polar Zoom In");
     ((AbstractButton) jmenuItem1).addActionListener((ActionListener) this);
     JMenuItem jmenuItem2 = new JMenuItem("Zoom Out");
     ((AbstractButton) jmenuItem2).setActionCommand("Polar Zoom Out");
     ((AbstractButton) jmenuItem2).addActionListener((ActionListener) this);
     JMenuItem jmenuItem3 = new JMenuItem("Auto Range");
     ((AbstractButton) jmenuItem3).setActionCommand("Polar Auto Range");
     ((AbstractButton) jmenuItem3).addActionListener((ActionListener) this);
     if (num5 != -1)
       popupMenu.remove(num5);
     else
       num5 = ((Container) popupMenu).getComponentCount() - 1;
     ((Container) popupMenu).add((Component) jmenuItem1, num5);
     if (num6 != -1)
       popupMenu.remove(num6);
     else
       num6 = num5 + 1;
     ((Container) popupMenu).add((Component) jmenuItem2, num6);
     if (num7 != -1)
       popupMenu.remove(num7);
     else
       num7 = num6 + 1;
     ((Container) popupMenu).add((Component) jmenuItem3, num7);
   }
   return popupMenu;
 }
Exemple #13
0
 /**
  * Creates a new menu item.
  * @param label the label
  * @param cmd the action command
  * @param l the action listener
  */
 private JMenuItem createMenuItem(String label, String cmd, ActionListener l)
 {
     JMenuItem mi = new JMenuItem(label);
     mi.setActionCommand(cmd);
     mi.addActionListener(l);
     return mi;
 }