| org.netbeans.modules.url.URLDataObject
URLDataObject | public class URLDataObject extends MultiDataObject implements OpenCookie,InstanceCookie(Code) | | Data object that represents one bookmark, one .url file containing url.
author: Ian Formanek See Also: org.openide.Places.Folders.bookmarks |
Constructor Summary | |
public | URLDataObject(FileObject file, MultiFileLoader loader) Constructs a new URL data object. |
PROP_URL | final static String PROP_URL(Code) | | Name for url property.
|
serialVersionUID | final static long serialVersionUID(Code) | | Generated serial version UID.
|
URLDataObject | public URLDataObject(FileObject file, MultiFileLoader loader) throws DataObjectExistsException(Code) | | Constructs a new URL data object.
Parameters: file - file to create an object from Parameters: loader - DataLoader which recognized the fileand initiated calling this constructor |
getHelpCtx | public HelpCtx getHelpCtx()(Code) | | |
getLookup | public Lookup getLookup()(Code) | | |
getURLString | String getURLString()(Code) | | Gets a URL string from the underlying .url file.
The user is notified if an error occures during reading the file.
If there are multiple lines of text in the file, only the first one is
returned and no error is reported.
URL string stored in the file,an empty string if the file is empty,or null if an error occured while reading the file |
setURLString | void setURLString(String newUrlString)(Code) | | Stores a specified URL into the file backing up this URL object.
Parameters: newUrlString - URL to be stored in the file |
|
|