|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.application.AbstractBean
org.jdesktop.application.View
org.jdesktop.application.FrameView
musicbox.gui.MusicBoxView
public class MusicBoxView
The application's main frame.
Field Summary | |
---|---|
javax.swing.JList |
addressList
|
javax.swing.JLabel |
albumArtLabel
|
java.util.Vector<noTalent.MusicOutputDesign> |
allMusic
|
Backend |
back
|
javax.swing.Timer |
busyIconTimer
|
int |
changed
|
boolean |
clicked
|
java.lang.String[] |
columnNames
|
protected CustomTableListener |
ctl
|
java.util.Vector<java.lang.String> |
currentlyPlaying2
|
javax.swing.JTable |
currentlyPlayingTable
|
javax.swing.JTable |
currentlyShowingTable
|
javax.swing.JTextArea |
currentTrackInfoBox
|
Database |
db
|
boolean |
errorMessage
|
double |
finalPercent
|
javax.swing.ImageIcon |
fiveSmiles
|
java.awt.Color |
fontColor
|
protected boolean |
foundMixer
|
javax.swing.ImageIcon |
fourSmiles
|
int |
googleImageLocation
|
java.lang.String |
googleSearch
|
int |
imageResults
|
java.util.Vector |
initial
|
boolean |
internetConnection
|
javax.swing.JButton |
jButton7
|
javax.swing.JButton |
jButton8
|
javax.swing.JEditorPane |
jEditorPane1
|
javax.swing.JLabel |
jLabel1
|
javax.swing.JLabel |
jLabel2
|
javax.swing.JLabel |
jLabel5
|
javax.swing.JList |
jList1
|
javax.swing.JList |
jList2
|
javax.swing.JList |
jList3
|
javax.swing.JMenu |
jMenu2
|
javax.swing.JMenu |
jMenu3
|
javax.swing.JPopupMenu |
jPopupMenu3
|
javax.swing.JProgressBar |
jProgressBar1
|
javax.swing.JScrollPane |
jScrollPane12
|
javax.swing.JScrollPane |
jScrollPane2
|
javax.swing.JScrollPane |
jScrollPane5
|
javax.swing.JScrollPane |
jScrollPane7
|
javax.swing.JSlider |
jSlider1
|
javax.swing.JTabbedPane |
jTabbedPane1
|
javax.swing.JTabbedPane |
jTabbedPane2
|
javax.swing.LookAndFeel |
laf
|
javax.swing.JPanel |
mainPanel
|
javax.swing.JMenuBar |
menuBar
|
MiniPlayer |
mini
|
javax.swing.ImageIcon |
musicBoxIcon16
|
javax.swing.JButton |
nextTrackButton
|
javax.swing.ImageIcon |
noImage
|
javax.swing.ImageIcon |
oneSmile
|
boolean |
originalCP
|
boolean |
originalCS
|
boolean |
originalPL
|
MusicBoxView |
p
|
javax.swing.JButton |
pauseButton
|
javax.swing.JButton |
playButton
|
boolean |
playing
|
javax.swing.JPopupMenu |
PlayingPopupMenu
|
java.util.Vector<java.lang.String> |
playList
|
javax.swing.JPopupMenu |
PlaylistPopupMenu
|
javax.swing.JTable |
playlistTable
|
javax.swing.JFrame |
pref
|
java.util.Comparator |
previousComparator
|
javax.swing.JButton |
previousTrackButton
|
java.awt.Color |
progressBarColor
|
java.awt.Font |
projectFont
|
javax.swing.JLabel |
ratingLabel
|
java.lang.String |
serverAddress
|
java.util.Vector<noTalent.MusicOutputDesign> |
sharedLibrary
|
javax.swing.JPopupMenu |
SharedLibraryPopupMenu
|
javax.swing.JTable |
sharedLibraryTable
|
javax.swing.JList |
sharedPlayList
|
javax.swing.JPopupMenu |
ShowingPopupMenu
|
javax.swing.JButton |
shuffleButton
|
protected SmallAlbumArt |
smallArt
|
javax.swing.ImageIcon[] |
smileys
|
protected SongInfo |
songInfo
|
SongSplash |
songSplash
|
javax.swing.JButton |
stopButton
|
musicbox.gui.MusicBoxView.Task |
task
Used for calculating the progress of the progress bar |
javax.swing.ImageIcon |
threeSmiles
|
java.util.Timer |
timer
|
double |
timeSkipped
|
double |
trackLength
|
javax.swing.ImageIcon |
twoSmiles
|
javax.swing.ImageIcon |
zeroSmiles
|
Constructor Summary | |
---|---|
MusicBoxView(org.jdesktop.application.SingleFrameApplication app)
Constructor |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
|
void |
addSongsToPlaylist(java.lang.String name,
javax.swing.JTable jT,
java.util.Vector<noTalent.MusicOutputDesign> v)
|
void |
appendToPlayList(java.util.Vector<noTalent.MusicOutputDesign> v)
|
void |
appendToPlayList(java.util.Vector<noTalent.MusicOutputDesign> v,
javax.swing.JTable jT)
Appends the currently selected songs from a table to the playlist. |
void |
appendToPlayList(java.util.Vector<java.lang.String> v,
javax.swing.JTable jT,
boolean flag)
|
void |
connectToServer()
|
protected void |
createAllLibraryAlbumPanels()
|
protected void |
createAllLibraryArtistPanels()
|
void |
executeTask()
|
void |
fin()
way of removing a property for task. |
protected javax.swing.ImageIcon |
getAlbumArt(noTalent.MusicOutputDesign m)
|
protected java.util.Vector<noTalent.MusicOutputDesign> |
getAllInstancesOfArtist(java.lang.String s)
|
void |
getAllMusic()
Retrieves all the music from the db. |
java.util.Vector<java.lang.String> |
getAllPlayLists()
|
void |
getCurrentlyPlaying()
|
MusicBoxView |
getInstance()
|
int |
getJList4PreviousSelection()
|
SocketListener |
getSocketListener()
|
void |
hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
Updates the page according to the link the user clicks on. |
boolean |
isPlaying()
|
void |
next()
Stops the currently playing song and starts playing the next song in the playlist. |
void |
nextGoogleImage()
|
void |
pause()
Pauses/resumes the current song being played. |
void |
play()
Plays the currently selected music, or everything in the library if nothing is selected. |
CustomTableModel |
populateTableModel(CustomTableModel ctm)
|
void |
populateTableModel(CustomTableModel ctm,
noTalent.MusicOutputDesign m)
|
void |
populateTableModel(CustomTableModel ctm,
java.util.Vector<java.lang.Integer> v)
|
void |
populateTableModel(CustomTableModel ctm,
java.util.Vector<java.lang.String> v,
int[] locations)
|
void |
populateTableModel2(CustomTableModel ctm,
java.util.Vector<java.lang.String> v)
|
void |
previous()
Stops the currently playing song and starts the previous song in the playlist. |
void |
previousGoogleImage()
|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
Invoked when task's progress property changes. |
javax.swing.RowFilter<CustomTableModel,java.lang.Object> |
regexSearch(java.lang.String filterText)
|
javax.swing.RowFilter<CustomTableModel,java.lang.Object> |
regexSearch(java.lang.String filterText,
int index)
|
void |
removeFromCurrentlyPlaying()
|
void |
removeSongsFromLibrary()
|
protected void |
setAllLibraryAlbumImages(java.sql.Statement stmt)
|
protected void |
setAllLibraryArtistImages(java.sql.Statement stmt)
|
void |
setFont()
|
void |
setFontColor()
|
void |
setTickSpacings(javax.swing.JSlider slider)
|
void |
showAboutBox()
Displays the about box. |
void |
showDirChooser()
Displays the Directory Chooser. |
void |
showErrorDialog(java.lang.Exception ex)
Displays the ErrorDialog |
void |
showFileChooser()
Displays the File Chooser |
noTalent.MusicOutputDesign |
showFileUnavailable(noTalent.MusicOutputDesign current)
|
void |
showLargeAlbumArtwork()
Displays AlbumArt dialog. |
void |
showMiniPlayer()
|
void |
showPreferences()
|
void |
showRating()
|
void |
showSmallAlbumArt(javax.swing.ImageIcon i,
java.lang.String s,
java.awt.Point p,
javax.swing.JLabel j)
|
void |
showSongInfo(javax.swing.JTable jT)
|
void |
showSongInfo(javax.swing.JTable jT,
java.util.Vector<noTalent.MusicOutputDesign> v)
Displays SongInfo Dialog |
void |
showSongSplash(noTalent.MusicOutputDesign m)
Displays the SongSplash dialog. |
void |
shuffle()
Shuffles the current playlist. |
javax.swing.DefaultListModel |
sortListModel(javax.swing.DefaultListModel dlm)
|
void |
stop()
Stops the current song being played. |
void |
updateTableAtLocation(noTalent.MusicOutputDesign m,
int location,
javax.swing.JTable jT)
Updates a table at one specific location. |
void |
updateVector(java.util.Vector<noTalent.MusicOutputDesign> v1,
noTalent.MusicOutputDesign m1,
javax.swing.JTable jT)
Updates an element in a vector with the latest information. |
void |
updateVectorAtLocation(java.util.Vector<java.lang.Integer> v1,
int location,
noTalent.MusicOutputDesign m1,
javax.swing.JTable jT)
|
void |
updateVectorAtLocation(java.util.Vector<java.lang.String> v1,
int location,
java.lang.String ID,
noTalent.MusicOutputDesign m1,
javax.swing.JTable jT)
|
Methods inherited from class org.jdesktop.application.FrameView |
---|
getFrame, getRootPane, setFrame |
Methods inherited from class org.jdesktop.application.View |
---|
getApplication, getComponent, getContext, getMenuBar, getResourceMap, getStatusBar, getToolBar, getToolBars, setComponent, setMenuBar, setStatusBar, setToolBar, setToolBars |
Methods inherited from class org.jdesktop.application.AbstractBean |
---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public javax.swing.JPopupMenu PlayingPopupMenu
public javax.swing.JPopupMenu PlaylistPopupMenu
public javax.swing.JPopupMenu SharedLibraryPopupMenu
public javax.swing.JPopupMenu ShowingPopupMenu
public javax.swing.JList addressList
public javax.swing.JLabel albumArtLabel
public javax.swing.JTextArea currentTrackInfoBox
public javax.swing.JTable currentlyPlayingTable
public javax.swing.JTable currentlyShowingTable
public javax.swing.JButton jButton7
public javax.swing.JButton jButton8
public javax.swing.JEditorPane jEditorPane1
public javax.swing.JLabel jLabel1
public javax.swing.JLabel jLabel2
public javax.swing.JLabel jLabel5
public javax.swing.JList jList1
public javax.swing.JList jList2
public javax.swing.JList jList3
public javax.swing.JPopupMenu jPopupMenu3
public javax.swing.JProgressBar jProgressBar1
public javax.swing.JScrollPane jScrollPane12
public javax.swing.JScrollPane jScrollPane2
public javax.swing.JScrollPane jScrollPane5
public javax.swing.JScrollPane jScrollPane7
public javax.swing.JSlider jSlider1
public javax.swing.JTabbedPane jTabbedPane1
public javax.swing.JTabbedPane jTabbedPane2
public javax.swing.JPanel mainPanel
public javax.swing.JMenuBar menuBar
public javax.swing.JButton nextTrackButton
public javax.swing.JButton pauseButton
public javax.swing.JButton playButton
public javax.swing.JTable playlistTable
public javax.swing.JButton previousTrackButton
public javax.swing.JLabel ratingLabel
public javax.swing.JTable sharedLibraryTable
public javax.swing.JList sharedPlayList
public javax.swing.JButton shuffleButton
public javax.swing.JButton stopButton
public javax.swing.JMenu jMenu2
public javax.swing.JMenu jMenu3
public Backend back
public java.util.Vector initial
public java.util.Vector<noTalent.MusicOutputDesign> allMusic
public double trackLength
public java.util.Timer timer
public java.util.Vector<java.lang.String> currentlyPlaying2
public boolean originalCP
public boolean originalCS
public java.util.Vector<java.lang.String> playList
public boolean originalPL
public javax.swing.Timer busyIconTimer
protected SongInfo songInfo
public SongSplash songSplash
public boolean playing
public java.lang.String[] columnNames
public java.util.Comparator previousComparator
public javax.swing.ImageIcon zeroSmiles
public javax.swing.ImageIcon oneSmile
public javax.swing.ImageIcon twoSmiles
public javax.swing.ImageIcon threeSmiles
public javax.swing.ImageIcon fourSmiles
public javax.swing.ImageIcon fiveSmiles
public javax.swing.ImageIcon noImage
public javax.swing.ImageIcon[] smileys
public javax.swing.ImageIcon musicBoxIcon16
public Database db
public boolean clicked
public double timeSkipped
public double finalPercent
public int changed
public musicbox.gui.MusicBoxView.Task task
public MusicBoxView p
public int googleImageLocation
public int imageResults
public java.lang.String googleSearch
public java.awt.Font projectFont
public java.awt.Color fontColor
public boolean internetConnection
public boolean errorMessage
public java.awt.Color progressBarColor
public javax.swing.LookAndFeel laf
public MiniPlayer mini
public javax.swing.JFrame pref
protected boolean foundMixer
protected SmallAlbumArt smallArt
protected CustomTableListener ctl
public java.util.Vector<noTalent.MusicOutputDesign> sharedLibrary
public java.lang.String serverAddress
Constructor Detail |
---|
public MusicBoxView(org.jdesktop.application.SingleFrameApplication app)
app
- Method Detail |
---|
public void executeTask()
public MusicBoxView getInstance()
public void connectToServer()
protected javax.swing.ImageIcon getAlbumArt(noTalent.MusicOutputDesign m)
m
-
protected void setAllLibraryArtistImages(java.sql.Statement stmt)
stmt
- protected void setAllLibraryAlbumImages(java.sql.Statement stmt)
stmt
- protected void createAllLibraryArtistPanels()
protected void createAllLibraryAlbumPanels()
public void setFont()
public void setFontColor()
public void showRating()
@Action public void showAboutBox()
public void showMiniPlayer()
@Action public void showDirChooser()
@Action public void showFileChooser()
public noTalent.MusicOutputDesign showFileUnavailable(noTalent.MusicOutputDesign current)
current
- @Action public void showLargeAlbumArtwork()
@Action public void showSmallAlbumArt(javax.swing.ImageIcon i, java.lang.String s, java.awt.Point p, javax.swing.JLabel j)
i
- s
- p
- j
- public void showPreferences()
@Action public void showSongSplash(noTalent.MusicOutputDesign m)
m
- information used to display in the dialog.@Action public void showSongInfo(javax.swing.JTable jT, java.util.Vector<noTalent.MusicOutputDesign> v)
jT
- The JTable that is selectedv
- The vector that corresponds with the JTable@Action public void showSongInfo(javax.swing.JTable jT)
@Action public void showErrorDialog(java.lang.Exception ex)
ex
- Exception to be displayed.public void updateVector(java.util.Vector<noTalent.MusicOutputDesign> v1, noTalent.MusicOutputDesign m1, javax.swing.JTable jT)
v1
- Vector to be updated.m1
- New information.jT
- JTable that is associated with the vector.public void updateVectorAtLocation(java.util.Vector<java.lang.Integer> v1, int location, noTalent.MusicOutputDesign m1, javax.swing.JTable jT)
public void updateVectorAtLocation(java.util.Vector<java.lang.String> v1, int location, java.lang.String ID, noTalent.MusicOutputDesign m1, javax.swing.JTable jT)
public javax.swing.RowFilter<CustomTableModel,java.lang.Object> regexSearch(java.lang.String filterText, int index)
public javax.swing.RowFilter<CustomTableModel,java.lang.Object> regexSearch(java.lang.String filterText)
public void updateTableAtLocation(noTalent.MusicOutputDesign m, int location, javax.swing.JTable jT)
m
- New informationlocation
- Location in the table to be updatedjT
- JTable to be updated.public void play()
public void pause() throws java.lang.InterruptedException
java.lang.InterruptedException
public void stop()
public void shuffle()
public void nextGoogleImage()
public void previousGoogleImage()
public void next()
public void previous()
public void fin()
public javax.swing.DefaultListModel sortListModel(javax.swing.DefaultListModel dlm)
dlm
-
public java.util.Vector<java.lang.String> getAllPlayLists()
protected java.util.Vector<noTalent.MusicOutputDesign> getAllInstancesOfArtist(java.lang.String s)
s
-
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
public boolean isPlaying()
public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent e)
hyperlinkUpdate
in interface javax.swing.event.HyperlinkListener
e
- public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
public void removeFromCurrentlyPlaying()
public void getCurrentlyPlaying()
public void getAllMusic()
public void populateTableModel(CustomTableModel ctm, noTalent.MusicOutputDesign m)
public CustomTableModel populateTableModel(CustomTableModel ctm)
public void populateTableModel2(CustomTableModel ctm, java.util.Vector<java.lang.String> v)
public void populateTableModel(CustomTableModel ctm, java.util.Vector<java.lang.Integer> v)
public void populateTableModel(CustomTableModel ctm, java.util.Vector<java.lang.String> v, int[] locations)
public void appendToPlayList(java.util.Vector<noTalent.MusicOutputDesign> v, javax.swing.JTable jT)
v
- Vector associated with the table.jT
- Table that is currently selected.public void appendToPlayList(java.util.Vector<java.lang.String> v, javax.swing.JTable jT, boolean flag)
public void appendToPlayList(java.util.Vector<noTalent.MusicOutputDesign> v)
v
- public void setTickSpacings(javax.swing.JSlider slider)
slider
- public void addSongsToPlaylist(java.lang.String name, javax.swing.JTable jT, java.util.Vector<noTalent.MusicOutputDesign> v)
name
- jT
- v
- public SocketListener getSocketListener()
public int getJList4PreviousSelection()
public void removeSongsFromLibrary()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |