/** * Add the passed line to the end of the messages display. Position * display so the the newly added line will be displayed. * * @param line The line to be added. * @param saSet The SimpleAttributeSet to be used for for the string. */ private void addLine(String line, SimpleAttributeSet saSet) { if (getDocument().getLength() > 0) { append("\n", saSet); } append(line, saSet); final int len = getDocument().getLength(); select(len, len); }
public void showWarningMessage(String msg) { if (msg == null) { throw new IllegalArgumentException("msg cannot be null"); } privateShowMessage(msg, _saSetWarning); }
addMouseListener(new MouseAdapter() StyleConstants.setBackground(saSetMessageHistory, getBackground()); _saSetHistoryBySaSet.put(_saSetMessage, saSetMessageHistory);
_msgPnl.setName(MessagePanel.class.toString()); _msgPnl.setEditable(false);
public void actionPerformed(ActionEvent evt) { try { Document doc = MessagePanel.this.getDocument(); doc.remove(0, doc.getLength()); _lastMessage = null; } catch (BadLocationException ex) { s_log.error("Error clearing document", ex); } } }
Document document = getStyledDocument(); try
_msgPnl.addToMessagePanelPopup(saveSplitDividerLocAction); _msgPnl.addToMessagePanelPopup(save0SplitDividerLocAction); _msgPnl.addToMessagePanelPopup(setSplitDividerLocAction);
addMouseListener(new MouseAdapter() StyleConstants.setBackground(saSetMessageHistory, getBackground()); _saSetHistoryBySaSet.put(_saSetMessage, saSetMessageHistory);
_msgPnl.setName(MessagePanel.class.toString()); _msgPnl.setEditable(false);
public void actionPerformed(ActionEvent evt) { try { Document doc = MessagePanel.this.getDocument(); doc.remove(0, doc.getLength()); _lastMessage = null; } catch (BadLocationException ex) { s_log.error("Error clearing document", ex); } } }
Document document = getStyledDocument(); try
_msgPnl.addToMessagePanelPopup(saveSplitDividerLocAction); _msgPnl.addToMessagePanelPopup(save0SplitDividerLocAction); _msgPnl.addToMessagePanelPopup(setSplitDividerLocAction);
/** * Add the passed line to the end of the messages display. Position * display so the the newly added line will be displayed. * * @param line The line to be added. * @param saSet The SimpleAttributeSet to be used for for the string. */ private void addLine(String line, SimpleAttributeSet saSet) { if (getDocument().getLength() > 0) { append("\n", saSet); } append(line, saSet); final int len = getDocument().getLength(); select(len, len); }
public void showWarningMessage(String msg) { if (msg == null) { throw new IllegalArgumentException("msg cannot be null"); } privateShowMessage(msg, _saSetWarning); }
/** * Show a message. * * @param msg The message to be shown. */ public synchronized void showMessage(final String msg) { if (msg == null) { throw new IllegalArgumentException("msg cannot be null"); } privateShowMessage(msg, _saSetMessage); }
/** * Show an error message. The controls * background color will be changed to show it is an error msg. * @param th Exception. */ public synchronized void showErrorMessage(final String msg) { if (msg == null) { throw new IllegalArgumentException("msg cannot be null"); } privateShowMessage(msg, _saSetError); }
/** * Show a message. * * @param msg The message to be shown. */ public synchronized void showMessage(final String msg) { if (msg == null) { throw new IllegalArgumentException("msg cannot be null"); } privateShowMessage(msg, _saSetMessage); }
/** * Show an error message. The controls * background color will be changed to show it is an error msg. * @param th Exception. */ public synchronized void showErrorMessage(final String msg) { if (msg == null) { throw new IllegalArgumentException("msg cannot be null"); } privateShowMessage(msg, _saSetError); }
/** * Show a message describing the passed throwable object. * * @param th The throwable object. * @param session the session that generated the exception. */ public synchronized void showMessage(final Throwable th, final ExceptionFormatter formatter) { if (th == null) { throw new IllegalArgumentException("th cannot be null"); } privateShowMessage(th, formatter, _saSetMessage); }
/** * Show a message describing the passed throwable object. * * @param th The throwable object. * @param session the session that generated the exception. */ public synchronized void showMessage(final Throwable th, final ExceptionFormatter formatter) { if (th == null) { throw new IllegalArgumentException("th cannot be null"); } privateShowMessage(th, formatter, _saSetMessage); }