com.sap.portal.workcenter.sl

Interface IViewGroup

All Superinterfaces:
IView
All Known Subinterfaces:
IControlCenter, IWorkCenter

public interface IViewGroup
extends IView

The interface that represents a group of views.

Since IViewGroupextends IView, you can build recursive view structures, where a view group can contain views and view groups.


Method Summary
 IView addView(String name, com.sap.portal.pcm.NewObjectDescriptor descriptor)
          Adds a view to the view group.
 IViewGroup addViewGroup(String name)
          Adds a view group to this view group.
 IView getDefaultView()
          Returns the default view of this view group.
 IView getView(String name)
          Returns a specified view or view group in this view group.
 List getViews()
          Returns a list of all the views and view groups in this view group.
 void removeView(String name)
          Removes a specified view or view group from this view group.
 void setDefaultView(String name)
          Sets a view as the default view in this Group.
 
Methods inherited from interface com.sap.portal.workcenter.sl.IView
getAdminBase
 

Method Detail

addView

IView addView(String name,
              com.sap.portal.pcm.NewObjectDescriptor descriptor)
              throws WorkCenterSLException
Adds a view to the view group.

Parameters:
name - the name of the view to be created in the view group
descriptor - a descriptor of the object to be added to the view group. Only iView and Page descriptors are supported. If a different descriptor is provided, a WorkCenterSLException is thrown.
Returns:
the new view
Throws:
WorkCenterSLException - if the descriptor is not an iView or Page descriptor, or if NamingException is thrown during the method flow

addViewGroup

IViewGroup addViewGroup(String name)
                        throws WorkCenterSLException
Adds a view group to this view group.

Parameters:
name - the name of the new view group to be created in the view group
Returns:
the new view group
Throws:
WorkCenterSLException - if an exception is thrown during the method flow

removeView

void removeView(String name)
                throws WorkCenterSLException
Removes a specified view or view group from this view group.

Parameters:
name - the name of the view or view group to be removed from this view group
Throws:
WorkCenterSLException - if a NamingException is thrown during the method flow

getView

IView getView(String name)
              throws WorkCenterSLException
Returns a specified view or view group in this view group.

Parameters:
name - the name of the view or view group to be returned
Returns:
the specified view or view group
Throws:
WorkCenterSLException

getViews

List getViews()
              throws WorkCenterSLException
Returns a list of all the views and view groups in this view group.

Returns:
a list of all views and view groups in this view group.
Throws:
WorkCenterSLException

getDefaultView

IView getDefaultView()
                     throws WorkCenterSLException
Returns the default view of this view group. If no object is set as default, returns the first view.

Returns:
the default view of this view group, or the first view if no view is set as default
Throws:
WorkCenterSLException

setDefaultView

void setDefaultView(String name)
                    throws WorkCenterSLException
Sets a view as the default view in this Group. If another view is set as the default, this method also unsets the first view and then sets the specified view as the default.

Parameters:
name - the name of the view to be set as the default.
Throws:
WorkCenterSLException
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-RUNTIME [sap.com] tc/ep/semantics/api api EP-PIN


Copyright 2015 SAP AG Complete Copyright Notice