Class Id3GenericEditorPanel<T extends org.farng.mp3.id3.AbstractID3>

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
be.gaudry.swing.file.renamer.controls.music.Id3GenericEditorPanel<T>
Type Parameters:
T -
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, DocumentListener
Direct Known Subclasses:
Id3v1EditorPanel, Id3v2EditorPanel

public class Id3GenericEditorPanel<T extends org.farng.mp3.id3.AbstractID3> extends JPanel implements DocumentListener
Since:
1.0 Sep 6, 2008, 1.0
Version:
%I%, %G%
Author:
Steph GAUDRY
See Also:
Serialized Form
  • Field Details

    • editorPanel

      protected JPanel editorPanel
    • CARD_CREATOR

      protected static final String CARD_CREATOR
      See Also:
      Constant Field Values
    • CARD_EDITOR

      protected static final String CARD_EDITOR
      See Also:
      Constant Field Values
    • tags

      protected T extends org.farng.mp3.id3.AbstractID3 tags
    • initialized

      protected boolean initialized
    • id3Version

      protected String id3Version
  • Constructor Details

    • Id3GenericEditorPanel

      public Id3GenericEditorPanel()
  • Method Details

    • initData

      protected void initData()
    • customGUI

      protected void customGUI()
    • showCard

      protected void showCard(String cardName)
      Parameters:
      cardName -
      Throws:
      Runtime - Exception if this layout is set to another layout
    • prepareToSave

      public boolean prepareToSave()
      If some modification has been detected, update ID3 data from the view
      Returns:
      true if modified
    • save

      public void save()
      Save ID3 data. If some other ID3 or Lyrics panels has been also modified, prefer using prepareToSave() method.
      See Also:
      prepareToSave()
    • changedUpdate

      public void changedUpdate(DocumentEvent e)
      Specified by:
      changedUpdate in interface DocumentListener
    • insertUpdate

      public void insertUpdate(DocumentEvent e)
      Specified by:
      insertUpdate in interface DocumentListener
    • removeUpdate

      public void removeUpdate(DocumentEvent e)
      Specified by:
      removeUpdate in interface DocumentListener
    • createTagButtonActionPerformed

      protected void createTagButtonActionPerformed(ActionEvent evt)
    • cleanTagButtonActionPerformed

      protected void cleanTagButtonActionPerformed(ActionEvent evt)
    • view2data

      protected void view2data()
    • data2view

      protected void data2view()
    • setModified

      protected void setModified()
    • isModified

      public boolean isModified()
    • setMusicFile

      public void setMusicFile(MusicFile musicFile)
      You must override this method to set the tags
      Parameters:
      musicFile -
    • initGUI

      protected void initGUI()
    • main

      public static void main(String[] args)
      Auto-generated main method to display this JPanel inside a new JFrame.