Package org.opencms.ade.containerpage
Class CmsRelationTargetListBean
- java.lang.Object
-
- org.opencms.ade.containerpage.CmsRelationTargetListBean
-
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsRelationTargetListBean extends java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
Helper bean used to collect a list of resources (usually relation targets) and keep track of whether any of them have the "changed" state.
-
-
Constructor Summary
Constructors Constructor Description CmsRelationTargetListBean()
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(CmsResource resource)
Adds a new resource.java.util.List<CmsResource>
getResources()
Gets the list of resources which have been added.boolean
isChanged()
Returns true if any of the added resources have been changed.
-
-
-
Constructor Detail
-
CmsRelationTargetListBean
public CmsRelationTargetListBean()
Creates a new instance.
-
-
Method Detail
-
add
public void add(CmsResource resource)
Adds a new resource.- Parameters:
resource
- the resource to add
-
getResources
public java.util.List<CmsResource> getResources()
Gets the list of resources which have been added.- Returns:
- the list of added resource
-
isChanged
public boolean isChanged()
Returns true if any of the added resources have been changed.- Returns:
- true if any of the resources have been changed
-
-