TV-Browser 2.7.5 API

newsplugin
Class NewsDialog

java.lang.Object
  extended by newsplugin.NewsDialog
All Implemented Interfaces:
WindowClosingIf

public class NewsDialog
extends Object
implements WindowClosingIf

Shows the news.

Author:
Til Schneider, www.murfman.de

Constructor Summary
NewsDialog(Component parent, ArrayList<News> newsList, int newNewsCount)
          Creates a new instance of NewsDialog.
 
Method Summary
 void close()
          The closing method.
 JRootPane getRootPane()
           
 boolean isVisible()
           
 void show()
          Centers the dialog to its parent and shows it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewsDialog

public NewsDialog(Component parent,
                  ArrayList<News> newsList,
                  int newNewsCount)
Creates a new instance of NewsDialog.

Parameters:
parent - A component in the parent window tree.
newsList - The news to show.
newNewsCount - The number of news that should be marked as new.
Method Detail

show

public void show()
Centers the dialog to its parent and shows it.


close

public void close()
Description copied from interface: WindowClosingIf
The closing method.

Specified by:
close in interface WindowClosingIf

isVisible

public boolean isVisible()
Returns:
If this dialog is visible.

getRootPane

public JRootPane getRootPane()
Specified by:
getRootPane in interface WindowClosingIf
Returns:
The RootPane to register the Escape key action with.

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)