org.openstreetmap.josm.gui.io
Class ChangesetCommentModel

java.lang.Object
  extended by java.util.Observable
      extended by org.openstreetmap.josm.gui.io.ChangesetCommentModel

public class ChangesetCommentModel
extends java.util.Observable

ChangesetCommentModel is an observable model for the changeset comment edited in the UploadDialog.


Field Summary
private  java.lang.String comment
           
 
Constructor Summary
ChangesetCommentModel()
           
 
Method Summary
 java.lang.String getComment()
          Replies the current changeset comment in this model.
 void setComment(java.lang.String comment)
          Sets the current changeset comment and notifies observers if the comment has changed.
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

comment

private java.lang.String comment
Constructor Detail

ChangesetCommentModel

public ChangesetCommentModel()
Method Detail

setComment

public void setComment(java.lang.String comment)
Sets the current changeset comment and notifies observers if the comment has changed.

Parameters:
comment - the new upload comment. Empty string assumed if null.

getComment

public java.lang.String getComment()
Replies the current changeset comment in this model.

Returns:
the current changeset comment in this model.


JOSM