Esri Geoportal Server
1.2.9

com.esri.gpt.control.publication
Class SelectableCollections

java.lang.Object
  extended by com.esri.gpt.control.publication.SelectableCollections

public class SelectableCollections
extends Object

Defines a list of selectable collections.


Constructor Summary
SelectableCollections()
          Default constructor.
 
Method Summary
 void buildAll(RequestContext context)
          Builds the list of collections.
 boolean getHasMultiple()
          Determines if the items list contains multiple groups.
 ArrayList<SelectItem> getItems()
          Gets the SelectItem list for UI display.
 String getSelectedKey()
          Gets the currently selected key.
 int getSize()
          Gets the size of the list.
 void setSelectedKey(String key)
          Sets the currently selected key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SelectableCollections

public SelectableCollections()
Default constructor.

Method Detail

getHasMultiple

public boolean getHasMultiple()
Determines if the items list contains multiple groups.

Returns:
true if the items list is greater that 1

getItems

public ArrayList<SelectItem> getItems()
Gets the SelectItem list for UI display.

Returns:
the SelectItem list

getSize

public int getSize()
Gets the size of the list.

Returns:
size of selactable groups

getSelectedKey

public String getSelectedKey()
Gets the currently selected key.

Returns:
the currently selected key

setSelectedKey

public void setSelectedKey(String key)
Sets the currently selected key.

Parameters:
key - the currently selected key

buildAll

public void buildAll(RequestContext context)
              throws Exception
Builds the list of collections.

Parameters:
context - the active request context
Throws:
Exception

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.