org.geotools.event
Class GTNoteImpl

java.lang.Object
  extended byorg.geotools.event.GTNoteImpl
All Implemented Interfaces:
GTNote

public class GTNoteImpl
extends java.lang.Object
implements GTNote


Field Summary
protected  java.lang.String notificationName
           
protected  int notificationPosition
           
 
Fields inherited from interface org.geotools.event.GTNote
EMPTY
 
Constructor Summary
GTNoteImpl()
           
GTNoteImpl(GTComponent parent, java.lang.String notificationName, int notificationPosition)
           
GTNoteImpl(java.lang.String notificationName, int notificationPosition)
           
 
Method Summary
 java.lang.String getNotificationName()
          Indicate name used during notification
 int getNotificationPosition()
          Indicate position used during notification
 GTComponent getParent()
          Used to locate our parent.
 void setNotificationName(java.lang.String name)
          Indicate name used during notification
 void setNotificationPosition(int index)
          Indicate name position used during notification
 void setParent(GTComponent newParent)
          Used to set the parent, and associated placement information.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

notificationName

protected java.lang.String notificationName

notificationPosition

protected int notificationPosition
Constructor Detail

GTNoteImpl

public GTNoteImpl()

GTNoteImpl

public GTNoteImpl(java.lang.String notificationName,
                  int notificationPosition)

GTNoteImpl

public GTNoteImpl(GTComponent parent,
                  java.lang.String notificationName,
                  int notificationPosition)
Method Detail

getParent

public GTComponent getParent()
Description copied from interface: GTNote
Used to locate our parent.

This method will return a "NULLObject", called GTRoot.NO_PARENT when no parent is present, client code should never have to be concerned this method return null.

Specified by:
getParent in interface GTNote
Returns:
Parent GTComponent or GTRoot.NO_PARENT if none

setParent

public void setParent(GTComponent newParent)
Description copied from interface: GTNote
Used to set the parent, and associated placement information.

Specified by:
setParent in interface GTNote
Parameters:
newParent - GTComponent or NULLGTRoot if none

setNotificationName

public void setNotificationName(java.lang.String name)
Description copied from interface: GTNote
Indicate name used during notification

Specified by:
setNotificationName in interface GTNote

getNotificationName

public java.lang.String getNotificationName()
Description copied from interface: GTNote
Indicate name used during notification

Specified by:
getNotificationName in interface GTNote

setNotificationPosition

public void setNotificationPosition(int index)
Description copied from interface: GTNote
Indicate name position used during notification

Specified by:
setNotificationPosition in interface GTNote

getNotificationPosition

public int getNotificationPosition()
Description copied from interface: GTNote
Indicate position used during notification

Specified by:
getNotificationPosition in interface GTNote

toString

public java.lang.String toString()


Copyright © GeoTools. All Rights Reserved.