Example #1
0
  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);
    }
  }
Example #2
0
 public void filter(String filter) {
   tabbedPane.getSelectedTab().displayElements(filter);
   previewListPane.getPreviewList().setFontsList(tabbedPane.getSelectedTab());
 }
Example #3
0
 public void createFontList() {
   FontNamesListTab selectedTab = tabbedPane.getSelectedTab();
   selectedTab.createFontList();
   previewListPane.getPreviewList().setFontsList(selectedTab);
 }
Example #4
0
 public FontNamesListTab getSelectedTab() {
   return tabbedPane.getSelectedTab();
 }