class AppTabManager extends AnyRef
- Source
- AppTabManager.scala
- Alphabetic
- By Inheritance
- AppTabManager
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AppTabManager(appTabsPanel: Tabs, codeTabsPanelOption: Option[CodeTabsPanel])
Value Members
- def __PrintHideUndoMenuCounts(): Unit
- def __PrintStateInfo(previousTab: Component, currentTab: Component): Unit
- def __PrintWindowEventInfo(e: WindowEvent): Unit
- def __countMenuItembyNameAndMenuName(menuName: String, menuItemName: String): Int
- def __getMenuItembyName(menu: JMenu, menuItemName: String): Option[JMenuItem]
- def __getMenuItembyNameAndMenuName(menuName: String, menuItemName: String): Option[JMenuItem]
- def __getSimpleName(c: Any): String
- def __printAllTabs(): Unit
- def __printAppFrameInputActionMaps(): Unit
- def __printAppFrameInputMap(): Unit
- def __printAppMenuAcceleratorsByName(menuName: String): Unit
- def __printAppMenuBar(): Unit
- def __printAppMenuBarAccelerators(): Unit
- def __printAppMenuByName(menuName: String): Unit
- def __printFocusOwner(topContainer: JFrame, fullInfo: Boolean): Unit
- def __printFocusOwner(topContainer: JFrame): Unit
- def __printInputActionMaps(component: JComponent): Unit
- def __printInputMap(component: JComponent): Unit
- def __printMenuAccelerators(menu: JMenu): Unit
- def __printMenuItem(menuItem: JMenuItem, level: Int): Unit
- def __printMenuItembyNameAndMenuName(menuName: String, menuItemName: String): Unit
- def __printMenuItems(menu: JMenu, level: Int): Unit
- def __printOptionSwingObject(obj: Option[Component], description: String): Unit
- def __printSeparateCodeFrameInputActionMaps(): Unit
- def __printSeparateCodeFrameInputMap(): Unit
- def __printSwingObject(obj: Component, description: String): Unit
- def __printTabsMenuActions(): Unit
- def __printTabsOfTabsPanel(pane: JTabbedPane): Unit
- def addAppFrameKeyStroke(mapKey: KeyStroke, action: Action, actionName: String): Unit
- def addCodeTabContainerKeyStroke(mapKey: KeyStroke, action: Action, actionName: String): Unit
- def addComponentKeyStroke(component: JComponent, mapKey: KeyStroke, action: Action, actionName: String): Unit
-
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
- val appContentPane: JComponent
- val appTabsPanel: Tabs
- var codeTabsPanelOption: Option[CodeTabsPanel]
- def combinedIndexFromOwnerAndIndex(tabOwner: AbstractTabsPanel, index: Int): Int
- def copyMenuAccelerators(menu: JMenu): Unit
- def copyMenuAcceleratorsByName(menuName: String): Unit
- def copyMenuBarAccelerators(): Unit
- def createCodeTabAccelerators(): Unit
- var dirtyMonitor: DirtyMonitor
- def getAppMenuBar: MenuBar
- def getAppTabsOwner: Tabs
- def getAppTabsPanel: Tabs
- def getCodeTabsOwner(): AbstractTabsPanel
- def getComponentAtCombinedIndex(index: Int): Component
- def getDirtyMonitor: DirtyMonitor
- def getIndexOfCodeTab(tab: CodeTab): Int
- def getMainCodeTab: MainCodeTab
- def getMenuByName(menuName: String): Option[JMenu]
- def getSelectedAppTabIndex(): Int
-
def
getSelectedCodeTabComponent(): Option[Component]
Gets selected code tab if any , whether or not separate code window exists.
-
def
getSelectedNonCodeTabComponent(): Option[Component]
Gets selected non-code tab if any , whether or not separate code window exists.
- def getTabOwner(tab: Component): AbstractTabsPanel
- def getTitleAtCombinedIndex(index: Int): String
-
def
getTotalTabCount(): Int
Return the number of tabs in the Application Window JTabbedPane plus those in the separate code window (if it exists).
- def indent(n: Int): String
- def intKeyToMenuKeystroke(key: Int, withShift: Boolean = false, withAlt: Boolean = false): KeyStroke
- def isCodeTabSeparate: Boolean
- var menuBar: MenuBar
- def ownerAndIndexFromCombinedIndex(combinedTabIndex: Int): (AbstractTabsPanel, Int)
- def ownerAndIndexOfTab(tab: Component): (AbstractTabsPanel, Int)
- def removeCodeTabContainerAccelerators(): Unit
- def removeComponentKeyStroke(component: JComponent, mapKey: KeyStroke): Unit
-
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.
-
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.
- def setAppCodeTabBindings(): Unit
- def setAppMenuBar(menuBar: MenuBar): Unit
- def setCodeTabsPanelOption(_codeTabsPanelOption: Option[CodeTabsPanel]): Unit
- def setComponentAtCombinedIndex(index: Int, tab: Component): Unit
- def setDirtyMonitor(dirtyMonitor: DirtyMonitor): Unit
- def setDirtyMonitorCodeWindow(): Unit
-
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
- def setPanelsSelectedIndex(index: Int): Unit
- def setSelectedAppTab(index: Int): Unit
- def setSelectedCodeTab(tab: CodeTab): Unit
- def setSeparateCodeTabBindings(): Unit
- def switchToNoSeparateCodeWindow(): Unit
- def switchToSeparateCodeWindow(): Unit
- def switchToSpecifiedCodeWindowState(isSeparate: Boolean): Unit
- object RejoinCodeTabsAction extends AbstractAction
- object SeparateCodeTabsAction extends AbstractAction