|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.designer.domino.xsp.api.panels.AbstractPanelsFactory
public abstract class AbstractPanelsFactory
An abstract implementation of com.ibm.designer.domino.xsp.api.panels.IPanelsFactory
. It is advised
that clients extend this class rather than directly implementing the interface.
Clients who extend this factory only need to provide code that returns a Class corresponding to
a given id.
This abstract class takes care of creating an XPagesAVPage
based on the
returned Class (which must be an instance of Composite).
Constructor Summary | |
---|---|
AbstractPanelsFactory()
Creates a new instance of this class |
Method Summary | |
---|---|
XPagesAVPage |
createPage(com.ibm.etools.attrview.sdk.AVFolder folder,
XPagesPanelDescriptor xfacesPanelDescriptor)
Creates a new properties page based on the description provided via the com.ibm.designer.domino.xsp.editor.component extension point. |
org.eclipse.swt.widgets.Composite |
createPanelContents(org.eclipse.swt.widgets.Composite parent,
java.lang.Class<? extends org.eclipse.swt.widgets.Composite> controlClass,
XPagesPanelDescriptor xfacesPanelDescriptor,
IPanelExtraData data)
Creates the contents of the XPagesAVPage. |
protected abstract java.lang.Class<? extends org.eclipse.swt.widgets.Composite> |
getPanelControlClass(XPagesPanelDescriptor xfacesPanelDescriptor)
This method is called during the creation of the XPagesAVPage. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractPanelsFactory()
Method Detail |
---|
public XPagesAVPage createPage(com.ibm.etools.attrview.sdk.AVFolder folder, XPagesPanelDescriptor xfacesPanelDescriptor)
IPanelsFactory
com.ibm.designer.domino.xsp.editor.component
extension point.
createPage
in interface IPanelsFactory
folder
- the parent attributes view folderxfacesPanelDescriptor
- a description of the page that is to be created
public org.eclipse.swt.widgets.Composite createPanelContents(org.eclipse.swt.widgets.Composite parent, java.lang.Class<? extends org.eclipse.swt.widgets.Composite> controlClass, XPagesPanelDescriptor xfacesPanelDescriptor, IPanelExtraData data) throws java.lang.SecurityException, java.lang.NoSuchMethodException, java.lang.IllegalArgumentException, java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
IPanelsFactory
createPanelContents
in interface IPanelsFactory
parent
- the parent compositecontrolClass
- the Class that is to display in the XPagesAVPagexfacesPanelDescriptor
- the IPanelExtraData if available (may be null)
java.lang.SecurityException
java.lang.NoSuchMethodException
java.lang.IllegalArgumentException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
protected abstract java.lang.Class<? extends org.eclipse.swt.widgets.Composite> getPanelControlClass(XPagesPanelDescriptor xfacesPanelDescriptor)
protected Class extends Composite> getPanelControlClass(XPagesPanelDescriptor xpagesPanelDescriptor) {
String id = xpagesPanelDescriptor.getId();
if ("format.panel.id".equals(id)) {
return FormatPanel.class;
}
else if("...".equals(id)){......
}
xfacesPanelDescriptor
- an object that describes the XPagesAVPage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |