|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.commons.iloader.node.lookups.api.AbstractLookup com.ibm.designer.domino.ide.resources.extensions.util.DesignerDELookup
public class DesignerDELookup
A lookup to be used in conjunction with combo boxes. The lookup with provide
an array of Design Elements (DesignerDesignElement
) in the current application.
A number of utility methods are provided to return Lookups for predefined sets of design elements.
Nested Class Summary | |
---|---|
static interface |
DesignerDELookup.DesignerDesignElementFilter
A filter that may be used to filter the results of a lookup |
Field Summary | |
---|---|
protected DesignerDesignElement[] |
designElements
|
protected DesignerProject |
designerProject
|
protected DesignerDELookup.DesignerDesignElementFilter |
filter
|
protected int |
folderCount
|
protected com.ibm.designer.prj.resources.commons.ICommonDesignerProjectChangeListener |
projectChangeListener
|
protected java.lang.String |
typeId
|
Constructor Summary | |
---|---|
DesignerDELookup(DesignerProject designerProject,
java.lang.String typeId)
Creates a new instance of this class. |
|
DesignerDELookup(DesignerProject designerProject,
java.lang.String typeId,
boolean showExtension)
Creates a new instance of this class. |
|
DesignerDELookup(DesignerProject designerProject,
java.lang.String typeId,
boolean showExtension,
DesignerDELookup.DesignerDesignElementFilter filter)
Creates a new instance of this class. |
Method Summary | |
---|---|
protected void |
addNotify()
|
java.lang.String |
getCode(int index)
Return the code or model value for this index. |
DesignerDesignElement |
getDesignElement(int index)
Returns the design element at a particular index. |
protected DesignerDesignElement[] |
getDesignElements()
Returns the design elements that correspond to the design element type that was passed in via the constructor. |
static DesignerDELookup |
getFoldersLookup(DesignerProject project)
Utility method. |
static DesignerDELookup |
getFormsLookup(DesignerProject project)
Utility method. |
static DesignerDELookup |
getImagesLookup(DesignerProject project)
Utility method. |
java.lang.String |
getLabel(int index)
Return the label displayed to the user for this index. |
protected int |
getNavigatorFolderCount()
Returns the number of folders in the path to the design element |
static DesignerDELookup |
getStyleSheetsLookup(DesignerProject project)
Utility method. |
static DesignerDELookup |
getThemesLookup(DesignerProject project)
Utility method. |
static DesignerDELookup |
getViewsLookup(DesignerProject project)
Utility method. |
static DesignerDELookup |
getXPagesLookup(DesignerProject project)
Utility method. |
protected void |
notifyLookupChanged()
|
protected void |
removeNotify()
|
protected void |
setDesignElements(DesignerDesignElement[] elements)
Sets the design elements which are to be returned by this lookup. |
int |
size()
Return the number of items in this lookup. |
protected void |
updateDesignElements()
Regreshes the list of design elements |
Methods inherited from class com.ibm.commons.iloader.node.lookups.api.AbstractLookup |
---|
addLookupListener, getImage, getLabelFromCode, getLabelFromCodeIgnoreCase, removeLookupListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DesignerDesignElement[] designElements
protected DesignerProject designerProject
protected java.lang.String typeId
protected DesignerDELookup.DesignerDesignElementFilter filter
protected int folderCount
protected com.ibm.designer.prj.resources.commons.ICommonDesignerProjectChangeListener projectChangeListener
Constructor Detail |
---|
public DesignerDELookup(DesignerProject designerProject, java.lang.String typeId)
designerProject
- the DesignerProject that represents the current DatabasetypeId
- the id of class of design element the lookup is to contain.DesignerProject
,
IMetaModelConstants
public DesignerDELookup(DesignerProject designerProject, java.lang.String typeId, boolean showExtension)
designerProject
- the DesignerProject that represents the current DatabasetypeId
- the id of class of design element the lookup is to contain.showExtension
- a flag which determines whether the lookup should display the design element's file extensionDesignerProject
,
IMetaModelConstants
public DesignerDELookup(DesignerProject designerProject, java.lang.String typeId, boolean showExtension, DesignerDELookup.DesignerDesignElementFilter filter)
designerProject
- the DesignerProject that represents the current DatabasetypeId
- the id of class of design element the lookup is to contain.showExtension
- a flag which determines whether the lookup should display the design element's file extensionfilter
- a filter that is used by the lookup to filter the contents of the lookupDesignerProject
,
IMetaModelConstants
Method Detail |
---|
protected void addNotify()
addNotify
in class com.ibm.commons.iloader.node.lookups.api.AbstractLookup
protected void removeNotify()
removeNotify
in class com.ibm.commons.iloader.node.lookups.api.AbstractLookup
protected DesignerDesignElement[] getDesignElements()
protected void setDesignElements(DesignerDesignElement[] elements)
elements
- an array of design elementsprotected void updateDesignElements()
public int size()
ILookup
public java.lang.String getCode(int index)
ILookup
public DesignerDesignElement getDesignElement(int index)
index
- the index of the design element to be returned
public java.lang.String getLabel(int index)
ILookup
protected int getNavigatorFolderCount()
protected void notifyLookupChanged()
notifyLookupChanged
in class com.ibm.commons.iloader.node.lookups.api.AbstractLookup
public static DesignerDELookup getXPagesLookup(DesignerProject project)
project
- the DesignerProject representing the current database
public static DesignerDELookup getFormsLookup(DesignerProject project)
project
- the DesignerProject representing the current database
public static DesignerDELookup getViewsLookup(DesignerProject project)
project
- the DesignerProject representing the current database
public static DesignerDELookup getStyleSheetsLookup(DesignerProject project)
project
- the DesignerProject representing the current database
public static DesignerDELookup getThemesLookup(DesignerProject project)
project
- the DesignerProject representing the current database
public static DesignerDELookup getImagesLookup(DesignerProject project)
project
- the DesignerProject representing the current database
public static DesignerDELookup getFoldersLookup(DesignerProject project)
project
- the DesignerProject representing the current database
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |