Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

entagged.gui.tageditor
Class ID3InfoPanel  view ID3InfoPanel download ID3InfoPanel.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byentagged.gui.tageditor.ID3InfoPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class ID3InfoPanel
extends javax.swing.JPanel

Creates the Bottom panel of the main windows contains all operations realtive to the current showing album/selected file $Id: ID3InfoPanel.java,v 1.6 2003/10/01 20:25:17 kikidonk Exp $

Version:
v0.03

Nested Class Summary
private  class ID3InfoPanel.AdvancedButtonListener
          This listens for an event on the advanced button in id3v2 panel and shows a dialog allowing to add custom fields
private  class ID3InfoPanel.CopyFromV1ButtonListener
          This listens for an event on the copy button in id3v2 panel and copy the data in id3v1 panel
private  class ID3InfoPanel.CopyFromV2ButtonListener
          This listens for an event on the copy button in id3v1 panel and copy the data in id3v2 panel
private  class ID3InfoPanel.SaveButtonListener
          This class listens for events on the save buttons for both id3v1 and id3v2 tags
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  javax.swing.JButton advancedButton
          ID3v2 Advanced button
private  javax.swing.JTextField albumF
          Textfields concerning ID3v2 displyed in the ID3v2 Panel
private  javax.swing.JTextField albumFv1
          Textfields concerning ID3v2 displyed in the ID3v1 Panel
private  javax.swing.JLabel albumL
          Various Labels
private  javax.swing.JLabel albumLv1
          Various Labels
private  javax.swing.JTextField artistF
          Textfields concerning ID3v2 displyed in the ID3v2 Panel
private  javax.swing.JTextField artistFv1
          Textfields concerning ID3v2 displyed in the ID3v1 Panel
private  javax.swing.JLabel artistL
          Various Labels
private  javax.swing.JLabel artistLv1
          Various Labels
private  javax.swing.JTextField commentF
          Textfields concerning ID3v2 displyed in the ID3v2 Panel
private  javax.swing.JTextField commentFv1
          Textfields concerning ID3v2 displyed in the ID3v1 Panel
private  javax.swing.JLabel commentL
          Various Labels
private  javax.swing.JLabel commentLv1
          Various Labels
private  javax.swing.JButton copyFromV1Button
          Copy from ID3v1 Button
private  javax.swing.JButton copyFromV2Button
          Copy from ID3v2 Button
private  javax.swing.JTextField genreF
          Textfields concerning ID3v2 displyed in the ID3v2 Panel
private  javax.swing.JComboBox genreFv1
          ID3v1 Genre combo box
private  javax.swing.JLabel genreL
          Various Labels
private  javax.swing.JLabel genreLv1
          Various Labels
private  javax.swing.JPanel ID3v1TagInfos
          ID3v1 Panel
private  javax.swing.JPanel ID3v2TagInfos
          ID3v2 Panel
private  javax.swing.JButton saveButton
          Save buttons for ID3 tags
private  javax.swing.JButton saveButtonv1
          Save buttons for ID3 tags
private  java.util.Vector selectedMP3
          Vector containing the selected MP3 in the table (used because of the mutlti selection)
