Mercurial > hg > mep
view InterBlockPanel.java @ 52:76e99859bdb4 tip
Add class files for previous changes.
author | Marcus Pearce <marcus.pearce@eecs.qmul.ac.uk> |
---|---|
date | Wed, 25 Feb 2015 10:11:04 +0000 |
parents | be66ee2fe9fe |
children |
line wrap: on
line source
/*============================================================================= * File: InterBlockPanel.java * Author: Marcus Pearce <m.pearce@gold.ac.uk> * Created: <2008-01-08 15:39:18 marcusp> * Time-stamp: <2008-03-04 17:16:48 marcusp> *============================================================================= */ import java.awt.*; import java.awt.event.*; import javax.swing.*; public class InterBlockPanel extends EndBlockPanel { /* variables */ private String previousText; private String text = ""; /* accessors */ public void setText() { previousText = text; text = exp.getCurrentBlock().getLabel(); } /* constructor */ public InterBlockPanel(Experiment e) { super(e); setText(); setUp("Continue"); } protected String formatMessage() { StringBuffer sb = new StringBuffer(); sb.append("<html><font size=\"+1\" face=\"sans\"><p align=center>"); sb.append("That is the end of the "); sb.append(previousText); sb.append(" block. "); sb.append("<br>"); sb.append("If you have any questions, you may ask them now."); sb.append("<br>"); sb.append("Otherwise, press the button below to continue on to the "); sb.append(text); sb.append(" block."); sb.append("</p></html>"); return sb.toString(); } }