ds.ov2.gui
Class Applet_list_actions

java.lang.Object
  extended by ds.ov2.gui.Applet_list_actions

public class Applet_list_actions
extends Object

GUI actions for the applet list dialog.

CPP Preprocessing
no cpp preprocessing needed
Execution Environment:
host
Author:
Hendrik Tews
Version:
$Revision: 1.2 $
Last Commit:
$Date: 2009-05-11 15:23:10 $ by $Author: tews $

Field Summary
private  Applet_list_window applet_list_window
          Swing dialog window instance or null if the dialog is currently not open.
private  Gui_actions gui_actions
          The GUI actions instance.
 
Constructor Summary
Applet_list_actions(Gui_actions gui_actions)
          Constructor.
 
Method Summary
 void close(Applet_list_window alw)
          Close the applet list dialog.
 void delete_selected_applets(Applet_list_window alw)
          Action for the "Delete applets" button.
(package private)  Applet_list_window get_applet_list_window()
          Return the applet list window or throw an assertion if no such window is registered.
(package private)  void refresh(Applet_list_window alw)
          Reread the status of the card.
(package private)  void register_applet_list_window(Applet_list_window applet_list_window)
          Register a new applet list window.
(package private)  void reset_applet_list_window()
          Reset the applet_list_window to null.
(package private)  void select_all(Applet_list_window alw, boolean select)
          Select or deselect all applets/packages for deletion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gui_actions

private final Gui_actions gui_actions
The GUI actions instance.


applet_list_window

private Applet_list_window applet_list_window
Swing dialog window instance or null if the dialog is currently not open. Initialized in the constructor of Applet_list_window. Resetting this to null lies in the responsibility of those who control the dialog.

Constructor Detail

Applet_list_actions

public Applet_list_actions(Gui_actions gui_actions)
Constructor. Store the GUI actions instance internally to use it later.

Parameters:
gui_actions - the GUI actions instance
Method Detail

register_applet_list_window

void register_applet_list_window(Applet_list_window applet_list_window)
Register a new applet list window.

Parameters:
applet_list_window - the new dialog window

reset_applet_list_window

void reset_applet_list_window()
Reset the applet_list_window to null. Must be called, when the dialog is closed.


get_applet_list_window

Applet_list_window get_applet_list_window()
Return the applet list window or throw an assertion if no such window is registered.

Returns:
the applet list window instance

delete_selected_applets

public void delete_selected_applets(Applet_list_window alw)
Action for the "Delete applets" button. Tell the background thread to delete the selected applets/packages from the card.


close

public void close(Applet_list_window alw)
Close the applet list dialog.

Parameters:
alw - the applet list dialog

refresh

void refresh(Applet_list_window alw)
Reread the status of the card.

Parameters:
alw - the applet list dialog

select_all

void select_all(Applet_list_window alw,
                boolean select)
Select or deselect all applets/packages for deletion.

Parameters:
alw - the applet list dialog
select - if true select, if false deselect