Class UploadDialogModel

All Implemented Interfaces:
Serializable, TableModel

public class UploadDialogModel extends TagEditorModel
A model for the upload dialog
Since:
18173
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • fireTableDataChanged

      public void fireTableDataChanged()
      Overrides:
      fireTableDataChanged in class AbstractTableModel
    • getValue

      public String getValue(String key)
      Get the value of a key.
      Parameters:
      key - The key to retrieve
      Returns:
      The value (may be null)
    • findHashTags

      Extracts the list of hashtags from the comment text.
      Parameters:
      comment - The comment with the hashtags
      Returns:
      the hashtags separated by ";" or null
    • addHashTagsFromDataSet

      static String addHashTagsFromDataSet(String comment, DataSet dataSet)
      Returns the given comment with appended hashtags from dataset changeset tags, if not already present.
      Parameters:
      comment - changeset comment. Can be null
      dataSet - optional dataset, which can contain hashtags in its changeset tags
      Returns:
      comment with dataset changesets tags, if any, not duplicated
    • doPut

      private void doPut(String key, String value)
      Inserts/updates/deletes a tag.

      Existing keys are updated. Others are added. A value of null deletes the key.

      Parameters:
      key - The key of the tag to insert.
      value - The value of the tag to insert.
    • put

      public void put(String key, String value)
      Inserts/updates/deletes a tag.

      Existing keys are updated. Others are added. A value of null deletes the key.

      Parameters:
      key - The key of the tag to insert.
      value - The value of the tag to insert.
    • putAll

      public void putAll(Map<String,String> map)
      Inserts/updates/deletes all tags from map.

      Existing keys are updated. Others are added. A value of null deletes the key.

      Parameters:
      map - a map of tags to insert or update
    • putAll

      public void putAll(DataSet dataSet)
      Inserts all tags from a DataSet.
      Parameters:
      dataSet - The DataSet to take tags from.
    • isCommentOrSource

      public static boolean isCommentOrSource(String key)
      Determines if the key is "comment" or "source".
      Parameters:
      key - changeset key
      Returns:
      true if the key is "comment" or "source"
      Since:
      18283