forked from NASAWorldWind/WorldWindJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWWObjectImpl.java
More file actions
58 lines (51 loc) · 1.7 KB
/
Copy pathWWObjectImpl.java
File metadata and controls
58 lines (51 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
* Copyright (C) 2012 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/
package gov.nasa.worldwind;
import gov.nasa.worldwind.avlist.AVListImpl;
import gov.nasa.worldwind.event.*;
import gov.nasa.worldwind.util.*;
/**
* Implements <code>WWObject</code> functionality. Meant to be either subclassed or aggregated by classes implementing
* <code>WWObject</code>.
*
* @author Tom Gaskins
* @version $Id: WWObjectImpl.java 1171 2013-02-11 21:45:02Z dcollins $
*/
public class WWObjectImpl extends AVListImpl implements WWObject
{
/**
* Constructs a new <code>WWObjectImpl</code>.
*/
public WWObjectImpl()
{
}
public WWObjectImpl(Object source)
{
super(source);
}
/**
* The property change listener for <em>this</em> instance.
* Receives property change notifications that this instance has registered with other property change notifiers.
* @param propertyChangeEvent the event
* @throws IllegalArgumentException if <code>propertyChangeEvent</code> is null
*/
public void propertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
{
if (propertyChangeEvent == null)
{
String msg = Logging.getMessage("nullValue.PropertyChangeEventIsNull");
Logging.logger().severe(msg);
throw new IllegalArgumentException(msg);
}
// Notify all *my* listeners of the change that I caught
super.firePropertyChange(propertyChangeEvent);
}
/** Empty implementation of MessageListener. */
public void onMessage(Message message)
{
// Empty implementation
}
}