01: package org.rapla.gui;
02:
03: import java.awt.Component;
04: import java.awt.Point;
05:
06: import javax.swing.JComponent;
07:
08: import org.rapla.framework.RaplaException;
09: import org.rapla.gui.toolkit.DialogUI;
10:
11: public interface InfoFactory {
12: String ROLE = InfoFactory.class.getName();
13:
14: JComponent createInfoComponent(Object object) throws RaplaException;
15:
16: /** same as getToolTip(obj, true) */
17: String getToolTip(Object obj);
18:
19: /** @param wrapHtml wraps an html Page arround the tooltip */
20: String getToolTip(Object obj, boolean wrapHtml);
21:
22: void showInfoDialog(Object object, Component owner)
23: throws RaplaException;
24:
25: void showInfoDialog(Object object, Component owner, Point point)
26: throws RaplaException;
27:
28: DialogUI createDeleteDialog(Object[] deletables, Component owner)
29: throws RaplaException;
30:
31: }
|