Search in sources :

Example 1 with LogEntryTable

use of alma.acs.logging.table.LogEntryTable in project ACS by ACS-Community.

the class LoggingClient method showDetailedLogInfo.

/**
	 * Show a detailed view of the selected log in the right panel
	 */
public void showDetailedLogInfo() {
    try {
        LogEntryTable jt = getLogEntryTable();
        int selectedRow = jt.getSelectedRow();
        // no row selected
        if (selectedRow == -1) {
            detailedLogTable.setupContent(null);
        } else {
            // a row is selected
            ILogEntry log = jt.getLCModel().getVisibleLogEntry(selectedRow);
            detailedLogTable.setupContent(log);
        }
    } catch (java.lang.Throwable ivjExc) {
        handleException(ivjExc);
    }
}
Also used : ILogEntry(com.cosylab.logging.engine.log.ILogEntry) LogEntryTable(alma.acs.logging.table.LogEntryTable)

Example 2 with LogEntryTable

use of alma.acs.logging.table.LogEntryTable in project ACS by ACS-Community.

the class LoggingClient method getLogEntryTable.

/**
	 * Returns the table of logs
	 * @return the table of logs
	 */
public LogEntryTable getLogEntryTable() {
    if (logEntryTable == null) {
        try {
            logEntryTable = new LogEntryTable(this, menuBar.getShortDateViewMenuItem().isSelected(), menuBar.getLogTypeDescriptionViewMenuItem().isSelected());
            logEntryTable.setName("logEntryTable");
            logEntryTable.setBounds(0, 0, 200, 200);
            tableModel = logEntryTable.getLCModel();
        } catch (Throwable ivjExc) {
            handleException(ivjExc);
        }
    }
    return logEntryTable;
}
Also used : LogEntryTable(alma.acs.logging.table.LogEntryTable)

Aggregations

LogEntryTable (alma.acs.logging.table.LogEntryTable)2 ILogEntry (com.cosylab.logging.engine.log.ILogEntry)1