org.gcube.portlets.admin.irbootstrapperportlet.gwt.client.UIElementsData
Class ResourceTypeUIElement

java.lang.Object
  extended by org.gcube.portlets.admin.irbootstrapperportlet.gwt.client.UIElementsData.UIElement
      extended by org.gcube.portlets.admin.irbootstrapperportlet.gwt.client.UIElementsData.ResourceTypeUIElement
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class ResourceTypeUIElement
extends UIElement
implements com.google.gwt.user.client.rpc.IsSerializable

Author:
Spyros Boutsis, NKUA

Constructor Summary
ResourceTypeUIElement()
          Class constructor
 
Method Summary
 void addResource(ResourceUIElement resource)
          Adds a resource to this ResourceTypeUIElement's resource list
 boolean containsResource(String resourceUID)
          Checks if a resource with the given UID is contained in the resource list of this ResourceTypeUIElement
 ResourceUIElement findResource(String resourceUID)
          Searches for a resource with a given UID in the resource list of this ResourceTypeUIElement
 List<ResourceUIElement> getResources()
          Returns the list of resources of this ResourceTypeUIElement
 
Methods inherited from class org.gcube.portlets.admin.irbootstrapperportlet.gwt.client.UIElementsData.UIElement
equals, getDescription, getName, getUID, hashCode, setDescription, setName, setUID
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceTypeUIElement

public ResourceTypeUIElement()
Class constructor

Method Detail

getResources

public List<ResourceUIElement> getResources()
Returns the list of resources of this ResourceTypeUIElement

Returns:

addResource

public void addResource(ResourceUIElement resource)
Adds a resource to this ResourceTypeUIElement's resource list

Parameters:
resource - the resource to add

containsResource

public boolean containsResource(String resourceUID)
Checks if a resource with the given UID is contained in the resource list of this ResourceTypeUIElement

Parameters:
resourceUID - the UID of the resource being searched
Returns:

findResource

public ResourceUIElement findResource(String resourceUID)
Searches for a resource with a given UID in the resource list of this ResourceTypeUIElement

Parameters:
resourceUID - the resource UID to search for
Returns:
the found resource


Copyright © 2013. All Rights Reserved.