Class LinkedImage

java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.cooler.LinkedImage
All Implemented Interfaces:
Serializable, Comparable<Object>, IDBean, Cacheable

public class LinkedImage extends DatabaseBean
A bean to store Water Cooler Linked Images and their descriptions.
Since:
1.0
Version:
10.6
Author:
Luke
See Also:
  • Constructor Details

    • LinkedImage

      public LinkedImage(int id, String url)
      Creates the Linked Image bean.
      Parameters:
      id - the sort order
      url - the URL to link to
      Throws:
      IllegalArgumentException - if id is zero or negative, or the URL is invalid
  • Method Details

    • getURL

      public String getURL()
      Returns the Image URL.
      Returns:
      the URL
      See Also:
    • getDescription

      public String getDescription()
      Returns the Image description.
      Returns:
      the description
      See Also:
    • getThreadID

      public int getThreadID()
      Returns the thread ID.
      Returns:
      the thread database ID
      See Also:
    • getDisabled

      public boolean getDisabled()
      Returns whther this Linked Image is dsiabled.
      Returns:
      TRUE if disabled, otherwise FALSE
      See Also:
    • setURL

      public void setURL(String url)
      Updates the linked Image URL.
      Parameters:
      url - the URL
      Throws:
      IllegalArgumentException - if the URL is malformed or invalid
      See Also:
    • setThreadID

      public void setThreadID(int id)
      Updates the Message Thread ID.
      Parameters:
      id - the thread database ID
      See Also:
    • setDescription

      public void setDescription(String desc)
      Updates the Image Description.
      Parameters:
      desc - the description
      See Also:
    • setDisabled

      public void setDisabled(boolean isDisabled)
      Marks this Image Link as disabled.
      Parameters:
      isDisabled - TRUE if disabled, otherwise FALSE
      See Also:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DatabaseBean
    • equals

      public boolean equals(Object o)
      Tests for equality by comparing the URLs.
      Overrides:
      equals in class DatabaseBean
    • toString

      public String toString()
      Returns the URL.
      Overrides:
      toString in class Object