org.opennms.features.poller.remote.gwt.client.location
Class LocationInfo

java.lang.Object
  extended by org.opennms.features.poller.remote.gwt.client.location.LocationInfo
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable, Serializable, Comparable<LocationInfo>

public class LocationInfo
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable, Serializable, Comparable<LocationInfo>

LocationInfo class.

Since:
1.8.1
Version:
$Id: $
Author:
ranger
See Also:
Serialized Form

Constructor Summary
LocationInfo()
          Constructor for LocationInfo.
LocationInfo(LocationInfo info)
          Constructor for LocationInfo.
LocationInfo(String name, String area, String geolocation, String coordinates, Long priority, GWTMarkerState marker, StatusDetails statusDetails, Set<String> tags)
          Constructor for LocationInfo.
 
Method Summary
 int compareTo(LocationInfo that)
          compareTo
 boolean equals(Object aThat)
          
 String getArea()
          getArea
 String getCoordinates()
          getCoordinates
 String getGeolocation()
          getGeolocation
 GWTLatLng getLatLng()
          getLatLng
 String getMarkerImageURL()
          getMarkerImageURL
 GWTMarkerState getMarkerState()
          getMarkerState
 String getName()
          getName
 Long getPriority()
          getPriority
 Status getStatus()
           
 StatusDetails getStatusDetails()
          getStatusDetails
 Set<String> getTags()
          getTags
 int hashCode()
          hashCode
 boolean hasTag(String selectedTag)
           
 boolean isVisible(GWTBounds bounds)
          isVisible
 void setArea(String area)
          setArea
 void setCoordinates(String coordinates)
          setCoordinates
 void setGeolocation(String geolocation)
          setGeolocation
 void setMarkerState(GWTMarkerState markerState)
          setMarkerState
 void setName(String name)
          setName
 void setPriority(Long priority)
          setPriority
 void setStatusDetails(StatusDetails status)
          setStatusDetails
 void setTags(Set<String> tags)
          setTags
 String toString()
          toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocationInfo

public LocationInfo()

Constructor for LocationInfo.


LocationInfo

public LocationInfo(LocationInfo info)

Constructor for LocationInfo.

Parameters:
info - a LocationInfo object.

LocationInfo

public LocationInfo(String name,
                    String area,
                    String geolocation,
                    String coordinates,
                    Long priority,
                    GWTMarkerState marker,
                    StatusDetails statusDetails,
                    Set<String> tags)

Constructor for LocationInfo.

Parameters:
name - a String object.
area - a String object.
geolocation - a String object.
coordinates - a String object.
priority - a Long object.
marker - a GWTMarkerState object.
statusDetails - a StatusDetails object.
tags - a Set object.
Method Detail

getName

public String getName()

getName

Returns:
a String object.

setName

public void setName(String name)

setName

Parameters:
name - a String object.

getArea

public String getArea()

getArea

Returns:
a String object.

setArea

public void setArea(String area)

setArea

Parameters:
area - a String object.

getGeolocation

public String getGeolocation()

getGeolocation

Returns:
a String object.

setGeolocation

public void setGeolocation(String geolocation)

setGeolocation

Parameters:
geolocation - a String object.

getCoordinates

public String getCoordinates()

getCoordinates

Returns:
a String object.

setCoordinates

public void setCoordinates(String coordinates)

setCoordinates

Parameters:
coordinates - a String object.

getPriority

public Long getPriority()

getPriority

Returns:
a Long object.

setPriority

public void setPriority(Long priority)

setPriority

Parameters:
priority - a Long object.

getTags

public Set<String> getTags()

getTags

Returns:
a Set object.

setTags

public void setTags(Set<String> tags)

setTags

Parameters:
tags - a Set object.

getStatusDetails

public StatusDetails getStatusDetails()

getStatusDetails

Returns:
a StatusDetails object.

setStatusDetails

public void setStatusDetails(StatusDetails status)

setStatusDetails

Parameters:
status - a StatusDetails object.

getMarkerState

public GWTMarkerState getMarkerState()

getMarkerState

Returns:
a GWTMarkerState object.

setMarkerState

public void setMarkerState(GWTMarkerState markerState)

setMarkerState

Parameters:
markerState - a GWTMarkerState object.

getLatLng

public GWTLatLng getLatLng()

getLatLng

Returns:
a GWTLatLng object.

isVisible

public boolean isVisible(GWTBounds bounds)

isVisible

Parameters:
bounds - a GWTBounds object.
Returns:
a boolean.

equals

public boolean equals(Object aThat)

Overrides:
equals in class Object

hashCode

public int hashCode()

hashCode

Overrides:
hashCode in class Object
Returns:
a int.

compareTo

public int compareTo(LocationInfo that)

compareTo

Specified by:
compareTo in interface Comparable<LocationInfo>
Parameters:
that - a LocationInfo object.
Returns:
a int.

toString

public String toString()

toString

Overrides:
toString in class Object
Returns:
a String object.

getMarkerImageURL

public String getMarkerImageURL()

getMarkerImageURL

Returns:
a String object.

hasTag

public boolean hasTag(String selectedTag)

getStatus

public Status getStatus()


Copyright © 2011. All Rights Reserved.