Class SwingFontEditor

  • All Implemented Interfaces:
    BindablePropertyEditor, java.awt.event.ActionListener, java.beans.PropertyEditor, java.util.EventListener

    public class SwingFontEditor
    extends ConfiguratorEditorSupport
    implements java.awt.event.ActionListener
    A Font property editor. Mostly designed by Chris Ryan.
    • Constructor Detail

      • SwingFontEditor

        public SwingFontEditor()
    • Method Detail

      • initComponents

        protected void initComponents()
        Description copied from class: ConfiguratorEditorSupport
        This is where you can add your own components to the "panel" field. It has a box layout and the binding button will be added after this method is called.
        Specified by:
        initComponents in class ConfiguratorEditorSupport
      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent evt)
        ActionListener handler for all component events to set the value of the PropertyEditor as a result of a change in the value by the user.
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • setValue

        public void setValue​(java.lang.Object value)
        Specified by:
        setValue in interface java.beans.PropertyEditor
        Overrides:
        setValue in class java.beans.PropertyEditorSupport
      • isPaintable

        public boolean isPaintable()
        Specified by:
        isPaintable in interface java.beans.PropertyEditor
        Overrides:
        isPaintable in class java.beans.PropertyEditorSupport
      • paintValue

        public void paintValue​(java.awt.Graphics g,
                               java.awt.Rectangle rect)
        Specified by:
        paintValue in interface java.beans.PropertyEditor
        Overrides:
        paintValue in class java.beans.PropertyEditorSupport
      • getJavaInitializationString

        public java.lang.String getJavaInitializationString()
        Specified by:
        getJavaInitializationString in interface java.beans.PropertyEditor
        Overrides:
        getJavaInitializationString in class java.beans.PropertyEditorSupport