Class 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.

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • add

        public void add​(CmsResource resource)
        Adds a new resource.

        Parameters:
        resource - the resource to add
      • getResources

        public java.util.List<CmsResourcegetResources()
        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