//JAVA TO C# CONVERTER WARNING: 'final' parameters are ignored unless the option to convert to C# 7.2 'in' parameters is selected: //ORIGINAL LINE: public org.pushingpixels.flamingo.api.common.popup.JPopupPanel getPopupPanel(final org.pushingpixels.flamingo.api.common.JCommandButton commandButton) public JPopupPanel getPopupPanel(JCommandButton commandButton) { if (appMenuButton.Parent is JRibbon) { //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.pushingpixels.flamingo.api.ribbon.JRibbon ribbon = (org.pushingpixels.flamingo.api.ribbon.JRibbon)appMenuButton.getParent(); JRibbon ribbon = (JRibbon)appMenuButton.Parent; RibbonApplicationMenu ribbonApplicationMenu = jRibbon.ApplicationMenu; //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final CostOSRibbonApplicationMenuPopupPanel menuPopupPanel = new CostOSRibbonApplicationMenuPopupPanel(appMenuButton, ribbonApplicationMenu) CostOSRibbonApplicationMenuPopupPanel menuPopupPanel = new CostOSRibbonApplicationMenuPopupPanelAnonymousInnerClass(this, appMenuButton, ribbonApplicationMenu); costOSRibbonApplicationMenuPopupPanel.Customizer = new PopupPanelCustomizerAnonymousInnerClass(this); return(costOSRibbonApplicationMenuPopupPanel); } return(null); }
protected internal virtual void processPopupAction() { bool @bool = false; if (this.commandButton is JCommandButton) { @bool = ((JCommandButton)this.commandButton).PopupModel.PopupShowing; } PopupPanelManager.defaultManager().hidePopups(this.commandButton); if (!(this.commandButton is JCommandButton)) { return; } if (@bool) { return; } JCommandButton jCommandButton = (JCommandButton)this.commandButton; PopupPanelCallback popupPanelCallback = jCommandButton.PopupCallback; //JAVA TO C# CONVERTER WARNING: The original Java variable was marked 'final': //ORIGINAL LINE: final org.pushingpixels.flamingo.api.common.popup.JPopupPanel popupPanel = (popupPanelCallback != null) ? popupPanelCallback.getPopupPanel(jCommandButton) : null; JPopupPanel popupPanel = (popupPanelCallback != null) ? popupPanelCallback.getPopupPanel(jCommandButton) : null; if (jPopupPanel != null) { jPopupPanel.applyComponentOrientation(jCommandButton.ComponentOrientation); SwingUtilities.invokeLater(() => { if (CostOSRibbonApplicationMenuButtonUI.this.commandButton == null || popupPanel == null) { return; } if (!CostOSRibbonApplicationMenuButtonUI.this.commandButton.Showing) { return; } popupPanel.doLayout(); int i = 0; int j = 0; JPopupPanel.PopupPanelCustomizer popupPanelCustomizer = popupPanel.Customizer; bool @bool = CostOSRibbonApplicationMenuButtonUI.this.commandButton.ComponentOrientation.LeftToRight; Dimension dimension = popupPanel.PreferredSize; if (popupPanelCustomizer == null) { switch (CostOSRibbonApplicationMenuButtonUI.null.$SwitchMap$org$pushingpixels$flamingo$api$common$JCommandButton$CommandButtonPopupOrientationKind[((JCommandButton)CostOSRibbonApplicationMenuButtonUI.this.commandButton).PopupOrientationKind.ordinal()]) {
public JPopupPanel getPopupPanel(JCommandButton param2JCommandButton) { return(new BasicRibbonBandUI.CollapsedButtonPopupPanel(popupBand, size)); }