Class AbstractCustomGroupView

All Implemented Interfaces:
PaletteItemGroupView, CopyPasteListener, ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ListDataListener

public abstract class AbstractCustomGroupView extends AbstractPaletteItemGroupView implements ActionListener, CopyPasteListener
Like the AbstractPaletteItemGroupView, except that adds support for the capture button, add adds plumbing for capturing
See Also:
  • Constructor Details

  • Method Details

    • addCopyPasteListener

      protected void addCopyPasteListener()
    • createCaptureButton

      protected abstract AbstractButton createCaptureButton()
    • configureCaptureButton

      protected void configureCaptureButton()
    • configurePaletteItemViewComponent

      protected void configurePaletteItemViewComponent(PaletteItem item, JComponent component)
      Overrides:
      configurePaletteItemViewComponent in class AbstractPaletteItemGroupView
    • getComponentIndex

      protected int getComponentIndex(int itemIndex)
      Description copied from class: AbstractPaletteItemGroupView
      Translates the index of an item within the PaletteItemGroup to the index within this JPanel. Used for adding/removing/recreating items as the group morphs. The default implementation simply returns the item index.
      Overrides:
      getComponentIndex in class AbstractPaletteItemGroupView
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      This is for listening to the object capture button
      Specified by:
      actionPerformed in interface ActionListener
    • copyPerformed

      public void copyPerformed(String data)
      This property change listener listens to the object holder to see when a copy is performed. The capture button asks the object holder to do a copy, and then this callback can tell when it is done, and can get the copied data out of the PropertyChangeEvent
      Specified by:
      copyPerformed in interface CopyPasteListener
    • cutPerformed

      public void cutPerformed(String data)
      Specified by:
      cutPerformed in interface CopyPasteListener