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

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.PageableLocationList
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.IsWidget

public class PageableLocationList
extends PageableList

PageableLocationList 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
PageableLocationList()
           
 
Method Summary
protected  com.google.gwt.user.client.ui.Widget getListItemWidget(int rowIndex)
          getListItemWidget
protected  int getListSize()
          getListSize
 void onItemClickHandler(com.google.gwt.event.dom.client.ClickEvent event)
          onItemClickHandler
 void refreshLocationListResize()
          refreshLocationListResize
 void updateList(ArrayList<? extends LocationInfo> locations)
          TODO: Maybe enhance this so that it only adds/updates/deletes individual items TODO: Don't skip to the front page on every update
 
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, 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, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PageableLocationList

public PageableLocationList()
Method Detail

getListItemWidget

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

getListItemWidget

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

updateList

public void updateList(ArrayList<? extends LocationInfo> locations)
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:
locations - a ArrayList 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.

refreshLocationListResize

public void refreshLocationListResize()

refreshLocationListResize



Copyright © 2011. All Rights Reserved.