Class LinkedImage
java.lang.Object
org.deltava.beans.DatabaseBean
org.deltava.beans.cooler.LinkedImage
- All Implemented Interfaces:
Serializable
,Comparable<Object>
,IDBean
,Cacheable
A bean to store Water Cooler Linked Images and their descriptions.
- Since:
- 1.0
- Version:
- 10.6
- Author:
- Luke
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Tests for equality by comparing the URLs.Returns the Image description.boolean
Returns whther this Linked Image is dsiabled.int
Returns the thread ID.getURL()
Returns the Image URL.int
hashCode()
void
setDescription
(String desc) Updates the Image Description.void
setDisabled
(boolean isDisabled) Marks this Image Link as disabled.void
setThreadID
(int id) Updates the Message Thread ID.void
Updates the linked Image URL.toString()
Returns the URL.Methods inherited from class org.deltava.beans.DatabaseBean
cacheKey, compareTo, getHexID, getID, setID, validateID, validateID
-
Constructor Details
-
LinkedImage
Creates the Linked Image bean.- Parameters:
id
- the sort orderurl
- the URL to link to- Throws:
IllegalArgumentException
- if id is zero or negative, or the URL is invalid
-
-
Method Details
-
getURL
-
getDescription
-
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
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
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 classDatabaseBean
-
equals
Tests for equality by comparing the URLs.- Overrides:
equals
in classDatabaseBean
-
toString
-