com.plumtree.portalpages.browsing.editors.sitemap.sitemapfolderplugin
Class SiteMapCreateWebLinkView

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorView
      extended by com.plumtree.portalpages.browsing.editors.sitemap.sitemapfolderplugin.SiteMapCreateWebLinkView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView

public class SiteMapCreateWebLinkView
extends EditorView

This class displays the HTML for the web link selector attached to the Site Map folder plug-in. PAI - WARNING! Only user GetASOwner() in this file - never call m_asOwner. File: SiteMapCreateLinkView. java

Author:
John Hogan

Field Summary
static java.lang.String HTMLBUTTON_CANCEL
          The cancel button - closes but doesn't save
static java.lang.String HTMLBUTTON_OK
          The OK button - closes the form and saves the changes
static java.lang.String HTMLBUTTON_REPOST
          Button for adding the link to the existing list
static java.lang.String HTMLCHECKBOX_CHECKALL
          The check all checkbox
static java.lang.String HTMLCHECKBOX_WEBLINK
          The check all checkbox
static java.lang.String HTMLINPUT_EDITLINKDESC
          HTML Input for the Description of the already created web link being edited
static java.lang.String HTMLINPUT_EDITLINKNAME
          HTML Input for the name of the already created web link being edited
static java.lang.String HTMLINPUT_EDITLINKURL
          HTML Input for the URL of the already created web link being edited
static java.lang.String HTMLINPUT_LINKDESC
          HTML Input for the link description
static java.lang.String HTMLINPUT_LINKNAME
          HTML Input for the Link name
static java.lang.String HTMLINPUT_LINKURL
          HTML Input for the Link URL
static java.lang.String JAVASCRIPT_CANCEL
          Javascript to close the form without saving
static java.lang.String JAVASCRIPT_CHECKALL
          Javascript to check all the web links
static java.lang.String JAVASCRIPT_EDITROW
          Javascript to edit a given row
static java.lang.String JAVASCRIPT_POSTANDCLOSE
          Javascript to post changes and close the form
static java.lang.String JAVASCRIPT_REMOVELINKS
          Javascript to remove links from the list
static java.lang.String JAVASCRIPT_VALIDATEANDPOST
          Javascript to validate entry and move it to the selected list
static java.lang.String JAVASCRIPT_VALIDATEBEFORECLOSE
          Javascript to validate current and close the form
static java.lang.String JAVASCRIPT_VALIDATEEDIT
          Javascript to validate the edit web link in the list of web links (as opposed to the create)
static java.lang.String JAVASCRIPT_VALIDWEBLINK
          Web link javascript validation function
static java.lang.String STR_MVC_CLASS_NAME
          The unique identifier for this class
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorView
m_asOwner, m_model, SPACE
 
Constructor Summary
SiteMapCreateWebLinkView()
           
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 HTMLElement Display()
          Returns the HTML for the Section.
 HTMLScript DisplayJavascript()
          This method returns the HTMLScript that encompasses the Javascript on the page.
 HTMLElement DisplayWebLinks()
          Returns the HTML for the Web Links list.
protected  HTMLTableRow GetHTMLForBanner()
          Returns the HTML for the banner
protected  HTMLTable GetHTMLForLinkCreation()
          Returns the HTML for the link selection form.
protected  HTMLElementCollection GetHTMLForLinkList()
          Returns the HTML for the Web link list section.
protected  HTMLTableRow GetHTMLForSubHeader()
          Returns the HTML just below the banner
 java.lang.String GetName()
          Returns the Class name.
 void Init(IModelRO model, AActivitySpace parent)
          Inits the View with the read-only Model and the Activity Space.
 
Methods inherited from class com.plumtree.uiinfrastructure.editor.EditorView
AddEmptyCellToRow, AddEmptyCellToRow, AddEmptyRowToTable, AddEmptyRowToTable, GetHeaderView, GetHeaderViewHelper, GetShortSpacerTable, GetSpacerTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_MVC_CLASS_NAME

public static final java.lang.String STR_MVC_CLASS_NAME
The unique identifier for this class

See Also:
Constant Field Values

HTMLINPUT_LINKNAME

public static final java.lang.String HTMLINPUT_LINKNAME
HTML Input for the Link name

See Also:
Constant Field Values

HTMLINPUT_LINKDESC

public static final java.lang.String HTMLINPUT_LINKDESC
HTML Input for the link description

See Also:
Constant Field Values

HTMLINPUT_LINKURL

public static final java.lang.String HTMLINPUT_LINKURL
HTML Input for the Link URL

See Also:
Constant Field Values

HTMLINPUT_EDITLINKNAME

public static final java.lang.String HTMLINPUT_EDITLINKNAME
HTML Input for the name of the already created web link being edited

See Also:
Constant Field Values

HTMLINPUT_EDITLINKDESC

public static final java.lang.String HTMLINPUT_EDITLINKDESC
HTML Input for the Description of the already created web link being edited

