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 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(CmsResource resource) Adds a new resource.Gets the list of resources which have been added.boolean
Returns true if any of the added resources have been changed.
-
Constructor Details
-
CmsRelationTargetListBean
public CmsRelationTargetListBean()Creates a new instance.
-
-
Method Details
-
add
Adds a new resource.- Parameters:
resource
- the resource to add
-
getResources
Gets the list of resources which have been added.- Returns:
- the list of added resource
-
isChanged
Returns true if any of the added resources have been changed.- Returns:
- true if any of the resources have been changed
-