public void storeScrollAndTabInfo() { JComponent comp = findTabbedContainer(); String tab = null; String node = manager().getCurrentNodeName(); String lastTab = manager().getLastSelectedGroupName(); if (node != null) { if (comp != null) { tab = TabbedContainerBridge.getDefault().getCurrentSelectedTabName(comp); if (tab != null) { manager().storeLastSelectedGroup(tab); } } JScrollPane jsc = findScrollPane(); if (jsc != null) { int pos = jsc.getVerticalScrollBar().getModel().getValue(); String nm = lastTab != null ? lastTab : tab != null ? tab : node; manager().storeScrollPosition(pos, nm); } } }
public void storeScrollAndTabInfo() { JComponent comp = findTabbedContainer(); String tab = null; String node = manager().getCurrentNodeName(); String lastTab = manager().getLastSelectedGroupName(); if (node != null) { if (comp != null) { tab = TabbedContainerBridge.getDefault().getCurrentSelectedTabName(comp); if (tab != null) { manager().storeLastSelectedGroup(tab); } } JScrollPane jsc = findScrollPane(); if (jsc != null) { int pos = jsc.getVerticalScrollBar().getModel().getValue(); String nm = (lastTab != null) ? lastTab : ((tab != null) ? tab : node); manager().storeScrollPosition(pos, nm); } } }
public void storeScrollAndTabInfo() { JComponent comp = findTabbedContainer(); String tab = null; String node = manager().getCurrentNodeName(); String lastTab = manager().getLastSelectedGroupName(); if (node != null) { if (comp != null) { tab = TabbedContainerBridge.getDefault().getCurrentSelectedTabName(comp); if (tab != null) { manager().storeLastSelectedGroup(tab); } } JScrollPane jsc = findScrollPane(); if (jsc != null) { int pos = jsc.getVerticalScrollBar().getModel().getValue(); String nm = lastTab != null ? lastTab : tab != null ? tab : node; manager().storeScrollPosition(pos, nm); } } }