c

org.nlogo.app

AppTabManager

class AppTabManager extends AnyRef

Source
AppTabManager.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AppTabManager
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AppTabManager(appTabsPanel: Tabs, codeTabsPanelOption: Option[CodeTabsPanel])

Value Members

  1. def __PrintHideUndoMenuCounts(): Unit
  2. def __PrintStateInfo(previousTab: Component, currentTab: Component): Unit
  3. def __PrintWindowEventInfo(e: WindowEvent): Unit
  4. def __countMenuItembyNameAndMenuName(menuName: String, menuItemName: String): Int
  5. def __getMenuItembyName(menu: JMenu, menuItemName: String): Option[JMenuItem]
  6. def __getMenuItembyNameAndMenuName(menuName: String, menuItemName: String): Option[JMenuItem]
  7. def __getSimpleName(c: Any): String
  8. def __printAllTabs(): Unit
  9. def __printAppFrameInputActionMaps(): Unit
  10. def __printAppFrameInputMap(): Unit
  11. def __printAppMenuAcceleratorsByName(menuName: String): Unit
  12. def __printAppMenuBar(): Unit
  13. def __printAppMenuBarAccelerators(): Unit
  14. def __printAppMenuByName(menuName: String): Unit
  15. def __printFocusOwner(topContainer: JFrame, fullInfo: Boolean): Unit
  16. def __printFocusOwner(topContainer: JFrame): Unit
  17. def __printInputActionMaps(component: JComponent): Unit
  18. def __printInputMap(component: JComponent): Unit
  19. def __printMenuAccelerators(menu: JMenu): Unit
  20. def __printMenuItem(menuItem: JMenuItem, level: Int): Unit
  21. def __printMenuItembyNameAndMenuName(menuName: String, menuItemName: String): Unit
  22. def __printMenuItems(menu: JMenu, level: Int): Unit
  23. def __printOptionSwingObject(obj: Option[Component], description: String): Unit
  24. def __printSeparateCodeFrameInputActionMaps(): Unit
  25. def __printSeparateCodeFrameInputMap(): Unit
  26. def __printSwingObject(obj: Component, description: String): Unit
  27. def __printTabsMenuActions(): Unit
  28. def __printTabsOfTabsPanel(pane: JTabbedPane): Unit
  29. def addAppFrameKeyStroke(mapKey: KeyStroke, action: Action, actionName: String): Unit
  30. def addCodeTabContainerKeyStroke(mapKey: KeyStroke, action: Action, actionName: String): Unit
  31. def addComponentKeyStroke(component: JComponent, mapKey: KeyStroke, action: Action, actionName: String): Unit
  32. def addNewTab(tab: Component, title: String = null, icon: Icon = null, tip: String = null): Unit

    Adds a Component to the appropriate NetLogo JTabbedPane.

    Adds a Component to the appropriate NetLogo JTabbedPane. Also adds an entry to the Tabs Menu If a separate code window exists, a CodeTab will be added to its JTabbedPane, Otherwise the Component will be added to the Application Window JTabbedPane. AAB 10/2020. New Components appear to the right of previous Components of the same category non-CodeTabs or CodeTabs.

    tab

    the Component to add

    title

    the title of the tab; may be null

    icon

    the icon for the tab; may be null

    tip

    the associated tooltip

  33. val appContentPane: JComponent
  34. val appTabsPanel: Tabs
  35. var codeTabsPanelOption: Option[CodeTabsPanel]
  36. def combinedIndexFromOwnerAndIndex(tabOwner: AbstractTabsPanel, index: Int): Int
  37. def copyMenuAccelerators(menu: JMenu): Unit
  38. def copyMenuAcceleratorsByName(menuName: String): Unit
  39. def copyMenuBarAccelerators(): Unit
  40. def createCodeTabAccelerators(): Unit
  41. var dirtyMonitor: DirtyMonitor
  42. def getAppMenuBar: MenuBar
  43. def getAppTabsOwner: Tabs
  44. def getAppTabsPanel: Tabs
  45. def getCodeTabsOwner(): AbstractTabsPanel
  46. def getComponentAtCombinedIndex(index: Int): Component
  47. def getDirtyMonitor: DirtyMonitor
  48. def getIndexOfCodeTab(tab: CodeTab): Int
  49. def getMainCodeTab: MainCodeTab
  50. def getMenuByName(menuName: String): Option[JMenu]
  51. def getSelectedAppTabIndex(): Int
  52. def getSelectedCodeTabComponent(): Option[Component]

    Gets selected code tab if any , whether or not separate code window exists.

  53. def getSelectedNonCodeTabComponent(): Option[Component]

    Gets selected non-code tab if any , whether or not separate code window exists.

  54. def getTabOwner(tab: Component): AbstractTabsPanel
  55. def getTitleAtCombinedIndex(index: Int): String
  56. def getTotalTabCount(): Int

    Return the number of tabs in the Application Window JTabbedPane plus those in the separate code window (if it exists).

  57. def indent(n: Int): String
  58. def intKeyToMenuKeystroke(key: Int, withShift: Boolean = false, withAlt: Boolean = false): KeyStroke
  59. def isCodeTabSeparate: Boolean
  60. var menuBar: MenuBar
  61. def ownerAndIndexFromCombinedIndex(combinedTabIndex: Int): (AbstractTabsPanel, Int)
  62. def ownerAndIndexOfTab(tab: Component): (AbstractTabsPanel, Int)
  63. def removeCodeTabContainerAccelerators(): Unit
  64. def removeComponentKeyStroke(component: JComponent, mapKey: KeyStroke): Unit
  65. def removeTab(tab: Component): Unit

    Removes the specified Component from its parent JTabbedPane and remove it from the Tabs Menu

    Removes the specified Component from its parent JTabbedPane and remove it from the Tabs Menu

    tab

    The Component to remove.

  66. def replaceTab(oldTab: Component, newTab: Component): Unit

    Replaces the specified Component with another Component in its parent JTabbedPane If one of the Component is an instance of CodeTab, the other Component must be as well in order to maintain the separate groupings of non-CodeTabs and CodeTabs .

    Replaces the specified Component with another Component in its parent JTabbedPane If one of the Component is an instance of CodeTab, the other Component must be as well in order to maintain the separate groupings of non-CodeTabs and CodeTabs .

    oldTab

    The tab to be removed

    newTab

    The tab to replace it with

    Exceptions thrown

    Exception if one Tab is a CodeTab and the other is not.

  67. def setAppCodeTabBindings(): Unit
  68. def setAppMenuBar(menuBar: MenuBar): Unit
  69. def setCodeTabsPanelOption(_codeTabsPanelOption: Option[CodeTabsPanel]): Unit
  70. def setComponentAtCombinedIndex(index: Int, tab: Component): Unit
  71. def setDirtyMonitor(dirtyMonitor: DirtyMonitor): Unit
  72. def setDirtyMonitorCodeWindow(): Unit
  73. def setPanelsSelectedComponent(tab: Component): Unit

    Makes a tab component selected or selectable, whether or not a separate code window exists.

    Makes a tab component selected or selectable, whether or not a separate code window exists.

    Usual effect: the specified component becomes the selected tab of the tabOwner. An important alternative case occurs when a specified App Tab component is already selected. This should only happen when focus is in the separate code tab window. Swing will not allow the selection unless the Tab is first deselected. To deselect the tab without selecting another tab, the selected tab index of the tabOwner must be set to -1. The App Tab of interest is saved as the currentTab. Documentation update August 2021 - AAB

    tab

    the Component to be selected

  74. def setPanelsSelectedIndex(index: Int): Unit
  75. def setSelectedAppTab(index: Int): Unit
  76. def setSelectedCodeTab(tab: CodeTab): Unit
  77. def setSeparateCodeTabBindings(): Unit
  78. def switchToNoSeparateCodeWindow(): Unit
  79. def switchToSeparateCodeWindow(): Unit
  80. def switchToSpecifiedCodeWindowState(isSeparate: Boolean): Unit
  81. object RejoinCodeTabsAction extends AbstractAction
  82. object SeparateCodeTabsAction extends AbstractAction