com.plumtree.portalpages.common.search
Class FolderSelectorView

java.lang.Object
  extended by com.plumtree.portalpages.common.search.EditorLikeView
      extended by com.plumtree.portalpages.common.search.FolderSelectorView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView
Direct Known Subclasses:
ASFoldersView

public abstract class FolderSelectorView
extends EditorLikeView

Author:
CraigS, based on MikeS/OlegS code

Field Summary
static java.lang.String DISPLAY_FOLDER_FILTER
           
static java.lang.String FOLDER_PFX_ADM
           
static java.lang.String FOLDER_PFX_CAT
           
static java.lang.String HTMLCHECKBOX_FOLDER
           
static java.lang.String HTMLCHECKBOX_RECURSIVE
           
static java.lang.String HTMLHIDDEN_ADMSPACEID
           
static java.lang.String HTMLHIDDEN_CATSPACEID
           
static java.lang.String HTMLHIDDEN_FOLDERSELECTED
           
static java.lang.String HTMLHIDDEN_TREEREPOST
           
static java.lang.String IN_CB_MASTER
           
static java.lang.String JAVASCRIPT_CATALOGFOLDERTREE
           
static java.lang.String PORTAL_COMMON_MSGS
           
 
Fields inherited from class com.plumtree.portalpages.common.search.EditorLikeView
m_asOwner, m_model, SPACE
 
Constructor Summary
FolderSelectorView()
           
 
Method Summary
 HTMLElement Display()
          Creates the restrict to folders filter HTML in the advanced search settings page
protected  void DisplayDeleteButton(HTMLElement result)
           
protected  boolean DisplayFolderList(HTMLElementCollection result)
          Displays the HTML for the list of folders to restrict
protected  void DisplayFolderListHeader(HTMLTable table, boolean isAdmin)
          displays the folder list headers in the restrict to folders filter ("add document folder")
protected  void DisplayFolderListItem(HTMLTable table, int id, java.lang.String name, boolean shaded, boolean isAdmin)
          Displays the list of folders that have been added in the restrict to folders filter
protected  void DisplayHiddenInputs(HTMLElement result)
           
 HTMLScript DisplayJavascript()
          This method returns the HTMLScript that encompasses the Javascript on the page.
protected  HTMLTable GetActionBar()
          Action bar creates the subheader HTML that contains the "add document folder" and "add administrative folder" buttons
protected  java.lang.String GetTitle()
           
 
Methods inherited from class com.plumtree.portalpages.common.search.EditorLikeView
Create, GetHeaderView, GetName, Init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTMLHIDDEN_FOLDERSELECTED

public static final java.lang.String HTMLHIDDEN_FOLDERSELECTED
See Also:
Constant Field Values

HTMLHIDDEN_CATSPACEID

public static final java.lang.String HTMLHIDDEN_CATSPACEID
See Also:
Constant Field Values

HTMLHIDDEN_ADMSPACEID

public static final java.lang.String HTMLHIDDEN_ADMSPACEID
See Also:
Constant Field Values

HTMLHIDDEN_TREEREPOST

public static final java.lang.String HTMLHIDDEN_TREEREPOST
See Also:
Constant Field Values

JAVASCRIPT_CATALOGFOLDERTREE

public static final java.lang.String JAVASCRIPT_CATALOGFOLDERTREE
See Also:
Constant Field Values

HTMLCHECKBOX_FOLDER

public static final java.lang.String HTMLCHECKBOX_FOLDER
See Also:
Constant Field Values

IN_CB_MASTER

public static final java.lang.String IN_CB_MASTER
See Also:
Constant Field Values

HTMLCHECKBOX_RECURSIVE

public static final java.lang.String HTMLCHECKBOX_RECURSIVE
See Also:
Constant Field Values

FOLDER_PFX_ADM

public static final java.lang.String FOLDER_PFX_ADM
See Also:
Constant Field Values

DISPLAY_FOLDER_FILTER

public static final java.lang.String DISPLAY_FOLDER_FILTER
See Also:
Constant Field Values

FOLDER_PFX_CAT

public static final java.lang.String FOLDER_PFX_CAT
See Also:
Constant Field Values

PORTAL_COMMON_MSGS

public static final java.lang.String PORTAL_COMMON_MSGS
See Also:
Constant Field Values
Constructor Detail

FolderSelectorView

public FolderSelectorView()
Method Detail

Display

public HTMLElement Display()
Creates the restrict to folders filter HTML in the advanced search settings page

Specified by:
Display in interface IView
Specified by:
Display in class EditorLikeView
Returns:

GetActionBar

protected HTMLTable GetActionBar()
Action bar creates the subheader HTML that contains the "add document folder" and "add administrative folder" buttons

Returns:

DisplayJavascript

public HTMLScript DisplayJavascript()
Description copied from interface: IView
This method returns the HTMLScript that encompasses the Javascript on the page. This method should be called by IDisplayPages and the resulting Javascript should be put in the HTMLHead element. This can return null.

Specified by:
DisplayJavascript in interface IView
Overrides:
DisplayJavascript in class EditorLikeView
Returns:

GetTitle

protected java.lang.String GetTitle()

DisplayDeleteButton

protected void DisplayDeleteButton(HTMLElement result)
Parameters:
result -
Throws:
HTMLException

DisplayFolderList

protected boolean DisplayFolderList(HTMLElementCollection result)
Displays the HTML for the list of folders to restrict

Returns:
Throws:
HTMLException

DisplayFolderListHeader

protected void DisplayFolderListHeader(HTMLTable table,
                                       boolean isAdmin)
displays the folder list headers in the restrict to folders filter ("add document folder")

Throws:
HTMLException

DisplayFolderListItem

protected void DisplayFolderListItem(HTMLTable table,
                                     int id,
                                     java.lang.String name,
                                     boolean shaded,
                                     boolean isAdmin)
Displays the list of folders that have been added in the restrict to folders filter

Throws:
HTMLException

DisplayHiddenInputs

protected void DisplayHiddenInputs(HTMLElement result)
Parameters:
result -
Throws:
HTMLException



Copyright 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.