Class SwingEditorSupport

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getBean()  
      DesignerContext getContext()  
      java.awt.Component getCustomEditor()
      Returns the panel responsible for rendering the PropertyEditor.
      VisionDesignerInterface getFPMIContext()  
      java.lang.String getPropertyName()  
      void init​(VisionDesignerInterface fpmi, java.beans.FeatureDescriptor descriptor, java.lang.Object bean, javax.swing.table.TableModel model, int row, int col)
      For property editors that must be initialized with values from the property descriptor.
      protected void init​(java.beans.FeatureDescriptor descriptor)  
      boolean isCanceled()  
      protected void setAlignment​(javax.swing.JComponent c)  
      boolean supportsCustomEditor()  
      • Methods inherited from class java.beans.PropertyEditorSupport

        addPropertyChangeListener, firePropertyChange, getAsText, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource, setValue
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • panel

        protected javax.swing.JPanel panel
        Component which holds the editor. Subclasses are responsible for instantiating this panel.
      • bean

        protected java.lang.Object bean
      • propertyName

        protected java.lang.String propertyName
      • canceled

        protected boolean canceled
      • tableModel

        protected javax.swing.table.TableModel tableModel
      • modelRow

        protected int modelRow
      • modelColumn

        protected int modelColumn
      • LARGE_DIMENSION

        protected static final java.awt.Dimension LARGE_DIMENSION
      • MEDIUM_DIMENSION

        protected static final java.awt.Dimension MEDIUM_DIMENSION
      • SMALL_DIMENSION

        protected static final java.awt.Dimension SMALL_DIMENSION
      • TINY_DIMENSION

        protected static final java.awt.Dimension TINY_DIMENSION
      • BUTTON_MARGIN

        protected static final java.awt.Insets BUTTON_MARGIN
    • Constructor Detail

      • SwingEditorSupport

        public SwingEditorSupport()
    • Method Detail

      • getCustomEditor

        public java.awt.Component getCustomEditor()
        Returns the panel responsible for rendering the PropertyEditor.
        Specified by:
        getCustomEditor in interface java.beans.PropertyEditor
        Overrides:
        getCustomEditor in class java.beans.PropertyEditorSupport
      • supportsCustomEditor

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

        protected final void setAlignment​(javax.swing.JComponent c)
      • init

        public void init​(VisionDesignerInterface fpmi,
                         java.beans.FeatureDescriptor descriptor,
                         java.lang.Object bean,
                         javax.swing.table.TableModel model,
                         int row,
                         int col)
        For property editors that must be initialized with values from the property descriptor.
      • init

        protected void init​(java.beans.FeatureDescriptor descriptor)
      • getBean

        public java.lang.Object getBean()
      • getPropertyName

        public java.lang.String getPropertyName()
      • isCanceled

        public boolean isCanceled()