public void repaintWhenTabChanged() { previewListPane.getPreviewList().setFontsList(tabbedPane.getSelectedTab()); boolean currentLocationValid = getSelectedTab().isCurrentLocationValid(); ToolBar.INSTANCE.setRefreshEnabled(currentLocationValid); if (currentLocationValid) { boolean isAdmin = OsFactory.MY_OS.isAdmin(); boolean isSystemFonts = getSelectedTab().isSystemFonts(); ToolBar.INSTANCE.setPlusEnabled(isSystemFonts == false && isAdmin); ToolBar.INSTANCE.setMinusEnabled(isSystemFonts == false || isAdmin); } }
public void filter(String filter) { tabbedPane.getSelectedTab().displayElements(filter); previewListPane.getPreviewList().setFontsList(tabbedPane.getSelectedTab()); }
public void createFontList() { FontNamesListTab selectedTab = tabbedPane.getSelectedTab(); selectedTab.createFontList(); previewListPane.getPreviewList().setFontsList(selectedTab); }
public FontNamesListTab getSelectedTab() { return tabbedPane.getSelectedTab(); }