tutorial.portal
Class Visit

java.lang.Object
  |
  +--tutorial.portal.Visit
All Implemented Interfaces:
java.io.Serializable

public class Visit
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Visit()
           
 
Method Summary
 void addModel(int id)
           
 boolean getMaySelectPortlet()
          Returns true if there are any additional portlets that the user has not already added.
 java.util.Collection getModels()
           
 IPropertySelectionModel getPortletSelectionModel()
          Returns a portlet selection model that will produce a list of all portlets not already in use.
 void removeModel(PortletModel model)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Visit

public Visit()
Method Detail

removeModel

public void removeModel(PortletModel model)

getModels

public java.util.Collection getModels()

addModel

public void addModel(int id)

getPortletSelectionModel

public IPropertySelectionModel getPortletSelectionModel()
Returns a portlet selection model that will produce a list of all portlets not already in use. It will generate an integer property which is the id of they selected porlet, suitable for passing to addModel(int).

getMaySelectPortlet

public boolean getMaySelectPortlet()
Returns true if there are any additional portlets that the user has not already added. If it returns false, then the UI should omit the form for adding a new portlet.