com.sapportals.portal.prt.util
Class StandardEditDialog

java.lang.Object
  |
  +--com.sapportals.portal.prt.component.AbstractPortalComponent
        |
        +--com.sapportals.portal.prt.util.StandardEditDialog
All Implemented Interfaces:
IEventListenerComponent, IPortalComponent, IPortalComponentInit

public class StandardEditDialog
extends AbstractPortalComponent

and can be used as a personalization delegate. Copyright (c) SAP Portals Europe GmbH 2001

Version:
$Revision: #3 $

Constructor Summary
StandardEditDialog()
           
 
Method Summary
protected  void doContent(IPortalComponentRequest request, IPortalComponentResponse response)
          Generates the content of the component.
protected  void doEdit(IPortalComponentRequest request, IPortalComponentResponse response)
          present a personalization dialogue.
 void doHandleEditData(IPortalComponentRequest request, IPortalRequestEvent event)
          Default handling at end of personalization: Simply store all properties.
 HtmlSelect generateBooleanSelectBox(java.lang.String name, java.lang.String value)
          Generates the select box for boolean properties
 HtmlSelect generateSelectBox(java.lang.String name, java.lang.String currentValue, java.lang.String listOfValues)
          Generates the select box for properties of type "select"
static java.util.Vector getListOfValues(java.lang.String values)
          Retrieves a vector containing the values
 
Methods inherited from class com.sapportals.portal.prt.component.AbstractPortalComponent
destroy, doAbout, doAfterContent, doBeforeContent, doComponentEvent, doHelp, doOnNodeReady, doOnNodeRemove, doOnPOMReady, doPreview, doRefresh, doRequestEvent, getCacheDiscriminant, getCachingLevel, handleEvent, hasExpired, init, init, init, service
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardEditDialog

public StandardEditDialog()
Method Detail

doContent

protected void doContent(IPortalComponentRequest request,
                         IPortalComponentResponse response)
Description copied from class: AbstractPortalComponent
Generates the content of the component.
Overrides:
doContent in class AbstractPortalComponent
Parameters:
request -  
response -  

doEdit

protected void doEdit(IPortalComponentRequest request,
                      IPortalComponentResponse response)
present a personalization dialogue.
Overrides:
doEdit in class AbstractPortalComponent
Parameters:
request -  
response -  

doHandleEditData

public void doHandleEditData(IPortalComponentRequest request,
                             IPortalRequestEvent event)
Default handling at end of personalization: Simply store all properties.
Overrides:
doHandleEditData in class AbstractPortalComponent
Parameters:
request -  
event -  

generateSelectBox

public HtmlSelect generateSelectBox(java.lang.String name,
                                    java.lang.String currentValue,
                                    java.lang.String listOfValues)
Generates the select box for properties of type "select"
Returns:
an HtmlSelect object

generateBooleanSelectBox

public HtmlSelect generateBooleanSelectBox(java.lang.String name,
                                           java.lang.String value)
Generates the select box for boolean properties
Returns:
an HtmlSelect object

getListOfValues

public static java.util.Vector getListOfValues(java.lang.String values)
Retrieves a vector containing the values