gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.swing / org.gvsig.tools.swing.api / src / main / java / org / gvsig / tools / swing / api / windowmanager / Dialog.java @ 1696
History | View | Annotate | Download (969 Bytes)
1 |
|
---|---|
2 |
package org.gvsig.tools.swing.api.windowmanager; |
3 |
|
4 |
import java.awt.Image; |
5 |
import java.awt.event.ActionListener; |
6 |
import javax.swing.JComponent; |
7 |
import org.gvsig.tools.swing.api.Component; |
8 |
|
9 |
|
10 |
public interface Dialog extends Component { |
11 |
|
12 |
int getAction();
|
13 |
|
14 |
void setContents(JComponent contents); |
15 |
|
16 |
void setHeaderTitle(String header); |
17 |
|
18 |
void setHeaderLabel(String header); |
19 |
|
20 |
void setHeaderImage(Image image); |
21 |
|
22 |
void setButtons(int buttons); |
23 |
|
24 |
void setButtonLabel(int button, String label); |
25 |
|
26 |
void setButtonEnabled(int button, boolean enabled); |
27 |
|
28 |
boolean isButtonEnabled(int button); |
29 |
|
30 |
void show(WindowManager.MODE mode);
|
31 |
|
32 |
void setIcon(Image icon); |
33 |
|
34 |
public void addActionListener(ActionListener listener); |
35 |
|
36 |
public ActionListener[] getActionListeners(); |
37 |
|
38 |
public void removeActionListener(ActionListener listener); |
39 |
|
40 |
public void removeAllActionListener(); |
41 |
|
42 |
public JComponent getContents(); |
43 |
} |