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

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.LocationPanel
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.ResizeHandler, 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, com.google.gwt.user.client.ui.RequiresResize, LocationPanelSelectEventHandler, TagPanel.TagResizeEventHandler

public class LocationPanel
extends com.google.gwt.user.client.ui.Composite
implements LocationPanelSelectEventHandler, TagPanel.TagResizeEventHandler, com.google.gwt.user.client.ui.RequiresResize, com.google.gwt.event.logical.shared.ResizeHandler

LocationPanel 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
LocationPanel()
          Constructor for LocationPanel.
 
Method Summary
 boolean addAllTags(Collection<String> tags)
          addAllTags
 void clearTagPanel()
          clearTagPanel
static String getUserAgent()
           
 void onLocationSelected(LocationPanelSelectEvent event)
          onLocationSelected
 void onResize()
          onResize
 void onResize(com.google.gwt.event.logical.shared.ResizeEvent event)
           
 void onTagPanelResize()
          onTagPanelResize
 void resizeDockPanel()
          resizeDockPanel
 void selectTag(String tag)
          selectTag
 void setEventBus(com.google.gwt.event.shared.HandlerManager eventBus)
          setEventBus
 void showApplicationFilters(boolean isApplicationView)
          showApplicationFilters
 void showApplicationList()
          Switches view to the Pageable Application List
 void showLocationList()
          Switches view to Pageable Location List
 void updateApplicationList(ArrayList<ApplicationInfo> appList)
          updateApplicationList
 void updateApplicationNames(Set<String> allApplicationNames)
          updateApplicationNames
 void updateLocationList(ArrayList<LocationInfo> visibleLocations)
          updateLocationList
 void updateSelectedApplications(Set<ApplicationInfo> selectedApplications)
          updateSelectedApplications
 
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, onLoad, 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

LocationPanel

public LocationPanel()

Constructor for LocationPanel.

Method Detail

setEventBus

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

setEventBus

Parameters:
eventBus - a HandlerManager object.

onLocationSelected

public void onLocationSelected(LocationPanelSelectEvent event)

onLocationSelected

Specified by:
onLocationSelected in interface LocationPanelSelectEventHandler
Parameters:
event - a LocationPanelSelectEvent object.

showLocationList

public void showLocationList()
Switches view to Pageable Location List


showApplicationList

public void showApplicationList()
Switches view to the Pageable Application List


updateSelectedApplications

public void updateSelectedApplications(Set<ApplicationInfo> selectedApplications)

updateSelectedApplications

Parameters:
selectedApplications - a Set object.

updateApplicationNames

public void updateApplicationNames(Set<String> allApplicationNames)

updateApplicationNames

Parameters:
allApplicationNames - a Set object.

updateApplicationList

public void updateApplicationList(ArrayList<ApplicationInfo> appList)

updateApplicationList

Parameters:
appList - a ArrayList object.

updateLocationList

public void updateLocationList(ArrayList<LocationInfo> visibleLocations)

updateLocationList

Parameters:
visibleLocations - a ArrayList object.

selectTag

public void selectTag(String tag)

selectTag

Parameters:
tag - a String object.

clearTagPanel

public void clearTagPanel()

clearTagPanel


addAllTags

public boolean addAllTags(Collection<String> tags)

addAllTags

Parameters:
tags - a Collection object.
Returns:
a boolean.

showApplicationFilters

public void showApplicationFilters(boolean isApplicationView)

showApplicationFilters

Parameters:
isApplicationView - a boolean.

resizeDockPanel

public void resizeDockPanel()

resizeDockPanel


onTagPanelResize

public void onTagPanelResize()

onTagPanelResize

Specified by:
onTagPanelResize in interface TagPanel.TagResizeEventHandler

onResize

public void onResize()

onResize

Specified by:
onResize in interface com.google.gwt.user.client.ui.RequiresResize

onResize

public void onResize(com.google.gwt.event.logical.shared.ResizeEvent event)
Specified by:
onResize in interface com.google.gwt.event.logical.shared.ResizeHandler

getUserAgent

public static String getUserAgent()


Copyright © 2011. All Rights Reserved.