com.plumtree.portalpages.admin.ptutilities.localizedstrings
Class LocalizedStringsView

java.lang.Object
  extended by com.plumtree.uiinfrastructure.editor.EditorView
      extended by com.plumtree.portalpages.admin.ptutilities.localizedstrings.LocalizedStringsView
All Implemented Interfaces:
IManagedObject, IMVCObject, IView

public class LocalizedStringsView
extends EditorView

Author:
Don Hayler Views are responsible for generating HTML in the MVC framework. They query their model for data and build HTML from it. The links and forms in that HTML should be constructed so the Interpreter can use the controls to process events. Views should encapsulate the presentation of the AActivitySpace. As an MVC component, Views are subject to the strict separation between data, logic, and presentation. It is a requirement that Views not contain any server code other than constants (i.e. PT_PROPIDS.PT_PROPID_NAME). IPTQueryResults should not be used in Views, rather, Models should provide accesor methods for them. It is also a requirement that Views not depend on Models for HTML. Views can use helper classes (Strategies, delegation, etc...) to generate HTML, but Views should never expect a model to return an HTMLElement or HTMLConstruct to them. Models can return text Strings for display in HTMLElements. Obviously, there should be a good way to refer to views without having to manually type in a text string. There should be some sort of package identifier used to get these.

Field Summary
static java.lang.String STR_FILE_UPLOAD_CONTROL
           
static java.lang.String STR_MVC_CLASS_NAME
           
 
Fields inherited from class com.plumtree.uiinfrastructure.editor.EditorView
m_model, SPACE
 
Constructor Summary
LocalizedStringsView()
           
 
Method Summary
 java.lang.Object Create()
          This method is used by the ASManager to return new instances of managed objects.
 HTMLElement Display()
          This method returns the HTMLElement that encompasses the output of the View.
 HTMLScript DisplayJavascript()
          This method returns the HTMLScript that encompasses the Javascript on the page.
 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
See Also:
Constant Field Values

STR_FILE_UPLOAD_CONTROL

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

LocalizedStringsView

public LocalizedStringsView()
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()

Display

public HTMLElement Display()
Description copied from class: EditorView
This method returns the HTMLElement that encompasses the output of the View.

Specified by:
Display in interface IView
Specified by:
Display in class EditorView
Returns:
HTMLElement
See Also:
com.plumtree.portaluiinfrastructure.activityspace.IView#Display()

DisplayJavascript

public HTMLScript DisplayJavascript()
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()
Description copied from class: EditorView
Returns the Class name.

Specified by:
GetName in interface IMVCObject
Specified by:
GetName in class EditorView
Returns:
String
See Also:
com.plumtree.portaluiinfrastructure.activityspace.IView#GetName()

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:
com.plumtree.portaluiinfrastructure.activityspace.IView#Init(IModelRO, AActivitySpace)



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