/sun/xmleditor/trunk/src/gui/PopUpJTree.java |
---|
4,10 → 4,10 |
* Coded by: Group 5, software practice summer 2003 |
* University of Bielefeld, Germany |
* |
* @version $Revision: 1.21 $ |
* @version $Revision: 1.22 $ |
* |
* Last modification: $Date: 2003/07/24 13:31:58 $ |
* $Id: PopUpJTree.java,v 1.21 2003/07/24 13:31:58 smcsporr Exp $ |
* Last modification: $Date: 2003/07/24 15:16:58 $ |
* $Id: PopUpJTree.java,v 1.22 2003/07/24 15:16:58 mdonner Exp $ |
*/ |
package src.gui; |
34,7 → 34,7 |
* |
* @author Group 5 |
* |
* @version $Revision: 1.21 $ Last modification: $Date: 2003/07/24 13:31:58 $ |
* @version $Revision: 1.22 $ Last modification: $Date: 2003/07/24 15:16:58 $ |
*/ |
class PopUpJTree extends JTree implements ActionListener { |
130,7 → 130,7 |
* <code>actionPerfomed</code> receives <code>ActionEvent</code>s fired by |
* the associated <code>PopupJTree</code>. |
* |
* @param ae: An <code>ActionEvent<code> fired when using a command of this class |
* @param ae An <code>ActionEvent<code> fired when using a command of this class |
* by editing the tree structure. |
* |
* author Matthias Donner |
200,7 → 200,7 |
* Set a given <code>TreeSelectionListener</code> as the <code>TreeSelectionListener</code> |
* of this <code>PopUpJTree</code>. |
* |
* @param tSL: The given <code>TreeSelectionListener</code>. |
* @param tSL The given <code>TreeSelectionListener</code>. |
* |
* author Sascha Walkenhorst |
* |
/sun/xmleditor/trunk/src/gui/LogPanel.java |
---|
4,10 → 4,10 |
* Coded by: Group 5, software practice summer 2003 |
* University of Bielefeld, Germany |
* |
* @version $Revision: 1.22 $ |
* @version $Revision: 1.23 $ |
* |
* Last modification: $Date: 2003/07/21 18:23:02 $ |
* $Id: LogPanel.java,v 1.22 2003/07/21 18:23:02 smcsporr Exp $ |
* Last modification: $Date: 2003/07/25 11:32:21 $ |
* $Id: LogPanel.java,v 1.23 2003/07/25 11:32:21 smcsporr Exp $ |
*/ |
package src.gui; |
106,16 → 106,16 |
* |
* @param message The text message to display in the log area. |
*/ |
public void log(int type, String message) { |
public void log(int i, String message) { |
Document doc = text.getDocument(); |
Style style; |
if (type == TYPE_ERROR) { |
if (i == TYPE_ERROR) { |
style = styleError; |
} else { |
if (type == TYPE_INFO) { |
if (i == TYPE_INFO) { |
style = styleInfo; |
} else { |
style = styleWarning; |
/sun/xmleditor/trunk/src/gui/LogInterface.java |
---|
4,10 → 4,10 |
* Coded by: Group 5, software practice summer 2003 |
* University of Bielefeld, Germany |
* |
* @version $Revision: 1.11 $ |
* @version $Revision: 1.12 $ |
* |
* Last modification: $Date: 2003/07/15 22:23:21 $ |
* $Id: LogInterface.java,v 1.11 2003/07/15 22:23:21 ioklasse Exp $ |
* Last modification: $Date: 2003/07/21 18:22:49 $ |
* $Id: LogInterface.java,v 1.12 2003/07/21 18:22:49 smcsporr Exp $ |
*/ |
package src.gui; |
30,13 → 30,18 |
/** A constant representing the 'warning' message type. */ |
public static final int TYPE_WARNING = 2; |
/** |
* The <code>log</code> method writes text messages to the log panel. |
/** |
* Displays a text message of a specified type (info, error, warning) in the |
* logging area. |
* |
* @param type: The type of the message, @see src.gui.LogInterface. |
* @param message: A <code>String</code> containing the text of the message. |
* @param i The type of the message as defined in src.gui.LogInterface. |
* 0 or src.gui.LogInterface.TYPE_INFO -> info message (black) |
* 1 or src.gui.LogInterface.TYPE_WARNING -> warning message (orange) |
* 2 or src.gui.LogInterface.TYPE_ERROR -> error message (red) |
* |
* @param message The text message to display in the log area. |
*/ |
public void log(int type, String message); |
public void log(int i, String message); |
/** |
* The method <code>clear</code> removes all content from the log panel. |