KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ant > internal > ui > preferences > IAntBlockContainer


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ant.internal.ui.preferences;
12
13
14 import org.eclipse.swt.widgets.Button;
15 import org.eclipse.swt.widgets.Composite;
16
17 public interface IAntBlockContainer {
18     
19     /**
20      * Sets the error message for the container.
21      * May be <code>null</code> to remove the error message.
22      *
23      * @param message A string error message or <code>null</code>
24      */

25     public void setErrorMessage(String JavaDoc message);
26     
27     /**
28      * Sets the message for the container.
29      * May be <code>null</code> to remove the message.
30      *
31      * @param message A string message or <code>null</code>
32      */

33     public void setMessage(String JavaDoc message);
34     
35     /**
36      * Creates and returns a properly configured push button with
37      * the supplied label
38      *
39      * @param parent The composite parent of the button
40      * @param label The button label
41      *
42      * @return button the created button
43      */

44     public Button createPushButton(Composite parent, String JavaDoc label);
45     
46     /**
47      * Notifies the container that state has changed.
48      */

49     public void update();
50
51 }
52
Popular Tags