private  java.util.Vector selectedMP3TrackNb
          Vector containing the track numbers of the corresponding selected MP3 (MP3 itself could be used, but information isn't secure)
private  TagEditorFrame tagEditorFrame
          Parent Tag Editor Frame
private  javax.swing.JTextField titleF
          Textfields concerning ID3v2 displyed in the ID3v2 Panel
private  javax.swing.JTextField titleFv1
          Textfields concerning ID3v2 displyed in the ID3v1 Panel
private  javax.swing.JLabel titleL
          Various Labels
private  javax.swing.JLabel titleLv1
          Various Labels
private  javax.swing.JTextField trackF
          Textfields concerning ID3v2 displyed in the ID3v2 Panel
private  javax.swing.JTextField trackFv1
          Textfields concerning ID3v2 displyed in the ID3v1 Panel
private  javax.swing.JLabel trackL
          Various Labels
private  javax.swing.JLabel trackLv1
          Various Labels
private  javax.swing.JTextField yearF
          Textfields concerning ID3v2 displyed in the ID3v2 Panel
private  javax.swing.JTextField yearFv1
          Textfields concerning ID3v2 displyed in the ID3v1 Panel
private  javax.swing.JLabel yearL
          Various Labels
private  javax.swing.JLabel yearLv1
          Various Labels
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ID3InfoPanel(TagEditorFrame tagEditorFrame)
          Build the Panel
 
Method Summary
 void add(entagged.formats.mp3.MP3File mp3, int trackNb)
          This method is used whenever a mp3 file is added to the selection, it updates the fields of the id3 tags and eventually put a "Varies" text if needed
 void clean()
          Cleans the ID3Info Panel (textfileds...)
private  void createID3v1TagInfoPanel()
          Creates id3v1 fileds etc
private  void createID3v2TagInfoPanel()
          Creates id3v2 fields
 java.util.Vector getSelectedMP3()
          get the selected mp3's vector containing the selected mp3files
 java.util.Vector getSelectedMP3TrackNb()
          get the selected mp3's vector containing the selected mp3files real (alphabetical) track numbers
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ID3v1TagInfos

private javax.swing.JPanel ID3v1TagInfos
ID3v1 Panel


ID3v2TagInfos

private javax.swing.JPanel ID3v2TagInfos
ID3v2 Panel


advancedButton

private javax.swing.JButton advancedButton
ID3v2 Advanced button


artistF

private javax.swing.JTextField artistF
Textfields concerning ID3v2 displyed in the ID3v2 Panel


albumF

private javax.swing.JTextField albumF
Textfields concerning ID3v2 displyed in the ID3v2 Panel


titleF

private javax.swing.JTextField titleF
Textfields concerning ID3v2 displyed in the ID3v2 Panel


trackF

private javax.swing.JTextField trackF
Textfields concerning ID3v2 displyed in the ID3v2 Panel


genreF

private javax.swing.JTextField genreF
Textfields concerning ID3v2 displyed in the ID3v2 Panel


yearF

private javax.swing.JTextField yearF
Textfields concerning ID3v2 displyed in the ID3v2 Panel


commentF

private javax.swing.JTextField commentF
Textfields concerning ID3v2 displyed in the ID3v2 Panel


artistFv1

private javax.swing.JTextField artistFv1
Textfields concerning ID3v2 displyed in the ID3v1 Panel


albumFv1

private javax.swing.JTextField albumFv1
Textfields concerning ID3v2 displyed in the ID3v1 Panel


titleFv1

private javax.swing.JTextField titleFv1
Textfields concerning ID3v2 displyed in the ID3v1 Panel


trackFv1

private javax.swing.JTextField trackFv1
Textfields concerning ID3v2 displyed in the ID3v1 Panel


yearFv1

private javax.swing.JTextField yearFv1
Textfields concerning ID3v2 displyed in the ID3v1 Panel


commentFv1

private javax.swing.JTextField commentFv1
Textfields concerning ID3v2 displyed in the ID3v1 Panel


artistL

private javax.swing.JLabel artistL
Various Labels


albumL

private javax.swing.JLabel albumL
Various Labels


titleL

private javax.swing.JLabel titleL
Various Labels


trackL

private javax.swing.JLabel trackL
Various Labels


genreL

private javax.swing.JLabel genreL
Various Labels


yearL

private javax.swing.JLabel yearL
Various Labels


commentL

private javax.swing.JLabel commentL
Various Labels


artistLv1

private javax.swing.JLabel artistLv1
Various Labels


albumLv1

private javax.swing.JLabel albumLv1
Various Labels


titleLv1

private javax.swing.JLabel titleLv1
Various Labels


trackLv1

private javax.swing.JLabel trackLv1
Various Labels


genreLv1

private javax.swing.JLabel genreLv1
Various Labels


yearLv1

private javax.swing.JLabel yearLv1
Various Labels


commentLv1

private javax.swing.JLabel commentLv1
Various Labels


copyFromV1Button

private javax.swing.JButton copyFromV1Button
Copy from ID3v1 Button


copyFromV2Button

private javax.swing.JButton copyFromV2Button
Copy from ID3v2 Button


genreFv1

private javax.swing.JComboBox genreFv1
ID3v1 Genre combo box


saveButton

private javax.swing.JButton saveButton
Save buttons for ID3 tags


saveButtonv1

private javax.swing.JButton saveButtonv1
Save buttons for ID3 tags


selectedMP3

private java.util.Vector selectedMP3
Vector containing the selected MP3 in the table (used because of the mutlti selection)


selectedMP3TrackNb

private java.util.Vector selectedMP3TrackNb
Vector containing the track numbers of the corresponding selected MP3 (MP3 itself could be used, but information isn't secure)


tagEditorFrame

private TagEditorFrame tagEditorFrame
Parent Tag Editor Frame

Constructor Detail

ID3InfoPanel

public ID3InfoPanel(TagEditorFrame tagEditorFrame)
Build the Panel

Method Detail

getSelectedMP3

public java.util.Vector getSelectedMP3()
get the selected mp3's vector containing the selected mp3files


getSelectedMP3TrackNb

public java.util.Vector getSelectedMP3TrackNb()
get the selected mp3's vector containing the selected mp3files real (alphabetical) track numbers


add

public void add(entagged.formats.mp3.MP3File mp3,
                int trackNb)
This method is used whenever a mp3 file is added to the selection, it updates the fields of the id3 tags and eventually put a "Varies" text if needed


clean

public void clean()
Cleans the ID3Info Panel (textfileds...)


createID3v1TagInfoPanel

private void createID3v1TagInfoPanel()
Creates id3v1 fileds etc


createID3v2TagInfoPanel

private void createID3v2TagInfoPanel()
Creates id3v2 fields