public Object createValue(UIDefaults table) { return SwingHelpUtilities.getImageIcon(javax.help.plaf.gtk.GTKCursorFactory.class, image); } };
/** * If we had any LAF-specific classes, they would be invoked from here. */ static private void installMetalDefaults(UIDefaults table) { installBasicDefaults(table); }
/** * The PropertyChange method is used to track changes to LookAndFeel * via the "lookAndFeel" property. */ public void propertyChange(PropertyChangeEvent event) { String changeName = event.getPropertyName(); if (changeName.equals("lookAndFeel")) { installLookAndFeelDefaults(); } }
/** * Adds look and feel constants for Help components into UIDefaults table. */ static void installLookAndFeelDefaults() { LookAndFeel lnf = UIManager.getLookAndFeel(); UIDefaults table = UIManager.getLookAndFeelDefaults(); debug("installLookAndFeelDefaults - " + lnf); if ((lnf != null) && (table != null)) { if (lnf.getID().equals("Motif")) { installMotifDefaults(table); } else if (lnf.getID().equals("Windows")) { installWindowsDefaults(table); } else if (lnf.getID().equals("GTK")) { installGTKDefaults(table); } else { // Default installMetalDefaults(table); } } debug ("verifing UIDefaults; HelpUI=" + table.getString("HelpUI")); }
@Override public void initView(ViewDelegate view) { super.initView(view); SwingHelpUtilities.setContentViewerUI(BasicOnlineContentViewerUI.class.getCanonicalName()); UIManager.getDefaults().put("ZapHelpSearchNavigatorUI", ZapBasicSearchNavigatorUI.class.getCanonicalName()); }
SwingHelpUtilities.installUIDefaults();
SwingHelpUtilities.setContentViewerUI("net.sourceforge.ondex.ovtk2.util.OVTKBasicNativeContentViewerUI");
/** * Replaces the UI with the latest version from the default * UIFactory. * * @overrides updateUI in class JComponent */ public void updateUI() { SwingHelpUtilities.installUIDefaults(); setUI((HelpNavigatorUI)UIManager.getUI(this)); invalidate(); }
SwingHelpUtilities.setContentViewerUI("uk.gov.nationalarchives.droid.gui.help.ExternalLinkContentViewerUI");
public Object createValue(UIDefaults table) { return SwingHelpUtilities.getImageIcon(javax.help.plaf.basic.BasicHelpUI.class, image); } };
/** * Replaces the UI with the latest version from the default * UIFactory. * * @overrides updateUI in class JComponent */ public void updateUI() { SwingHelpUtilities.installUIDefaults(); setUI((HelpUI)UIManager.getUI(this)); invalidate(); }
static private void installWindowsDefaults(UIDefaults table) { installBasicDefaults(table); }
/** * Installs UIDefaults for Help components and installs "lookAndFeel" * property change listener. */ static void installUIDefaults() { UIDefaults table = UIManager.getLookAndFeelDefaults(); if (uiDefaults != table) { uiDefaults = table; UIManager.removePropertyChangeListener(myLAFListener); installLookAndFeelDefaults(); UIManager.addPropertyChangeListener(myLAFListener); } }
SwingHelpUtilities.setContentViewerUI("uk.gov.nationalarchives.droid.gui.help.ExternalLinkContentViewerUI");
public AddAction(){ super(HelpUtilities.getString(locale, "favorites.add"), SwingHelpUtilities.getImageIcon(BasicFavoritesNavigatorUI.class,"images/addToFav.gif")); }
/** * Replaces the UI with the latest version from the default * UIFactory. * * @overrides updateUI in class JComponent */ public void updateUI() { SwingHelpUtilities.installUIDefaults(); setUI((HelpContentViewerUI)UIManager.getUI(this)); invalidate(); }
static private void installMotifDefaults(UIDefaults table) { installBasicDefaults(table); }
public static ImageIcon getIcon(Class klass, String name) { ImageIcon ig = null; try { ig = SwingHelpUtilities.getImageIcon(klass, name); } catch (Exception ex) { } if (debug || ig == null) { System.err.println("GetIcon"); System.err.println(" name: "+name); System.err.println(" klass: "+klass); URL url = klass.getResource(name); System.err.println(" URL is "+url); System.err.println(" ImageIcon is "+ig); } return ig; }
public FolderAction(){ super(HelpUtilities.getString(locale, "favorites.folder"), SwingHelpUtilities.getImageIcon(BasicFavoritesNavigatorUI.class,"images/folder.gif")); }
public RemoveAction(){ super(HelpUtilities.getString(locale, "favorites.remove"), SwingHelpUtilities.getImageIcon(BasicFavoritesNavigatorUI.class,"images/remove.gif")); }