Package adams.core.base
Class BaseURL
- java.lang.Object
-
- adams.core.base.BaseObject
-
- adams.core.base.BaseURL
-
- All Implemented Interfaces:
CloneHandler<BaseObject>,Serializable,Comparable
public class BaseURL extends BaseObject
Wrapper for an URL object to be editable in the GOE.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_URLthe default URL.protected URLm_Currentthe current URL.-
Fields inherited from class adams.core.base.BaseObject
m_Internal, m_Properties, SUFFIX_DISPLAY, SUFFIX_VALUE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetTipText()Returns a tool tip for the GUI editor (ignored if null is returned).StringgetValue()Returns the current string value.booleanhasFavoritesSupport()Whether this object should have favorites support.protected voidinitialize()Initializes the internal object.booleanisValid(String value)Checks whether the string value is a valid presentation for this class.voidsetValue(String value)Sets the string value.URLurlValue()Returns the URL value.-
Methods inherited from class adams.core.base.BaseObject
compareTo, equals, getClone, getInternal, getTemplates, getUnicode, hashCode, isValidUnicode, newInstance, setUnicode, toObjectArray, toObjectArray, toString, toStringArray, toStringList
-
-
-
-
Field Detail
-
DEFAULT_URL
public static final String DEFAULT_URL
the default URL.- See Also:
- Constant Field Values
-
m_Current
protected URL m_Current
the current URL.
-
-
Constructor Detail
-
BaseURL
public BaseURL()
Initializes the string with DEFAULT_URL.- See Also:
DEFAULT_URL
-
BaseURL
public BaseURL(String s)
Initializes the object with the string to parse.- Parameters:
s- the string to parse
-
BaseURL
public BaseURL(URL value)
Initializes the object with the given value.- Parameters:
value- the value to use
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the internal object.- Overrides:
initializein classBaseObject
-
isValid
public boolean isValid(String value)
Checks whether the string value is a valid presentation for this class.- Specified by:
isValidin classBaseObject- Parameters:
value- the string value to check- Returns:
- true if valid URL
-
setValue
public void setValue(String value)
Sets the string value.- Specified by:
setValuein classBaseObject- Parameters:
value- the string value
-
getValue
public String getValue()
Returns the current string value.- Specified by:
getValuein classBaseObject- Returns:
- the string value
-
urlValue
public URL urlValue()
Returns the URL value.- Returns:
- the URL value
-
getTipText
public String getTipText()
Returns a tool tip for the GUI editor (ignored if null is returned).- Specified by:
getTipTextin classBaseObject- Returns:
- the tool tip
-
hasFavoritesSupport
public boolean hasFavoritesSupport()
Whether this object should have favorites support.- Overrides:
hasFavoritesSupportin classBaseObject- Returns:
- true if to support favorites
-
-