We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bfe475c commit 7e0a14eCopy full SHA for 7e0a14e
1 file changed
Tutorial-o-Matic/src/main/groovy/TabPane.groovy
@@ -6,6 +6,7 @@ import org.freeplane.core.util.MenuUtils as menuUtils
6
class TabPane{
7
def static tabPane = ui.freeplaneTabbedPanel
8
9
+
10
def static removeTab(String tabName){
11
def index = tabPane.indexOfTab(tabName)
12
//eliminar
@@ -32,5 +33,22 @@ class TabPane{
32
33
tabPane.addTab(tabName, componente)
34
}
35
36
+ def static hasTab(String tabName){
37
+ def index = tabPane.indexOfTab(tabName)
38
+ return ( index >= 0 )
39
+ }
40
41
+ def static getTab(String tabName){
42
43
+ if (index>=0) {
44
+ return tabPane.getComponentAt(index)
45
+ } else {
46
+ return null
47
48
49
50
+ def static repaint(){
51
+ tabPane.repaint()
52
53
54
0 commit comments