See Also:
Constant Field Values

HTMLINPUT_EDITLINKURL

public static final java.lang.String HTMLINPUT_EDITLINKURL
HTML Input for the URL of the already created web link being edited

See Also:
Constant Field Values

HTMLBUTTON_REPOST

public static final java.lang.String HTMLBUTTON_REPOST
Button for adding the link to the existing list

See Also:
Constant Field Values

HTMLBUTTON_OK

public static final java.lang.String HTMLBUTTON_OK
The OK button - closes the form and saves the changes

See Also:
Constant Field Values

HTMLBUTTON_CANCEL

public static final java.lang.String HTMLBUTTON_CANCEL
The cancel button - closes but doesn't save

See Also:
Constant Field Values

HTMLCHECKBOX_CHECKALL

public static final java.lang.String HTMLCHECKBOX_CHECKALL
The check all checkbox

See Also:
Constant Field Values

HTMLCHECKBOX_WEBLINK

public static final java.lang.String HTMLCHECKBOX_WEBLINK
The check all checkbox

See Also:
Constant Field Values

JAVASCRIPT_POSTANDCLOSE

public static final java.lang.String JAVASCRIPT_POSTANDCLOSE
Javascript to post changes and close the form

See Also:
Constant Field Values

JAVASCRIPT_VALIDATEBEFORECLOSE

public static final java.lang.String JAVASCRIPT_VALIDATEBEFORECLOSE
Javascript to validate current and close the form

See Also:
Constant Field Values

JAVASCRIPT_CANCEL

public static final java.lang.String JAVASCRIPT_CANCEL
Javascript to close the form without saving

See Also:
Constant Field Values

JAVASCRIPT_VALIDWEBLINK

public static final java.lang.String JAVASCRIPT_VALIDWEBLINK
Web link javascript validation function

See Also:
Constant Field Values

JAVASCRIPT_VALIDATEANDPOST

public static final java.lang.String JAVASCRIPT_VALIDATEANDPOST
Javascript to validate entry and move it to the selected list

See Also:
Constant Field Values

JAVASCRIPT_CHECKALL

public static final java.lang.String JAVASCRIPT_CHECKALL
Javascript to check all the web links

See Also:
Constant Field Values

JAVASCRIPT_EDITROW

public static final java.lang.String JAVASCRIPT_EDITROW
Javascript to edit a given row

See Also:
Constant Field Values

JAVASCRIPT_REMOVELINKS

public static final java.lang.String JAVASCRIPT_REMOVELINKS
Javascript to remove links from the list

See Also:
Constant Field Values

JAVASCRIPT_VALIDATEEDIT

public static final java.lang.String JAVASCRIPT_VALIDATEEDIT
Javascript to validate the edit web link in the list of web links (as opposed to the create)

See Also:
Constant Field Values
Constructor Detail

SiteMapCreateWebLinkView

public SiteMapCreateWebLinkView()
Method Detail

Create

public java.lang.Object Create()
Description copied from class: EditorView
This method is used by the ASManager to return new instances of managed objects.

Specified by:
Create in interface IManagedObject
Specified by:
Create in class EditorView
Returns:
A new instance of the managed class (i.e. return new Foo();)
See Also:
IManagedObject.Create()

Init

public void Init(IModelRO model,
                 AActivitySpace parent)
Description copied from class: EditorView
Inits the View with the read-only Model and the Activity Space.

Specified by:
Init in interface IView
Overrides:
Init in class EditorView
See Also:
IView.Init(IModelRO, AActivitySpace)

Display

public HTMLElement Display()
Returns the HTML for the Section.

Specified by:
Display in interface IView
Specified by:
Display in class EditorView
Returns:
HTMLElement

GetHTMLForBanner

protected HTMLTableRow GetHTMLForBanner()
Returns the HTML for the banner

Returns:
HTMLTableRow

GetHTMLForSubHeader

protected HTMLTableRow GetHTMLForSubHeader()
Returns the HTML just below the banner

Returns:
HTMLTableRow

GetHTMLForLinkCreation

protected HTMLTable GetHTMLForLinkCreation()
Returns the HTML for the link selection form. Links entered here can be moved to the list below by clicking on the button

Returns:
HTMLTable

GetHTMLForLinkList

protected HTMLElementCollection GetHTMLForLinkList()
Returns the HTML for the Web link list section.

Returns:
HTMLTable

DisplayWebLinks

public HTMLElement DisplayWebLinks()
Returns the HTML for the Web Links list.

Returns:
HTMLElement

DisplayJavascript

public HTMLScript DisplayJavascript()
Description copied from class: EditorView
This method returns the HTMLScript that encompasses the Javascript on the page.

Specified by:
DisplayJavascript in interface IView
Overrides:
DisplayJavascript in class EditorView
Returns:
HTMLScript
See Also:
IView.DisplayJavascript()

GetName

public java.lang.String GetName()
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class EditorView
Returns:
String



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