/** Uninstalls additional components added to the menu item upon installation */ protected void uninstallComponents(JMenuItem menuItem) { BasicHTML.updateRenderer(menuItem, ""); }
/** * @param menuItem the menu item * @since 1.3 */ protected void uninstallComponents(JMenuItem menuItem) { BasicHTML.updateRenderer(menuItem, ""); }
/** * @since 1.3 */ protected void uninstallComponents(JMenuItem menuItem) { BasicHTML.updateRenderer(menuItem, ""); }
/** * @param menuItem the menu item * @since 1.3 */ protected void uninstallComponents(JMenuItem menuItem) { BasicHTML.updateRenderer(menuItem, ""); }
/** * @since 1.3 */ protected void uninstallComponents(JMenuItem menuItem) { BasicHTML.updateRenderer(menuItem, ""); }
/** Installs components to the specified menu item */ protected void installComponents(JMenuItem menuItem) { BasicHTML.updateRenderer(menuItem, menuItem.getText()); }
/** * @param menuItem the menu item * @since 1.3 */ protected void installComponents(JMenuItem menuItem) { BasicHTML.updateRenderer(menuItem, menuItem.getText()); }
/** * @since 1.3 */ protected void installComponents(JMenuItem menuItem) { BasicHTML.updateRenderer(menuItem, menuItem.getText()); }
/** * @param menuItem the menu item * @since 1.3 */ protected void installComponents(JMenuItem menuItem) { BasicHTML.updateRenderer(menuItem, menuItem.getText()); }
/** * @since 1.3 */ protected void installComponents(JMenuItem menuItem) { BasicHTML.updateRenderer(menuItem, menuItem.getText()); }
public void propertyChange(PropertyChangeEvent e) { String name = e.getPropertyName(); if(name.equals("labelFor") || name.equals("displayedMnemonic") || name.equals("accelerator")) { updateAcceleratorBinding(); } else if(name.equals("text") || "font".equals(name) || "foreground".equals(name)) { // remove the old html view client property if one // existed, and install a new one if the text installed // into the JLabel is html source. JMenuItem lbl = ((JMenuItem) e.getSource()); String text = lbl.getText(); BasicHTML.updateRenderer(lbl, text); } } }
public void propertyChange(PropertyChangeEvent e) { String name = e.getPropertyName(); if (name.equals("labelFor") || name.equals("displayedMnemonic") || name.equals("accelerator")) { updateAcceleratorBinding(); } else if (name.equals("text") || "font".equals(name) || "foreground".equals(name)) { // remove the old html view client property if one // existed, and install a new one if the text installed // into the JLabel is html source. JMenuItem lbl = ((JMenuItem) e.getSource()); String text = lbl.getText(); BasicHTML.updateRenderer(lbl, text); } } }
public void propertyChange(PropertyChangeEvent e) { String name= e.getPropertyName(); if (name.equals("labelFor") || name.equals("displayedMnemonic") || name.equals("accelerator")) { updateMyAcceleratorBinding(); } else if ( name.equals("text") || "font".equals(name) || "foreground".equals(name)) { // remove the old html view client property if one // existed, and install a new one if the text installed // into the JLabel is html source. JMenuItem lbl= ((JMenuItem) e.getSource()); String text= lbl.getText(); BasicHTML.updateRenderer(lbl, text); } } }
public void propertyChange(PropertyChangeEvent e) { String name = e.getPropertyName(); if (name.equals("labelFor") || name.equals("displayedMnemonic") || name.equals("accelerator")) { updateAcceleratorBinding(); } else if (ButtonStyle.BUTTON_STYLE_PROPERTY.equals(name) || "opaque".equals(name) || AbstractButton.CONTENT_AREA_FILLED_CHANGED_PROPERTY.equals(name) ) { if (e.getSource() instanceof JMenuItem) { JMenuItem lbl = ((JMenuItem) e.getSource()); lbl.repaint(); } } else if (name.equals("text") || "font".equals(name) || "foreground".equals(name)) { // remove the old html view client property if one // existed, and install a new one if the text installed // into the JLabel is html source. JMenuItem lbl = ((JMenuItem) e.getSource()); String text = lbl.getText(); BasicHTML.updateRenderer(lbl, text); } } }
/** * @inheritDoc */ @Override public void propertyChange(PropertyChangeEvent e) { if (SeaGlassLookAndFeel.shouldUpdateStyle(e)) { updateStyle((JToolTip) e.getSource()); } String name = e.getPropertyName(); if (name.equals("tiptext") || "font".equals(name) || "foreground".equals(name)) { // remove the old html view client property if one // existed, and install a new one if the text installed // into the JLabel is html source. JToolTip tip = ((JToolTip) e.getSource()); String text = tip.getTipText(); BasicHTML.updateRenderer(tip, text); } } }
public void propertyChange(PropertyChangeEvent e) { String name = e.getPropertyName(); if (name.equals("labelFor") || name.equals("displayedMnemonic") || name.equals("accelerator")) { updateAcceleratorBinding(); } else if (ButtonStyle.BUTTON_STYLE_PROPERTY.equals(name) || "opaque".equals(name) || AbstractButton.CONTENT_AREA_FILLED_CHANGED_PROPERTY.equals(name) ) { JMenuItem lbl = ((JMenuItem) e.getSource()); lbl.repaint(); } else if (name.equals("orientation")) { JMenuItem lbl = ((JMenuItem) e.getSource()); lbl.invalidate(); lbl.repaint(); } else if (name.equals("text") || "font".equals(name) || "foreground".equals(name)) { // remove the old html view client property if one // existed, and install a new one if the text installed // into the JLabel is html source. JMenuItem lbl = ((JMenuItem) e.getSource()); String text = lbl.getText(); BasicHTML.updateRenderer(lbl, text); } } }
public void uninstallUI(JComponent c) { uninstallKeyboardActions((AbstractButton) c); uninstallListeners((AbstractButton) c); uninstallDefaults((AbstractButton) c); BasicHTML.updateRenderer(c, ""); //$NON-NLS-1$ }
@Override public void uninstallUI(JComponent c) { uninstallKeyboardActions((AbstractButton) c); uninstallListeners((AbstractButton) c); uninstallDefaults((AbstractButton) c); BasicHTML.updateRenderer(c, ""); }
@Override public void installUI(JComponent c) { installDefaults((AbstractButton) c); installListeners((AbstractButton) c); installKeyboardActions((AbstractButton) c); BasicHTML.updateRenderer(c, ((AbstractButton) c).getText()); }
public void installUI(JComponent c) { installDefaults((AbstractButton) c); installListeners((AbstractButton) c); installKeyboardActions((AbstractButton) c); BasicHTML.updateRenderer(c, ((AbstractButton) c).getText()); }