PageRenderTime 20ms CodeModel.GetById 17ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/webportal/src/main/java/au/org/emii/portal/composer/ErrorMessageComposer.java

http://alageospatialportal.googlecode.com/
Java | 32 lines | 19 code | 7 blank | 6 comment | 0 complexity | 9a982c6b65a43fb0a85237a38a528633 MD5 | raw file
 1package au.org.emii.portal.composer;
 2
 3import au.org.emii.portal.composer.UtilityComposer;
 4import org.zkoss.zul.Label;
 5
 6/**
 7 * Composer for the simple popup error message - allows easy access to the
 8 * message field
 9 * @author geoff
10 *
11 */
12public class ErrorMessageComposer extends UtilityComposer {
13
14	private static final long serialVersionUID = 1L;
15	private Label message;
16
17	public Label getMessage() {
18		return message;
19	}
20
21	public void setMessage(Label message) {
22		this.message = message;
23	}
24	
25	public void setMessage(String message) {
26		this.message.setValue(message);
27	}
28	
29	public void onClick$ok() {
30		detach();
31	}
32}