public final class TemplateInformationControlCreator extends Object implements IInformationControlCreator, IInformationControlCreatorExtension
| Constructor and Description |
|---|
TemplateInformationControlCreator(int orientation) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canReplace(IInformationControlCreator creator)
Tests whether this information control creator can replace the given
information control creator.
|
boolean |
canReuse(IInformationControl control)
Tests if an existing information control can be reused.
|
IInformationControl |
createInformationControl(Shell parent)
Creates a new information control with the given shell as the control's parent.
|
public TemplateInformationControlCreator(int orientation)
orientation - the orientation, allowed values are: SWT#RIGHT_TO_LEFT or SWT#LEFT_TO_RIGHTpublic IInformationControl createInformationControl(Shell parent)
IInformationControlCreatorcreateInformationControl in interface IInformationControlCreatorparent - the parent shellpublic boolean canReuse(IInformationControl control)
IInformationControlCreatorExtensioncanReuse in interface IInformationControlCreatorExtensioncontrol - the information control to testtrue if the control can be reusedpublic boolean canReplace(IInformationControlCreator creator)
IInformationControlCreatorExtensioncanReplace in interface IInformationControlCreatorExtensioncreator - the creator to be checkedtrue if the given creator can be replaced,
false otherwise