Class InPlaceEditHandler

  • All Implemented Interfaces:
    DoubleClickHandler

    public abstract class InPlaceEditHandler
    extends java.lang.Object
    implements DoubleClickHandler
    A double-click handler that implements in-place editing for components that want text editability.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.swing.JTextField createField​(javax.swing.JComponent component)  
      protected java.awt.Font getFont​(javax.swing.JComponent component)  
      protected abstract int getHorizontalAlignment​(javax.swing.JComponent component)  
      protected java.awt.Insets getInsets​(javax.swing.JComponent component)  
      protected java.lang.String getPropertyName()  
      protected abstract java.lang.String getText​(javax.swing.JComponent component)  
      protected boolean isPropertyBound​(javax.swing.JComponent component)  
      void onDoubleClick​(javax.swing.JComponent component, WindowWorkspace workspace)  
      protected abstract void setText​(javax.swing.JComponent component, java.lang.String text)  
      • Methods inherited from class java.lang.Object

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

      • InPlaceEditHandler

        public InPlaceEditHandler()
    • Method Detail

      • isPropertyBound

        protected boolean isPropertyBound​(javax.swing.JComponent component)
      • getPropertyName

        protected java.lang.String getPropertyName()
      • createField

        protected javax.swing.JTextField createField​(javax.swing.JComponent component)
      • getFont

        protected java.awt.Font getFont​(javax.swing.JComponent component)
      • getInsets

        protected java.awt.Insets getInsets​(javax.swing.JComponent component)
      • getHorizontalAlignment

        protected abstract int getHorizontalAlignment​(javax.swing.JComponent component)
      • getText

        protected abstract java.lang.String getText​(javax.swing.JComponent component)
      • setText

        protected abstract void setText​(javax.swing.JComponent component,
                                        java.lang.String text)