Class ConsumerPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ConsumerPanel extends MetaDataPanel
The Class ConsumerPanel.
See Also:
  • Constructor Details

    • ConsumerPanel

      public ConsumerPanel(ResourceSpecifier casConsumerSpecifier, File specifierFile, long fileModStamp)
      Instantiates a new consumer panel.
      Parameters:
      casConsumerSpecifier - the cas consumer specifier
      specifierFile - the specifier file
      fileModStamp - the file mod stamp
  • Method Details

    • getCasConsumerSpecifier

      public ResourceSpecifier getCasConsumerSpecifier()
      Gets the cas consumer specifier.
      Returns:
      the cas consumer specifier
    • getLastFileSyncTimestamp

      public long getLastFileSyncTimestamp()
      Gets the last file sync timestamp.
      Returns:
      the last file sync timestamp
    • setLastFileSyncTimestamp

      public void setLastFileSyncTimestamp(long timestamp)
      Sets the last file sync timestamp.
      Parameters:
      timestamp - the new last file sync timestamp
    • hasFileChanged

      public boolean hasFileChanged(long lastCheck)
      Checks for file changed.
      Parameters:
      lastCheck - the last check
      Returns:
      true, if successful
    • refreshFromFile

      public void refreshFromFile() throws InvalidXMLException, IOException
      Refresh from file.
      Throws:
      InvalidXMLException - the invalid XML exception
      IOException - Signals that an I/O exception has occurred.