|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.bookmark.Bookmark
public class Bookmark
Represents a bookmark.
Bookmarks are simple name/location pairs:
getLocation() to deal with it appropriately.
| Constructor Summary | |
|---|---|
Bookmark(java.lang.String name,
java.lang.String location)
Creates a new Bookmark using the given name and location. |
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Returns a clone of this bookmark. |
boolean |
equals(java.lang.Object object)
|
java.lang.String |
getLocation()
Returns this bookmark's location which should normally designate a path or file URL, but which isn't necessarily valid nor exists. |
java.lang.String |
getName()
Returns this bookmark's name. |
void |
setLocation(java.lang.String newLocation)
Changes this bookmark's location to the given one and fires an event to registered BookmarkListener
instances. |
void |
setName(java.lang.String newName)
Changes this bookmark's name to the given one and fires an event to registered BookmarkListener
instances. |
java.lang.String |
toString()
Returns the bookmark's name. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Bookmark(java.lang.String name,
java.lang.String location)
name - name given to this bookmarklocation - location (path or URL) this bookmark points to| Method Detail |
|---|
public java.lang.String getName()
setName(String)public void setName(java.lang.String newName)
BookmarkListener
instances.
newName - bookmark's new name.getName()public java.lang.String getLocation()
setLocation(String)public void setLocation(java.lang.String newLocation)
BookmarkListener
instances.
newLocation - bookmark's new location.getLocation()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard