/src/main/java/com/bff/slimserver/musicjukebox/ui/components/radio/RadioInfoPanel.java

https://code.google.com/ · Java · 532 lines · 370 code · 67 blank · 95 comment · 43 complexity · fa34862ddf43695c31aa981c7074f693 MD5 · raw file

  1. /*
  2. * SongInfoPanel.java
  3. *
  4. * Created on September 19, 2005, 3:04 PM
  5. */
  6. package com.bff.slimserver.musicjukebox.ui.components.radio;
  7. import com.bff.slimserver.musicjukebox.ui.ThumbnailPanel;
  8. import com.bff.bjj.ui.component.ColorProperties;
  9. import com.bff.bjj.ui.component.BJJPanel;
  10. import java.awt.BorderLayout;
  11. import java.awt.Dimension;
  12. import org.bff.squeezeserver.domain.radio.RadioAudioDetails;
  13. /**
  14. *
  15. * @author Bill
  16. */
  17. public class RadioInfoPanel
  18. extends BJJPanel {
  19. private ThumbnailPanel thumbnailPanel;
  20. private boolean showArt;
  21. public RadioInfoPanel() {
  22. this(null, false);
  23. }
  24. public RadioInfoPanel(boolean showImageArt) {
  25. this(null, showImageArt);
  26. }
  27. public RadioInfoPanel(RadioAudioDetails podcast, boolean showImageArt) {
  28. initComponents();
  29. this.showArt = showImageArt;
  30. if (showImageArt) {
  31. thumbnailPanel = new ThumbnailPanel();
  32. thumbnailPanel.setPreferredSize(new Dimension(300, 300));
  33. thumbPanel.add(thumbnailPanel);
  34. } else {
  35. remove(thumbPanel);
  36. remove(songScrollPane);
  37. add(songScrollPane, BorderLayout.CENTER);
  38. }
  39. if (podcast != null) {
  40. validateFields(podcast);
  41. setSongInfo(podcast);
  42. }
  43. }
  44. /** This method is called from within the constructor to
  45. * initialize the form.
  46. * WARNING: Do NOT modify this code. The content of this method is
  47. * always regenerated by the Form Editor.
  48. */
  49. // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  50. private void initComponents() {
  51. java.awt.GridBagConstraints gridBagConstraints;
  52. jPanel2 = new BJJPanel();
  53. thumbPanel = new BJJPanel();
  54. thumbPanel.setBackground(ColorProperties.PANEL_COVER_ART_BACKGROUND);
  55. songScrollPane = new javax.swing.JScrollPane();
  56. jPanel1 = new javax.swing.JPanel();
  57. jLabel1 = new javax.swing.JLabel();
  58. lblArtist = new javax.swing.JLabel();
  59. jLabel3 = new javax.swing.JLabel();
  60. lblAlbum = new javax.swing.JLabel();
  61. jLabel5 = new javax.swing.JLabel();
  62. lblTitle = new javax.swing.JLabel();
  63. jLabel7 = new javax.swing.JLabel();
  64. lblTrack = new javax.swing.JLabel();
  65. jLabel9 = new javax.swing.JLabel();
  66. lblYear = new javax.swing.JLabel();
  67. jLabel11 = new javax.swing.JLabel();
  68. lblBitrate = new javax.swing.JLabel();
  69. jLabel12 = new javax.swing.JLabel();
  70. lblComment = new javax.swing.JLabel();
  71. jLabel13 = new javax.swing.JLabel();
  72. lblType = new javax.swing.JLabel();
  73. jLabel15 = new javax.swing.JLabel();
  74. lblUrl = new javax.swing.JLabel();
  75. setForeground(new java.awt.Color(102, 102, 102));
  76. setLayout(new javax.swing.BoxLayout(this, javax.swing.BoxLayout.PAGE_AXIS));
  77. jPanel2.setMaximumSize(new java.awt.Dimension(310, 310));
  78. thumbPanel.setMaximumSize(new java.awt.Dimension(300, 300));
  79. thumbPanel.setMinimumSize(new java.awt.Dimension(300, 300));
  80. thumbPanel.setPreferredSize(new java.awt.Dimension(300, 300));
  81. jPanel2.add(thumbPanel);
  82. add(jPanel2);
  83. songScrollPane.setBorder(null);
  84. jPanel1.setBackground(java.awt.Color.lightGray);
  85. jPanel1.setLayout(new java.awt.GridBagLayout());
  86. jLabel1.setFont(new java.awt.Font("Tahoma", 1, 11));
  87. jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
  88. jLabel1.setText("Artist:");
  89. jLabel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 5));
  90. gridBagConstraints = new java.awt.GridBagConstraints();
  91. gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
  92. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  93. gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
  94. jPanel1.add(jLabel1, gridBagConstraints);
  95. lblArtist.setForeground(new java.awt.Color(0, 102, 255));
  96. gridBagConstraints = new java.awt.GridBagConstraints();
  97. gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
  98. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  99. gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5);
  100. jPanel1.add(lblArtist, gridBagConstraints);
  101. jLabel3.setFont(new java.awt.Font("Tahoma", 1, 11));
  102. jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
  103. jLabel3.setText("Album:");
  104. jLabel3.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 5));
  105. gridBagConstraints = new java.awt.GridBagConstraints();
  106. gridBagConstraints.gridx = 0;
  107. gridBagConstraints.gridy = 1;
  108. gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
  109. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  110. gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
  111. jPanel1.add(jLabel3, gridBagConstraints);
  112. lblAlbum.setForeground(new java.awt.Color(0, 102, 255));
  113. gridBagConstraints = new java.awt.GridBagConstraints();
  114. gridBagConstraints.gridx = 1;
  115. gridBagConstraints.gridy = 1;
  116. gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
  117. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  118. gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5);
  119. jPanel1.add(lblAlbum, gridBagConstraints);
  120. jLabel5.setFont(new java.awt.Font("Tahoma", 1, 11));
  121. jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
  122. jLabel5.setText("Title:");
  123. jLabel5.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 5));
  124. gridBagConstraints = new java.awt.GridBagConstraints();
  125. gridBagConstraints.gridx = 0;
  126. gridBagConstraints.gridy = 2;
  127. gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
  128. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  129. gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
  130. jPanel1.add(jLabel5, gridBagConstraints);
  131. lblTitle.setForeground(new java.awt.Color(0, 102, 255));
  132. gridBagConstraints = new java.awt.GridBagConstraints();
  133. gridBagConstraints.gridx = 1;
  134. gridBagConstraints.gridy = 2;
  135. gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
  136. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  137. gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5);
  138. jPanel1.add(lblTitle, gridBagConstraints);
  139. jLabel7.setFont(new java.awt.Font("Tahoma", 1, 11));
  140. jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
  141. jLabel7.setText("Track:");
  142. jLabel7.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 5));
  143. gridBagConstraints = new java.awt.GridBagConstraints();
  144. gridBagConstraints.gridx = 0;
  145. gridBagConstraints.gridy = 3;
  146. gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
  147. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  148. gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
  149. jPanel1.add(jLabel7, gridBagConstraints);
  150. lblTrack.setForeground(new java.awt.Color(0, 102, 255));
  151. gridBagConstraints = new java.awt.GridBagConstraints();
  152. gridBagConstraints.gridx = 1;
  153. gridBagConstraints.gridy = 3;
  154. gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
  155. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  156. gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5);
  157. jPanel1.add(lblTrack, gridBagConstraints);
  158. jLabel9.setFont(new java.awt.Font("Tahoma", 1, 11));
  159. jLabel9.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
  160. jLabel9.setText("Year:");
  161. jLabel9.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 5));
  162. gridBagConstraints = new java.awt.GridBagConstraints();
  163. gridBagConstraints.gridx = 0;
  164. gridBagConstraints.gridy = 4;
  165. gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
  166. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  167. gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
  168. jPanel1.add(jLabel9, gridBagConstraints);
  169. lblYear.setForeground(new java.awt.Color(0, 102, 255));
  170. gridBagConstraints = new java.awt.GridBagConstraints();
  171. gridBagConstraints.gridx = 1;
  172. gridBagConstraints.gridy = 4;
  173. gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
  174. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  175. gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5);
  176. jPanel1.add(lblYear, gridBagConstraints);
  177. jLabel11.setFont(new java.awt.Font("Tahoma", 1, 11));
  178. jLabel11.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
  179. jLabel11.setText("Bitrate:");
  180. jLabel11.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 5));
  181. gridBagConstraints = new java.awt.GridBagConstraints();
  182. gridBagConstraints.gridx = 0;
  183. gridBagConstraints.gridy = 5;
  184. gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
  185. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  186. gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
  187. jPanel1.add(jLabel11, gridBagConstraints);
  188. lblBitrate.setForeground(new java.awt.Color(0, 102, 255));
  189. gridBagConstraints = new java.awt.GridBagConstraints();
  190. gridBagConstraints.gridx = 1;
  191. gridBagConstraints.gridy = 5;
  192. gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
  193. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  194. gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5);
  195. jPanel1.add(lblBitrate, gridBagConstraints);
  196. jLabel12.setFont(new java.awt.Font("Tahoma", 1, 11));
  197. jLabel12.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
  198. jLabel12.setText("Comment:");
  199. jLabel12.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 5));
  200. gridBagConstraints = new java.awt.GridBagConstraints();
  201. gridBagConstraints.gridx = 0;
  202. gridBagConstraints.gridy = 6;
  203. gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
  204. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  205. gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
  206. jPanel1.add(jLabel12, gridBagConstraints);
  207. lblComment.setForeground(new java.awt.Color(0, 102, 255));
  208. gridBagConstraints = new java.awt.GridBagConstraints();
  209. gridBagConstraints.gridx = 1;
  210. gridBagConstraints.gridy = 6;
  211. gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
  212. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  213. gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5);
  214. jPanel1.add(lblComment, gridBagConstraints);
  215. jLabel13.setFont(new java.awt.Font("Tahoma", 1, 11));
  216. jLabel13.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
  217. jLabel13.setText("Type:");
  218. jLabel13.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 5));
  219. gridBagConstraints = new java.awt.GridBagConstraints();
  220. gridBagConstraints.gridx = 0;
  221. gridBagConstraints.gridy = 7;
  222. gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
  223. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  224. gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
  225. jPanel1.add(jLabel13, gridBagConstraints);
  226. lblType.setForeground(new java.awt.Color(0, 102, 255));
  227. gridBagConstraints = new java.awt.GridBagConstraints();
  228. gridBagConstraints.gridx = 1;
  229. gridBagConstraints.gridy = 7;
  230. gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
  231. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  232. gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5);
  233. jPanel1.add(lblType, gridBagConstraints);
  234. jLabel15.setFont(new java.awt.Font("Tahoma", 1, 11));
  235. jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
  236. jLabel15.setText("Url:");
  237. jLabel15.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 5));
  238. gridBagConstraints = new java.awt.GridBagConstraints();
  239. gridBagConstraints.gridx = 0;
  240. gridBagConstraints.gridy = 8;
  241. gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
  242. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  243. gridBagConstraints.insets = new java.awt.Insets(0, 5, 0, 0);
  244. jPanel1.add(jLabel15, gridBagConstraints);
  245. lblUrl.setForeground(new java.awt.Color(0, 102, 255));
  246. gridBagConstraints = new java.awt.GridBagConstraints();
  247. gridBagConstraints.gridx = 1;
  248. gridBagConstraints.gridy = 8;
  249. gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
  250. gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
  251. gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 5);
  252. jPanel1.add(lblUrl, gridBagConstraints);
  253. songScrollPane.setViewportView(jPanel1);
  254. add(songScrollPane);
  255. }// </editor-fold>//GEN-END:initComponents
  256. // Variables declaration - do not modify//GEN-BEGIN:variables
  257. private javax.swing.JLabel jLabel1;
  258. private javax.swing.JLabel jLabel11;
  259. private javax.swing.JLabel jLabel12;
  260. private javax.swing.JLabel jLabel13;
  261. private javax.swing.JLabel jLabel15;
  262. private javax.swing.JLabel jLabel3;
  263. private javax.swing.JLabel jLabel5;
  264. private javax.swing.JLabel jLabel7;
  265. private javax.swing.JLabel jLabel9;
  266. private javax.swing.JPanel jPanel1;
  267. private javax.swing.JPanel jPanel2;
  268. private javax.swing.JLabel lblAlbum;
  269. private javax.swing.JLabel lblArtist;
  270. private javax.swing.JLabel lblBitrate;
  271. private javax.swing.JLabel lblComment;
  272. private javax.swing.JLabel lblTitle;
  273. private javax.swing.JLabel lblTrack;
  274. private javax.swing.JLabel lblType;
  275. private javax.swing.JLabel lblUrl;
  276. private javax.swing.JLabel lblYear;
  277. private javax.swing.JScrollPane songScrollPane;
  278. private javax.swing.JPanel thumbPanel;
  279. // End of variables declaration//GEN-END:variables
  280. /**
  281. * Pass null to remove all info
  282. * @param song
  283. */
  284. public void setSongInfo(final RadioAudioDetails song) {
  285. if (song != null) {
  286. validateFields(song);
  287. try {
  288. if (song != null) {
  289. validateFields(song);
  290. if (showArt) {
  291. new Thread(new Runnable() {
  292. @Override
  293. public void run() {
  294. thumbnailPanel.loadImage(song);
  295. }
  296. }).start();
  297. }
  298. } else {
  299. lblAlbum.setText("");
  300. lblArtist.setText("");
  301. lblTitle.setText("");
  302. lblTrack.setText("");
  303. jLabel12.setVisible(true);
  304. lblComment.setVisible(true);
  305. lblComment.setText("");
  306. setBitrate("");
  307. jLabel9.setVisible(true);
  308. lblYear.setVisible(true);
  309. lblYear.setText("");
  310. if (showArt) {
  311. thumbnailPanel.removeImage();
  312. }
  313. }
  314. } catch (NullPointerException npe) {
  315. //dont give a shit
  316. npe.printStackTrace();
  317. }
  318. }
  319. }
  320. public void setBitrate(String bitrate) {
  321. lblBitrate.setText(bitrate);
  322. /*
  323. if (bitrate < 0) {
  324. jLabel11.setVisible(false);
  325. lblBitrate.setVisible(false);
  326. } else {
  327. jLabel11.setVisible(true);
  328. lblBitrate.setVisible(true);
  329. }
  330. if (bitrate > 0) {
  331. jLabel11.setVisible(true);
  332. lblBitrate.setVisible(true);
  333. if (bitrate > 1000) {
  334. lblBitrate.setText(Integer.toString(bitrate / 1000) + " kpbs");
  335. } else {
  336. lblBitrate.setText(Integer.toString(bitrate) + " kbps");
  337. }
  338. }
  339. */
  340. }
  341. private void validateFields(RadioAudioDetails podcast) {
  342. lblTitle.setText(podcast.getTitle());
  343. if (podcast.getComment() == null || "".equals(podcast.getComment())) {
  344. jLabel12.setVisible(false);
  345. lblComment.setVisible(false);
  346. lblComment.setText(podcast.getComment());
  347. } else {
  348. jLabel12.setVisible(true);
  349. lblComment.setVisible(true);
  350. }
  351. if (podcast.getBitrate() == null || "".equals(podcast.getBitrate())) {
  352. jLabel11.setVisible(false);
  353. lblBitrate.setVisible(false);
  354. } else {
  355. jLabel11.setVisible(true);
  356. lblBitrate.setVisible(true);
  357. setBitrate(podcast.getBitrate());
  358. }
  359. if (podcast.getArtist() == null || "".equals(podcast.getArtist())) {
  360. jLabel1.setVisible(false);
  361. lblArtist.setVisible(false);
  362. } else {
  363. jLabel1.setVisible(true);
  364. lblArtist.setVisible(true);
  365. lblArtist.setText(podcast.getArtist());
  366. }
  367. if (podcast.getAlbum() == null ||
  368. "".equals(podcast.getAlbum().getName()) ||
  369. podcast.getAlbum().getName() == null) {
  370. jLabel3.setVisible(false);
  371. lblAlbum.setVisible(false);
  372. } else {
  373. jLabel3.setVisible(true);
  374. lblAlbum.setVisible(true);
  375. lblAlbum.setText(podcast.getAlbum().getName());
  376. }
  377. if (podcast.getTrack() < 1) {
  378. jLabel7.setVisible(false);
  379. lblTrack.setVisible(false);
  380. } else {
  381. jLabel7.setVisible(true);
  382. lblTrack.setVisible(true);
  383. lblTrack.setText(Integer.toString(podcast.getTrack()));
  384. }
  385. if (podcast.getYear() == null || "".equals(podcast.getYear()) || "0".equals(podcast.getYear())) {
  386. jLabel9.setVisible(false);
  387. lblYear.setVisible(false);
  388. } else {
  389. jLabel9.setVisible(true);
  390. lblYear.setVisible(true);
  391. lblYear.setText(podcast.getYear());
  392. }
  393. if (podcast.isRemote() && podcast.getType() != null && !"".equalsIgnoreCase(podcast.getType())) {
  394. jLabel13.setVisible(true);
  395. lblType.setVisible(true);
  396. lblType.setText(podcast.getType());
  397. } else {
  398. jLabel13.setVisible(false);
  399. lblType.setVisible(false);
  400. }
  401. // if (podcast.getPubDate() != null && !"".equalsIgnoreCase(podcast.getPubDate())) {
  402. // jLabel14.setVisible(true);
  403. // lblDate.setVisible(true);
  404. // lblDate.setText(podcast.getPubDate());
  405. // } else {
  406. // jLabel14.setVisible(false);
  407. // lblDate.setVisible(false);
  408. // }
  409. if (podcast.getUrl() != null && !"".equalsIgnoreCase(podcast.getUrl())) {
  410. jLabel15.setVisible(true);
  411. lblUrl.setVisible(true);
  412. lblUrl.setText(podcast.getUrl());
  413. } else {
  414. jLabel15.setVisible(false);
  415. lblUrl.setVisible(false);
  416. }
  417. // if (podcast.getDescription() != null && !"".equalsIgnoreCase(podcast.getDescription())) {
  418. // jLabel16.setVisible(true);
  419. // taDescription.setVisible(true);
  420. // taDescription.setText(podcast.getDescription());
  421. // } else {
  422. // jLabel16.setVisible(false);
  423. // taDescription.setVisible(false);
  424. // }
  425. //
  426. // if (podcast.getSummary() != null && !"".equalsIgnoreCase(podcast.getSummary())) {
  427. // jLabel17.setVisible(true);
  428. // taSummary.setVisible(true);
  429. // taSummary.setText(podcast.getSummary());
  430. // } else {
  431. // jLabel17.setVisible(false);
  432. // taSummary.setVisible(false);
  433. // }
  434. // if (podcast.getSubTitle() != null &&
  435. // !"".equalsIgnoreCase(podcast.getSubTitle()) &&
  436. // !podcast.getSubTitle().equalsIgnoreCase(podcast.getSummary()) &&
  437. // !podcast.getSubTitle().equalsIgnoreCase(podcast.getDescription())) {
  438. // jLabel18.setVisible(true);
  439. // taSubtitle.setVisible(true);
  440. // taSubtitle.setText(podcast.getSummary());
  441. // } else {
  442. // jLabel18.setVisible(false);
  443. // taSubtitle.setVisible(false);
  444. // }
  445. //
  446. // if (podcast.getDuration() != null && !"".equalsIgnoreCase(podcast.getDuration())) {
  447. // jLabel19.setVisible(true);
  448. // lblDuration.setVisible(true);
  449. // lblDuration.setText(podcast.getDuration());
  450. // } else {
  451. // jLabel19.setVisible(false);
  452. // lblDuration.setVisible(false);
  453. // }
  454. //
  455. // if (podcast.getExplicit() != null && !"".equalsIgnoreCase(podcast.getExplicit())) {
  456. // jLabel20.setVisible(true);
  457. // lblExplicit.setVisible(true);
  458. // lblExplicit.setText(podcast.getExplicit());
  459. // } else {
  460. // jLabel20.setVisible(false);
  461. // lblExplicit.setVisible(false);
  462. // }
  463. }
  464. }