|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.tree.ATreeModel com.plumtree.portaluiinfrastructure.tree.AObjectTreeModel
public abstract class AObjectTreeModel
Field Summary | |
---|---|
static int |
ALLCOMMUNITIES
|
protected boolean |
m_bDisplayingSearchResults
internal data |
protected boolean |
m_bSearchInitialized
|
protected int |
m_nAccessLevel
|
protected static ClassTypeDescManager |
m_ptClassTypeDescManager
class type descriptor |
protected java.lang.Object[][] |
m_ptFolderSelectqf
read only access level query filter. |
protected java.lang.Object[][] |
m_ptqf
access level query filter |
static int |
NOCOMMUNITIES
Community Modes -- NO is default |
static int |
THISCOMMUNITY
THISCOMMUNITY implies the requested community plus all of it's parent communities |
Fields inherited from class com.plumtree.uiinfrastructure.tree.ATreeModel |
---|
m_asOwner, m_bAllChecked, m_bAllowEmptyTreeSubmission, m_bEmptyList, m_bFlatList, m_bHelpEnabled, m_bMultiSelect, m_bShowRoot, m_nLastExpandedNodeID, m_nSelectMode, m_nSelectOptions, m_nSubmitMode, m_Root, m_strActionSubTitle, m_strOnClickFunction, m_strParentFormItems, m_strParentFormName, m_strParentFormSpaceID, m_strParentFormSubmit, m_strTitle, m_xpmSelectedItems |
Constructor Summary | |
---|---|
AObjectTreeModel()
|
Method Summary | |
---|---|
protected abstract java.lang.Object[][] |
CalculateFolderSelectQueryFilter(int nAccessLevel)
This method calculates the read only query filter. |
int |
GetAccessLevel()
This method returns the current access level. |
abstract int[] |
GetDisplayedClassIDs()
This method returns the class IDs to be displayed in this tree. |
boolean |
GetDisplayingSearchResults()
This method returns whether the tree is displaying search results, or just the normal tree. |
int |
GetFilterClassID()
This method returns the class ID to be filtered. |
java.lang.String[] |
GetFilterCLSID()
This method returns the CLSID values used in the web service/data source query filter. |
int |
GetFilterCLSIDPropID()
This method returns the propid for the CLSID values used in the web service/data source query filter. |
abstract int |
GetFolderClassID()
This method returns the class ID of the folders in the tree. |
abstract boolean |
GetItemDisplayed(int nClassID,
int nObjectID)
This method returns whether or not the given item should be displayed. |
boolean |
GetItemSelected(int nClassID,
int nObjectID)
This method returns whether or not the given item should be selected. |
protected TreeLeafNode |
GetLeafIfAlreadySelected(java.lang.String strKey)
This needs it's own implementation because of users. |
abstract java.lang.String |
GetName()
Return the name of the MVC object. |
int[] |
GetPortletAlignment()
This method returns the values used in the gadget alignment query filter. |
int[] |
GetPortletType()
This method returns the values used in the gadget type query filter. |
int[] |
GetPortletWebServiceID()
This method returns the values used in the gadget web service ID query filter. |
boolean |
GetSearchEnabled()
This method returns whether or not search is enabled. |
boolean |
GetSearchStarted()
This method returns whether or not a search has been started. |
int[] |
GetUserTypeFilter()
This method returns the user type values used in the user query filter. |
void |
Init(AActivitySpace parent)
This method initializes the model. |
void |
ResetToBrowsingMode()
This method resets the tree view to display the browsing tree rather than the search tree. |
void |
ResetTree()
This method initializes tree variables. |
int |
SavePage(java.lang.String _sPageName,
XPHashtable _htFormData)
Calls the right save function according to the page name passed in argument. |
void |
SelectNode(int nID,
boolean bSelect)
This method de/selects the specified tree node |
void |
SetAccessLevel(int nLevel)
This method sets the access level that the user needs to have to view items in the tree (default is SELECT). |
abstract void |
SetClassIDsToDisplay(int[] nIDs)
This method will set the class IDs to be displayed. |
abstract void |
SetCommunityMode(int nMode,
int nFolderID)
This method sets the community mode for this tree. |
static void |
SetCompositeImage(TreeCompositeNode node,
AActivitySpace asOwner)
|
static void |
SetCompositeImage(TreeCompositeNode node,
int nFolderType,
AActivitySpace asOwner)
|
static void |
SetLeafImage(TreeLeafNode node,
AActivitySpace asOwner)
|
abstract void |
SetObjectIDsToHide(int[] nIDs)
This method will hide the given objects. |
abstract void |
SetObjectIDsToSelect(int[] nIDs)
This method will select the given objects. |
abstract void |
SetQueryFilter(int nClassID,
int nPropID,
int[] nValues)
This method sets a filter on a specific class. |
abstract void |
SetQueryFilter(int nClassID,
int nPropID,
java.lang.String[] sValues)
This method sets a filter on a specific class. |
abstract void |
SetRootFolderID(int nID)
This method sets the root id for object type trees |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.plumtree.uiinfrastructure.tree.ITreeModelRO |
---|
GetActionSubTitle, GetAllChecked, GetAllowEmptySubmission, GetDisplayingFlatList, GetHelpEnabled, GetLastExpandedNodeID, GetMultipleSelect, GetOnClickFunction, GetParentFormName, GetParentFormSpaceID, GetParentFormSubmitFunction, GetRootTreeIterator, GetSelectedItems, GetSelectMode, GetSelectOptions, GetShowRoot, GetSubmitMode, GetTitle, GetTreeIsEmpty |
Field Detail |
---|
public static final int NOCOMMUNITIES
public static final int THISCOMMUNITY
public static final int ALLCOMMUNITIES
protected static ClassTypeDescManager m_ptClassTypeDescManager
protected java.lang.Object[][] m_ptqf
protected java.lang.Object[][] m_ptFolderSelectqf
protected boolean m_bDisplayingSearchResults
protected boolean m_bSearchInitialized
protected int m_nAccessLevel
Constructor Detail |
---|
public AObjectTreeModel()
Method Detail |
---|
public int GetAccessLevel()
IObjectTreeModelRO
GetAccessLevel
in interface IObjectTreeModelRO
com.plumtree.portaluiinfrastructure.tree.IObjectTreeModelRO#GetSecurityLevel()
public boolean GetDisplayingSearchResults()
IObjectTreeModelRO
GetDisplayingSearchResults
in interface IObjectTreeModelRO
com.plumtree.portaluiinfrastructure.tree.IObjectTreeModelRO#GetDisplayTreeOrSearch()
public int[] GetPortletAlignment()
IObjectTreeModelRO
GetPortletAlignment
in interface IObjectTreeModelRO
IObjectTreeModelRO.GetPortletAlignment()
public int[] GetPortletWebServiceID()
IObjectTreeModelRO
GetPortletWebServiceID
in interface IObjectTreeModelRO
IObjectTreeModelRO.GetPortletWebServiceID()
public int[] GetPortletType()
IObjectTreeModelRO
GetPortletType
in interface IObjectTreeModelRO
IObjectTreeModelRO.GetPortletType()
public int[] GetUserTypeFilter()
IObjectTreeModelRO
GetUserTypeFilter
in interface IObjectTreeModelRO
IObjectTreeModelRO.GetUserTypeFilter()
public java.lang.String[] GetFilterCLSID()
IObjectTreeModelRO
GetFilterCLSID
in interface IObjectTreeModelRO
IObjectTreeModelRO.GetFilterCLSID()
public int GetFilterCLSIDPropID()
IObjectTreeModelRO
GetFilterCLSIDPropID
in interface IObjectTreeModelRO
IObjectTreeModelRO.GetFilterCLSIDPropID()
public int GetFilterClassID()
GetFilterClassID
in interface IObjectTreeModel
GetFilterClassID
in interface IObjectTreeModelRO
public boolean GetItemSelected(int nClassID, int nObjectID)
IObjectTreeModelRO
GetItemSelected
in interface IObjectTreeModelRO
IObjectTreeModelRO.GetItemSelected(int, int)
public boolean GetSearchStarted()
IObjectTreeModelRO
GetSearchStarted
in interface IObjectTreeModelRO
IObjectTreeModelRO.GetSearchStarted()
public boolean GetSearchEnabled()
IObjectTreeModelRO
GetSearchEnabled
in interface IObjectTreeModelRO
IObjectTreeModelRO.GetSearchEnabled()
public void Init(AActivitySpace parent)
IModel
Init
in interface IModel
Init
in class ATreeModel
parent
- the parent Activity SpaceIModel.Init(AActivitySpace)
public void ResetTree()
ITreeModel
ResetTree
in interface ITreeModel
ResetTree
in class ATreeModel
public int SavePage(java.lang.String _sPageName, XPHashtable _htFormData)
IRepostModel
SavePage
in interface IRepostModel
SavePage
in class ATreeModel
IRepostModel.SavePage(String, XPHashtable)
public void SetAccessLevel(int nLevel)
IObjectTreeModel
SetAccessLevel
in interface IObjectTreeModel
IObjectTreeModel.SetAccessLevel(int)
public void SelectNode(int nID, boolean bSelect)
IObjectTreeModel
SelectNode
in interface IObjectTreeModel
nID
- The ID of the node to de/selectbSelect
- true implies select, false deselectIObjectTreeModel.SelectNode(int, boolean)
public void ResetToBrowsingMode()
IObjectTreeModel
ResetToBrowsingMode
in interface IObjectTreeModel
IObjectTreeModel.ResetToBrowsingMode()
public static void SetCompositeImage(TreeCompositeNode node, AActivitySpace asOwner)
node
- public static void SetCompositeImage(TreeCompositeNode node, int nFolderType, AActivitySpace asOwner)
node
- nFolderType
- public static void SetLeafImage(TreeLeafNode node, AActivitySpace asOwner)
node
- public abstract int[] GetDisplayedClassIDs()
IObjectTreeModelRO
GetDisplayedClassIDs
in interface IObjectTreeModelRO
IObjectTreeModelRO.GetDisplayedClassIDs()
public abstract int GetFolderClassID()
IObjectTreeModelRO
GetFolderClassID
in interface IObjectTreeModelRO
IObjectTreeModelRO.GetFolderClassID()
public abstract boolean GetItemDisplayed(int nClassID, int nObjectID)
IObjectTreeModelRO
GetItemDisplayed
in interface IObjectTreeModelRO
IObjectTreeModelRO.GetItemDisplayed(int, int)
public abstract java.lang.String GetName()
IMVCObject
GetName
in interface IMVCObject
GetName
in class ATreeModel
IMVCObject.GetName()
public abstract void SetClassIDsToDisplay(int[] nIDs)
ITreeModel
SetClassIDsToDisplay
in interface ITreeModel
SetClassIDsToDisplay
in class ATreeModel
ITreeModel.SetClassIDsToDisplay(int[])
public abstract void SetObjectIDsToHide(int[] nIDs)
ITreeModel
SetObjectIDsToHide
in interface ITreeModel
SetObjectIDsToHide
in class ATreeModel
ITreeModel.SetObjectIDsToHide(int[])
public abstract void SetObjectIDsToSelect(int[] nIDs)
ITreeModel
SetObjectIDsToSelect
in interface ITreeModel
SetObjectIDsToSelect
in class ATreeModel
ITreeModel.SetObjectIDsToSelect(int[])
public abstract void SetQueryFilter(int nClassID, int nPropID, int[] nValues)
IObjectTreeModel
SetQueryFilter
in interface IObjectTreeModel
IObjectTreeModel.SetQueryFilter(int, int, int[])
public abstract void SetQueryFilter(int nClassID, int nPropID, java.lang.String[] sValues)
IObjectTreeModel
SetQueryFilter
in interface IObjectTreeModel
IObjectTreeModel.SetQueryFilter(int, int, String[])
public abstract void SetCommunityMode(int nMode, int nFolderID)
IObjectTreeModel
SetCommunityMode
in interface IObjectTreeModel
IObjectTreeModel.SetCommunityMode(int, int)
public abstract void SetRootFolderID(int nID)
IObjectTreeModel
SetRootFolderID
in interface IObjectTreeModel
nID
- The ID of the root folder/catalog/etc...IObjectTreeModel.SetRootFolderID(int)
protected abstract java.lang.Object[][] CalculateFolderSelectQueryFilter(int nAccessLevel)
int
- the access level required by the tree
protected TreeLeafNode GetLeafIfAlreadySelected(java.lang.String strKey)
GetLeafIfAlreadySelected
in class ATreeModel
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |