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

java.lang.Object
  extended by org.opennms.features.poller.remote.gwt.client.DefaultApplicationView
All Implemented Interfaces:
com.google.gwt.event.logical.shared.ResizeHandler, com.google.gwt.event.shared.EventHandler, ApplicationView

public class DefaultApplicationView
extends Object
implements ApplicationView, com.google.gwt.event.logical.shared.ResizeHandler


Field Summary
protected  com.google.gwt.user.client.ui.Hyperlink applicationLink
           
protected  org.opennms.features.poller.remote.gwt.client.DefaultApplicationView.LinkStyles linkStyles
           
protected  com.google.gwt.user.client.ui.Hyperlink locationLink
           
protected  LocationPanel locationPanel
           
protected  com.google.gwt.user.client.ui.DockLayoutPanel mainPanel
           
protected  com.google.gwt.user.client.ui.SplitLayoutPanel splitPanel
           
protected  com.google.gwt.user.client.ui.CheckBox statusDisconnected
           
protected  com.google.gwt.user.client.ui.CheckBox statusDown
           
protected  com.google.gwt.user.client.ui.HorizontalPanel statusesPanel
           
protected  com.google.gwt.user.client.ui.CheckBox statusMarginal
           
protected  com.google.gwt.user.client.ui.CheckBox statusStopped
           
protected  com.google.gwt.user.client.ui.CheckBox statusUnknown
           
protected  com.google.gwt.user.client.ui.CheckBox statusUp
           
protected  com.google.gwt.user.client.ui.Label updateTimestamp
           
 
Constructor Summary
DefaultApplicationView(Application presenter, com.google.gwt.event.shared.HandlerManager eventBus, MapPanel mapPanel)
           
 
Method Summary
 void fitMapToLocations(GWTBounds locationBounds)
           
 GWTBounds getMapBounds()
           
 Set<Status> getSelectedStatuses()
           
 void initialize()
           
 void onApplicationClick(com.google.gwt.event.dom.client.ClickEvent event)
          onApplicationClick
 void onDisconnectedClicked(com.google.gwt.event.dom.client.ClickEvent event)
           
 void onDownClicked(com.google.gwt.event.dom.client.ClickEvent event)
           
 void onLocationClick(com.google.gwt.event.dom.client.ClickEvent event)
          onLocationClick
 void onMarginalClicked(com.google.gwt.event.dom.client.ClickEvent event)
           
 void onResize(com.google.gwt.event.logical.shared.ResizeEvent event)
           
 void onStoppedClicked(com.google.gwt.event.dom.client.ClickEvent event)
           
 void onUnknownClicked(com.google.gwt.event.dom.client.ClickEvent event)
           
 void onUpClicked(com.google.gwt.event.dom.client.ClickEvent event)
           
 void placeMarker(GWTMarkerState markerState)
           
 void setSelectedTag(String selectedTag, List<String> allTags)
           
 void setStatusMessage(String statusMessage)
           
 void showLocationDetails(String locationName, String htmlTitle, String htmlContent)
           
 void updateApplicationList(ArrayList<ApplicationInfo> applications)
           
 void updateApplicationNames(TreeSet<String> allApplicationNames)
           
 void updateLocationList(ArrayList<LocationInfo> locationsForLocationPanel)
           
 void updateSelectedApplications(Set<ApplicationInfo> applications)
           
 void updateTimestamp()
          updateTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locationPanel

@UiField
protected LocationPanel locationPanel

mainPanel

@UiField
protected com.google.gwt.user.client.ui.DockLayoutPanel mainPanel

splitPanel

@UiField
protected com.google.gwt.user.client.ui.SplitLayoutPanel splitPanel

locationLink

@UiField
protected com.google.gwt.user.client.ui.Hyperlink locationLink

applicationLink

@UiField
protected com.google.gwt.user.client.ui.Hyperlink applicationLink

updateTimestamp

@UiField
protected com.google.gwt.user.client.ui.Label updateTimestamp

linkStyles

@UiField
protected org.opennms.features.poller.remote.gwt.client.DefaultApplicationView.LinkStyles linkStyles

statusesPanel

@UiField
protected com.google.gwt.user.client.ui.HorizontalPanel statusesPanel

statusDown

@UiField
protected com.google.gwt.user.client.ui.CheckBox statusDown

statusDisconnected

@UiField
protected com.google.gwt.user.client.ui.CheckBox statusDisconnected

statusMarginal

@UiField
protected com.google.gwt.user.client.ui.CheckBox statusMarginal

statusUp

@UiField
protected com.google.gwt.user.client.ui.CheckBox statusUp

statusStopped

@UiField
protected com.google.gwt.user.client.ui.CheckBox statusStopped

statusUnknown

@UiField
protected com.google.gwt.user.client.ui.CheckBox statusUnknown
Constructor Detail

DefaultApplicationView

public DefaultApplicationView(Application presenter,
                              com.google.gwt.event.shared.HandlerManager eventBus,
                              MapPanel mapPanel)
Method Detail

onDownClicked

@UiHandler(value="statusDown")
public void onDownClicked(com.google.gwt.event.dom.client.ClickEvent event)

onDisconnectedClicked

@UiHandler(value="statusDisconnected")
public void onDisconnectedClicked(com.google.gwt.event.dom.client.ClickEvent event)

onMarginalClicked

@UiHandler(value="statusMarginal")
public void onMarginalClicked(com.google.gwt.event.dom.client.ClickEvent event)

onUpClicked

@UiHandler(value="statusUp")
public void onUpClicked(com.google.gwt.event.dom.client.ClickEvent event)

onStoppedClicked

@UiHandler(value="statusStopped")
public void onStoppedClicked(com.google.gwt.event.dom.client.ClickEvent event)

onUnknownClicked

@UiHandler(value="statusUnknown")
public void onUnknownClicked(com.google.gwt.event.dom.client.ClickEvent event)

onApplicationClick

@UiHandler(value="applicationLink")
public void onApplicationClick(com.google.gwt.event.dom.client.ClickEvent event)

onApplicationClick

Parameters:
event - a ClickEvent object.

onLocationClick

@UiHandler(value="locationLink")
public void onLocationClick(com.google.gwt.event.dom.client.ClickEvent event)

onLocationClick

Parameters:
event - a ClickEvent object.

updateTimestamp

public void updateTimestamp()
Description copied from interface: ApplicationView

updateTimestamp

Specified by:
updateTimestamp in interface ApplicationView

getSelectedStatuses

public Set<Status> getSelectedStatuses()
Specified by:
getSelectedStatuses in interface ApplicationView

initialize

public void initialize()
Specified by:
initialize in interface ApplicationView

updateSelectedApplications

public void updateSelectedApplications(Set<ApplicationInfo> applications)
Specified by:
updateSelectedApplications in interface ApplicationView

updateLocationList

public void updateLocationList(ArrayList<LocationInfo> locationsForLocationPanel)
Specified by:
updateLocationList in interface ApplicationView

setSelectedTag

public void setSelectedTag(String selectedTag,
                           List<String> allTags)
Specified by:
setSelectedTag in interface ApplicationView

updateApplicationList

public void updateApplicationList(ArrayList<ApplicationInfo> applications)
Specified by:
updateApplicationList in interface ApplicationView

updateApplicationNames

public void updateApplicationNames(TreeSet<String> allApplicationNames)
Specified by:
updateApplicationNames in interface ApplicationView

fitMapToLocations

public void fitMapToLocations(GWTBounds locationBounds)
Specified by:
fitMapToLocations in interface ApplicationView

getMapBounds

public GWTBounds getMapBounds()
Specified by:
getMapBounds in interface ApplicationView

showLocationDetails

public void showLocationDetails(String locationName,
                                String htmlTitle,
                                String htmlContent)
Specified by:
showLocationDetails in interface ApplicationView

placeMarker

public void placeMarker(GWTMarkerState markerState)
Specified by:
placeMarker in interface ApplicationView

setStatusMessage

public void setStatusMessage(String statusMessage)
Specified by:
setStatusMessage in interface ApplicationView

onResize

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


Copyright © 2011. All Rights Reserved.