comparison dwtx/jface/text/DefaultInformationControl.d @ 158:25f1f92fa3df

...
author Frank Benoit <benoit@tionex.de>
date Tue, 26 Aug 2008 02:46:34 +0200
parents a9566845f1cb
children 1a5b8f8129df
comparison
equal deleted inserted replaced
157:7f75eaa8103a 158:25f1f92fa3df
173 import dwtx.jface.action.ToolBarManager; 173 import dwtx.jface.action.ToolBarManager;
174 import dwtx.jface.internal.text.html.HTMLTextPresenter; 174 import dwtx.jface.internal.text.html.HTMLTextPresenter;
175 import dwtx.jface.resource.JFaceResources; 175 import dwtx.jface.resource.JFaceResources;
176 import dwtx.jface.util.Geometry; 176 import dwtx.jface.util.Geometry;
177 177
178
179 /**
180 * Default implementation of {@link dwtx.jface.text.IInformationControl}.
181 * <p>
182 * Displays textual information in a {@link dwt.custom.StyledText}
183 * widget. Before displaying, the information set to this information control is
184 * processed by an <code>IInformationPresenter</code>.
185 *
186 * @since 2.0
187 */
188 public class DefaultInformationControl : AbstractInformationControl , DisposeListener {
189
190 /** 178 /**
191 * An information presenter determines the style presentation 179 * An information presenter determines the style presentation
192 * of information displayed in the default information control. 180 * of information displayed in the default information control.
193 * The interface can be implemented by clients. 181 * The interface can be implemented by clients.
194 */ 182 */
211 * @return the manipulated information 199 * @return the manipulated information
212 * @deprecated As of 3.2, replaced by {@link DefaultInformationControl.IInformationPresenterExtension#updatePresentation(Drawable, String, TextPresentation, int, int)} 200 * @deprecated As of 3.2, replaced by {@link DefaultInformationControl.IInformationPresenterExtension#updatePresentation(Drawable, String, TextPresentation, int, int)}
213 */ 201 */
214 String updatePresentation(Display display, String hoverInfo, TextPresentation presentation, int maxWidth, int maxHeight); 202 String updatePresentation(Display display, String hoverInfo, TextPresentation presentation, int maxWidth, int maxHeight);
215 } 203 }
216 204 alias IInformationPresenter DefaultInformationControl_IInformationPresenter;
217 205
218 /** 206 /**
219 * An information presenter determines the style presentation 207 * An information presenter determines the style presentation
220 * of information displayed in the default information control. 208 * of information displayed in the default information control.
221 * The interface can be implemented by clients. 209 * The interface can be implemented by clients.
243 * 231 *
244 * @return the manipulated information 232 * @return the manipulated information
245 */ 233 */
246 String updatePresentation(Drawable drawable, String hoverInfo, TextPresentation presentation, int maxWidth, int maxHeight); 234 String updatePresentation(Drawable drawable, String hoverInfo, TextPresentation presentation, int maxWidth, int maxHeight);
247 } 235 }
248 236 alias IInformationPresenterExtension DefaultInformationControl_IInformationPresenterExtension;
237
238
239 /**
240 * Default implementation of {@link dwtx.jface.text.IInformationControl}.
241 * <p>
242 * Displays textual information in a {@link dwt.custom.StyledText}
243 * widget. Before displaying, the information set to this information control is
244 * processed by an <code>IInformationPresenter</code>.
245 *
246 * @since 2.0
247 */
248 public class DefaultInformationControl : AbstractInformationControl , DisposeListener {
249 249
250 /** 250 /**
251 * Inner border thickness in pixels. 251 * Inner border thickness in pixels.
252 * @since 3.1 252 * @since 3.1
253 */ 253 */