Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acs::logging::table::TablePopupMenu Class Reference

Collaboration diagram for alma::acs::logging::table::TablePopupMenu:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TablePopupMenu (LoggingClient logCli, LogEntryTable table)
void actionPerformed (ActionEvent e)
void show (Component invoker, int x, int y, int row, String txt)

Private Member Functions

void saveSelectedLogs ()

Private Attributes

JMenuItem showErrorStack = new JMenuItem("Show error stack")
JMenuItem copyClipboard = new JMenuItem("to clipboard")
JMenuItem copyAddInfo = new JMenuItem("to additionalInfo")
JMenuItem addUserInfo = new JMenuItem("add Info")
ImageIcon saveIcon = new ImageIcon(LogTypeHelper.class.getResource("/disk.png"))
JMenuItem saveSelected = new JMenuItem("Save selected logs...",saveIcon)
ImageIcon zoomIcon = new ImageIcon(LogTypeHelper.class.getResource("/zoom.png"))
JMenuItem zoomOverSelected = new JMenuItem("Drill down",zoomIcon)
String textToCopy
int row
String stackId
final LoggingClient loggingClient
final LogEntryTable table
final LogTableDataModel model
final DefaultListSelectionModel selectionModel
final TextTransfer textTransfer = new TextTransfer()

Detailed Description

The JPopupMenu displayed when the user presses the right mouse button over a row of the table

Author:
acaproni


Constructor & Destructor Documentation

alma::acs::logging::table::TablePopupMenu::TablePopupMenu LoggingClient  logCli,
LogEntryTable  table
[inline]
 

Constructor

Parameters:
row The row below the mouse pointer
col The col below he pointer
text The text below the pointer
logCli The LoggingClient


Member Function Documentation

void alma::acs::logging::table::TablePopupMenu::actionPerformed ActionEvent  e  )  [inline]
 

Handle the events from the menu

Parameters:
e The event

void alma::acs::logging::table::TablePopupMenu::saveSelectedLogs  )  [inline, private]
 

Save the selected logs into a file

void alma::acs::logging::table::TablePopupMenu::show Component  invoker,
int  x,
int  y,
int  row,
String  txt
[inline]
 

Show the popup menu

Parameters:
invoker the component in whose space the popup menu is to appear
x the x coordinate in invoker's coordinate space at which the popup menu is to be displayed
y the y coordinate in invoker's coordinate space at which the popup menu is to be displayed
row The row below the pointer
col The col below the pointer
txt The text below the pointer


Member Data Documentation

JMenuItem alma::acs::logging::table::TablePopupMenu::addUserInfo = new JMenuItem("add Info") [private]
 

The menu item to allow the user to add his information

JMenuItem alma::acs::logging::table::TablePopupMenu::copyAddInfo = new JMenuItem("to additionalInfo") [private]
 

The menu item to copy the text to the additional info field

JMenuItem alma::acs::logging::table::TablePopupMenu::copyClipboard = new JMenuItem("to clipboard") [private]
 

The menu item to copy the text to the clipboard

final LoggingClient alma::acs::logging::table::TablePopupMenu::loggingClient [private]
 

The LoggingClient

final LogTableDataModel alma::acs::logging::table::TablePopupMenu::model [private]
 

The model

int alma::acs::logging::table::TablePopupMenu::row [private]
 

The row and column under the mouse pointer

ImageIcon alma::acs::logging::table::TablePopupMenu::saveIcon = new ImageIcon(LogTypeHelper.class.getResource("/disk.png")) [private]
 

The icon of the menu item to save selected logs

JMenuItem alma::acs::logging::table::TablePopupMenu::saveSelected = new JMenuItem("Save selected logs...",saveIcon) [private]
 

The menu item to save the selected logs

final DefaultListSelectionModel alma::acs::logging::table::TablePopupMenu::selectionModel [private]
 

The selection model

JMenuItem alma::acs::logging::table::TablePopupMenu::showErrorStack = new JMenuItem("Show error stack") [private]
 

The menu item to show the error stack.

It is enabled only if the stack ID is not null

String alma::acs::logging::table::TablePopupMenu::stackId [private]
 

This property is used to select the logs for the error browser. Its value is initialized in the constructor by reading the STACKID of the selected log.

final LogEntryTable alma::acs::logging::table::TablePopupMenu::table [private]
 

The table

String alma::acs::logging::table::TablePopupMenu::textToCopy [private]
 

The text to copy

final TextTransfer alma::acs::logging::table::TablePopupMenu::textTransfer = new TextTransfer() [private]
 

The helper for the clipboard

ImageIcon alma::acs::logging::table::TablePopupMenu::zoomIcon = new ImageIcon(LogTypeHelper.class.getResource("/zoom.png")) [private]
 

The icon of the menu item to save selected logs

JMenuItem alma::acs::logging::table::TablePopupMenu::zoomOverSelected = new JMenuItem("Drill down",zoomIcon) [private]
 

The menu item to save the selected logs


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 02:53:59 2009 for ACS Java API by doxygen 1.3.8