

Classes | |
| class | CustomFileChooser |
| class | TextTransfer |
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 (LogConverter converter, ImageIcon fileIcon, String extension) |
| String | buildFields () |
| void | copyToClipboard (LogConverter converter) |
Private Attributes | |
| final JMenuItem | showErrorStack = new JMenuItem("Show error stack") |
| final JMenuItem | addUserInfo = new JMenuItem("add Info") |
| final ImageIcon | saveIcon = new ImageIcon(LogTypeHelper.class.getResource("/disk.png")) |
| final JMenu | saveSelected = new JMenu("Save selected logs...") |
| final ImageIcon | saveXmlIcon = new ImageIcon(LogTypeHelper.class.getResource("/xml-file.png")) |
| final JMenuItem | saveSelectedAsXML = new JMenuItem("Save as XML",saveXmlIcon) |
| final ImageIcon | saveTextIcon = new ImageIcon(LogTypeHelper.class.getResource("/text-files.gif")) |
| final JMenuItem | saveSelectedAsText = new JMenuItem("Save as text",saveTextIcon) |
| final ImageIcon | saveTwikiTableIcon = new ImageIcon(LogTypeHelper.class.getResource("/T-twiki.gif")) |
| final JMenuItem | saveSelectedAsTwiki = new JMenuItem("Save as twiki table",saveTwikiTableIcon) |
| final ImageIcon | saveCsvIcon = new ImageIcon(LogTypeHelper.class.getResource("/csv-files.png")) |
| final JMenuItem | saveSelectedAsCSV = new JMenuItem("Save as CSV",saveCsvIcon) |
| final ImageIcon | zoomIcon = new ImageIcon(LogTypeHelper.class.getResource("/zoom.png")) |
| final JMenuItem | zoomOverSelected = new JMenuItem("Drill down",zoomIcon) |
| LogTableRowSorter | sorter |
| final ImageIcon | clipboardIcon = new ImageIcon(LogTypeHelper.class.getResource("/clipboard.png")) |
| final JMenu | copyClipboard = new JMenu("to clipboard") |
| JMenuItem | copyClipTxt = new JMenuItem("Copy as text",saveTextIcon) |
| JMenuItem | copyClipXml = new JMenuItem("Copy as XML",saveXmlIcon) |
| JMenuItem | copyClipTwikiTable = new JMenuItem("Copy as TwikiTable",saveTwikiTableIcon) |
| JMenuItem | copyClipCSV = new JMenuItem("Copy as CSV",saveCsvIcon) |
| String | textToCopy |
| int | row |
| String | stackId |
| final LoggingClient | loggingClient |
| final LogEntryTable | table |
| final LogTableDataModel | model |
| final DefaultListSelectionModel | selectionModel |
| final TextTransfer | textTransfer = new TextTransfer() |
The JPopupMenu displayed when the user presses the right mouse button over a row of the table
| alma::acs::logging::table::TablePopupMenu::TablePopupMenu | ( | LoggingClient | logCli, | |
| LogEntryTable | table | |||
| ) | [inline] |
Constructor
| row | The row below the mouse pointer | |
| col | The col below he pointer | |
| text | The text below the pointer | |
| logCli | The LoggingClient |
References addUserInfo, clipboardIcon, copyClipboard, copyClipCSV, copyClipTwikiTable, copyClipTxt, copyClipXml, alma::acs::logging::table::LogEntryTable::getLCModel(), loggingClient, model, saveIcon, saveSelected, saveSelectedAsCSV, saveSelectedAsText, saveSelectedAsTwiki, saveSelectedAsXML, selectionModel, showErrorStack, sorter, and zoomOverSelected.
| void alma::acs::logging::table::TablePopupMenu::actionPerformed | ( | ActionEvent | e | ) | [inline] |
Handle the events from the menu
| e | The event |
References com::cosylab::logging::engine::log::ILogEntry::addData(), com::cosylab::logging::LoggingClient::addErrorTab(), addUserInfo, copyClipCSV, copyClipTwikiTable, copyClipTxt, copyClipXml, copyToClipboard(), com::cosylab::logging::settings::UserInfoDlg::getInfo(), com::cosylab::logging::settings::UserInfoDlg::getInfoName(), alma::acs::logging::table::LogEntryTableModelBase::getVisibleLogEntry(), loggingClient, model, com::cosylab::logging::settings::UserInfoDlg::okPressed(), alma::acs::logging::table::LogEntryTableModelBase::replaceLog(), row, saveCsvIcon, saveSelectedAsCSV, saveSelectedAsText, saveSelectedAsTwiki, saveSelectedAsXML, saveSelectedLogs(), saveTextIcon, saveTwikiTableIcon, saveXmlIcon, com::cosylab::logging::LoggingClient::setLogDetailContent(), showErrorStack, stackId, table, textToCopy, alma::acs::logging::table::LogEntryTable::zoom(), and zoomOverSelected.
| String alma::acs::logging::table::TablePopupMenu::buildFields | ( | ) | [inline, private] |
Build the string of log fields to write in the output
References table.
Referenced by copyToClipboard(), and saveSelectedLogs().
| void alma::acs::logging::table::TablePopupMenu::copyToClipboard | ( | LogConverter | converter | ) | [inline, private] |
References buildFields(), alma::acs::logging::tools::LogConverter::convert(), alma::acs::logging::table::LogEntryTableModelBase::getVisibleLogEntry(), model, selectionModel, alma::acs::logging::table::TablePopupMenu::TextTransfer::setClipboardContents(), alma::acs::logging::tools::LogConverter::setCols(), table, and textTransfer.
Referenced by actionPerformed().
| void alma::acs::logging::table::TablePopupMenu::saveSelectedLogs | ( | LogConverter | converter, | |
| ImageIcon | fileIcon, | |||
| String | extension | |||
| ) | [inline, private] |
Save the selected logs into a file in the passed format.
| converter | The converter to desired format | |
| fileIcon | The icon of the file type |
References buildFields(), alma::acs::logging::tools::LogConverter::convert(), alma::acs::logging::table::LogEntryTableModelBase::getVisibleLogEntry(), model, selectionModel, alma::acs::logging::tools::LogConverter::setCols(), and sorter.
Referenced by actionPerformed().
| void alma::acs::logging::table::TablePopupMenu::show | ( | Component | invoker, | |
| int | x, | |||
| int | y, | |||
| int | row, | |||
| String | txt | |||
| ) | [inline] |
Show the popup menu
| 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 |
References addUserInfo, copyClipboard, com::cosylab::logging::engine::log::ILogEntry::getField(), alma::acs::logging::table::LogEntryTableModelBase::getVisibleLogEntry(), com::cosylab::logging::LoggingClient::getZoomManager(), alma::acs::logging::archive::zoom::ZoomManager::isAvailable(), loggingClient, model, saveSelected, selectionModel, showErrorStack, stackId, table, textToCopy, and zoomOverSelected.
Referenced by alma::acs::logging::table::LogEntryTable::TableMouseAdapter::mousePressed().
final JMenuItem alma::acs::logging::table::TablePopupMenu::addUserInfo = new JMenuItem("add Info") [private] |
The menu item to allow the user to add his information
Referenced by actionPerformed(), show(), and TablePopupMenu().
final ImageIcon alma::acs::logging::table::TablePopupMenu::clipboardIcon = new ImageIcon(LogTypeHelper.class.getResource("/clipboard.png")) [private] |
The icon of the clipboard menu item
Referenced by TablePopupMenu().
final JMenu alma::acs::logging::table::TablePopupMenu::copyClipboard = new JMenu("to clipboard") [private] |
The menu to copy the text to the clipboard
Referenced by show(), and TablePopupMenu().
JMenuItem alma::acs::logging::table::TablePopupMenu::copyClipCSV = new JMenuItem("Copy as CSV",saveCsvIcon) [private] |
Copy the clipboard as CSV
Referenced by actionPerformed(), and TablePopupMenu().
JMenuItem alma::acs::logging::table::TablePopupMenu::copyClipTwikiTable = new JMenuItem("Copy as TwikiTable",saveTwikiTableIcon) [private] |
Copy the clipboard as twiki table
Referenced by actionPerformed(), and TablePopupMenu().
JMenuItem alma::acs::logging::table::TablePopupMenu::copyClipTxt = new JMenuItem("Copy as text",saveTextIcon) [private] |
Copy the clipboard as text
Referenced by actionPerformed(), and TablePopupMenu().
JMenuItem alma::acs::logging::table::TablePopupMenu::copyClipXml = new JMenuItem("Copy as XML",saveXmlIcon) [private] |
Copy the clipboard as XML
Referenced by actionPerformed(), and TablePopupMenu().
The LoggingClient
Referenced by actionPerformed(), show(), and TablePopupMenu().
final LogTableDataModel alma::acs::logging::table::TablePopupMenu::model [private] |
The model
Referenced by actionPerformed(), copyToClipboard(), saveSelectedLogs(), show(), and TablePopupMenu().
int alma::acs::logging::table::TablePopupMenu::row [private] |
The row and column under the mouse pointer
Referenced by actionPerformed().
final ImageIcon alma::acs::logging::table::TablePopupMenu::saveCsvIcon = new ImageIcon(LogTypeHelper.class.getResource("/csv-files.png")) [private] |
The icon of the menu item to save selected logs as twiki table
Referenced by actionPerformed().
final 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
Referenced by TablePopupMenu().
final JMenu alma::acs::logging::table::TablePopupMenu::saveSelected = new JMenu("Save selected logs...") [private] |
The sub menu item to save the selected logs
Referenced by show(), and TablePopupMenu().
final JMenuItem alma::acs::logging::table::TablePopupMenu::saveSelectedAsCSV = new JMenuItem("Save as CSV",saveCsvIcon) [private] |
The menu item to save selected logs as plain ASCII (CSV)
Referenced by actionPerformed(), and TablePopupMenu().
final JMenuItem alma::acs::logging::table::TablePopupMenu::saveSelectedAsText = new JMenuItem("Save as text",saveTextIcon) [private] |
The menu item to save selected logs as plain ASCII
Referenced by actionPerformed(), and TablePopupMenu().
final JMenuItem alma::acs::logging::table::TablePopupMenu::saveSelectedAsTwiki = new JMenuItem("Save as twiki table",saveTwikiTableIcon) [private] |
The menu item to save selected logs as plain ASCII (twiki table)
Referenced by actionPerformed(), and TablePopupMenu().
final JMenuItem alma::acs::logging::table::TablePopupMenu::saveSelectedAsXML = new JMenuItem("Save as XML",saveXmlIcon) [private] |
The menu item to save selected logs as XML
Referenced by actionPerformed(), and TablePopupMenu().
final ImageIcon alma::acs::logging::table::TablePopupMenu::saveTextIcon = new ImageIcon(LogTypeHelper.class.getResource("/text-files.gif")) [private] |
The icon of the menu item to save selected logs as twiki table
Referenced by actionPerformed().
final ImageIcon alma::acs::logging::table::TablePopupMenu::saveTwikiTableIcon = new ImageIcon(LogTypeHelper.class.getResource("/T-twiki.gif")) [private] |
The icon of the menu item to save selected logs as twiki table
Referenced by actionPerformed().
final ImageIcon alma::acs::logging::table::TablePopupMenu::saveXmlIcon = new ImageIcon(LogTypeHelper.class.getResource("/xml-file.png")) [private] |
The icon of the menu item to save selected logs as twiki table
Referenced by actionPerformed().
final DefaultListSelectionModel alma::acs::logging::table::TablePopupMenu::selectionModel [private] |
The selection model
Referenced by copyToClipboard(), saveSelectedLogs(), show(), and TablePopupMenu().
final 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
Referenced by actionPerformed(), show(), and TablePopupMenu().
Referenced by saveSelectedLogs(), and TablePopupMenu().
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.
Referenced by actionPerformed(), and show().
final LogEntryTable alma::acs::logging::table::TablePopupMenu::table [private] |
The table
Referenced by actionPerformed(), buildFields(), copyToClipboard(), and show().
String alma::acs::logging::table::TablePopupMenu::textToCopy [private] |
The text to copy
Referenced by actionPerformed(), and show().
final TextTransfer alma::acs::logging::table::TablePopupMenu::textTransfer = new TextTransfer() [private] |
The helper for the clipboard
Referenced by copyToClipboard().
final 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
final JMenuItem alma::acs::logging::table::TablePopupMenu::zoomOverSelected = new JMenuItem("Drill down",zoomIcon) [private] |
The menu item to save the selected logs
Referenced by actionPerformed(), show(), and TablePopupMenu().
1.6.2