org.opennms.features.poller.remote.gwt.client
Class PageableApplicationList

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by org.opennms.features.poller.remote.gwt.client.PageableList
                  extended by org.opennms.features.poller.remote.gwt.client.PageableApplicationList
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.EventHandler, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget, ApplicationDetailsRetrievedEventHandler

public class PageableApplicationList
extends PageableList
implements ApplicationDetailsRetrievedEventHandler

PageableApplicationList class.

Since:
1.8.1
Version:
$Id: $
Author:
ranger

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
PageableApplicationList()
          Constructor for PageableApplicationList.
 
Method Summary
 boolean checkIfApplicationIsSelected(String name)
          checkIfApplicationIsSelected
protected  com.google.gwt.user.client.ui.Widget getListItemWidget(int index)
          getListItemWidget
protected  int getListSize()
          getListSize
 String getSelectedApplicationDetailsAsString(String name)
          getSelectedApplicationDetailsAsString
 void onApplicationDetailsRetrieved(ApplicationDetailsRetrievedEvent event)
          onApplicationDetailsRetrieved
 void onItemClickHandler(com.google.gwt.event.dom.client.ClickEvent event)
          onItemClickHandler
 void refreshApplicationListResize()
          refreshApplicationListResize
 void setEventBus(com.google.gwt.event.shared.HandlerManager eventBus)
          setEventBus
 void updateList(ArrayList<ApplicationInfo> applications)
          TODO: Maybe enhance this so that it only adds/updates/deletes individual items TODO: Don't skip to the front page on every update
 void updateSelectedApplications(Set<ApplicationInfo> selectedApplications)
          updateSelectedApplications
 
Methods inherited from class org.opennms.features.poller.remote.gwt.client.PageableList
addLocationPanelSelectEventHandler, calculateAndSetTotalPages, getAlternateRowStyle, getCellForEvent, getCurrentPageIndex, getTotalListItemsPerPage, onLoad, onNextBtnClick, onPrevBtnClick, refresh, setCurrentPageIndex, showFirstPage, updateListDisplay
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PageableApplicationList

public PageableApplicationList()

Constructor for PageableApplicationList.

Method Detail

getSelectedApplicationDetailsAsString

public String getSelectedApplicationDetailsAsString(String name)

getSelectedApplicationDetailsAsString

Parameters:
name - a String object.
Returns:
a String object.

checkIfApplicationIsSelected

public boolean checkIfApplicationIsSelected(String name)

checkIfApplicationIsSelected

Parameters:
name - a String object.
Returns:
a boolean.

updateList

public void updateList(ArrayList<ApplicationInfo> applications)
TODO: Maybe enhance this so that it only adds/updates/deletes individual items TODO: Don't skip to the front page on every update

Parameters:
applications - a ArrayList object.

getListItemWidget

protected com.google.gwt.user.client.ui.Widget getListItemWidget(int index)

getListItemWidget

Specified by:
getListItemWidget in class PageableList
Parameters:
index - a int.
Returns:
a Widget object.

getListSize

protected int getListSize()

getListSize

Specified by:
getListSize in class PageableList
Returns:
a int.

onItemClickHandler

public void onItemClickHandler(com.google.gwt.event.dom.client.ClickEvent event)

onItemClickHandler

Specified by:
onItemClickHandler in class PageableList
Parameters:
event - a ClickEvent object.

setEventBus

public void setEventBus(com.google.gwt.event.shared.HandlerManager eventBus)

setEventBus

Parameters:
eventBus - a HandlerManager object.

onApplicationDetailsRetrieved

public void onApplicationDetailsRetrieved(ApplicationDetailsRetrievedEvent event)

onApplicationDetailsRetrieved

Specified by:
onApplicationDetailsRetrieved in interface ApplicationDetailsRetrievedEventHandler
Parameters:
event - a ApplicationDetailsRetrievedEvent object.

refreshApplicationListResize

public void refreshApplicationListResize()

refreshApplicationListResize


updateSelectedApplications

public void updateSelectedApplications(Set<ApplicationInfo> selectedApplications)

updateSelectedApplications

Parameters:
selectedApplications - a Set object.


Copyright © 2011. All Rights Reserved.