|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.help.TreeItem | +--javax.help.FavoritesItem
A class for individual favorites items.
Field Summary | |
static java.awt.datatransfer.DataFlavor |
FAVORITES_FLAVOR
|
Fields inherited from class javax.help.TreeItem |
COLLAPSE, DEFAULT_EXPANSION, EXPAND |
Constructor Summary | |
FavoritesItem()
Creates empty item |
|
FavoritesItem(java.lang.String name)
Creates item with name |
|
FavoritesItem(java.lang.String name,
java.lang.String target,
java.lang.String url,
java.lang.String title,
java.util.Locale locale)
Creates FavoritesItem. |
Method Summary | |
void |
add(FavoritesItem item)
Adds FavoritesItem as a child. |
boolean |
allowsChildren()
Returns wheter item allows children or not |
java.lang.Object |
clone()
|
boolean |
emptyInitState()
Returns true if item was initialized as empty |
java.util.Vector |
getChildren()
Returns children of this FavoritesItem. |
java.lang.String |
getHelpSetTitle()
Returns the title of HelpSet |
FavoritesItem |
getParent()
Returns parent of FavoritesItem. |
java.lang.String |
getTarget()
Returns the id for this item. |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor df)
Returns an object which represents the data to be transferred. |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
Returns an array of DataFlavor objects indicating the flavors the data can be provided in. |
java.net.URL |
getURL()
Return the URL for this item |
java.lang.String |
getURLSpec()
Returns the external representation of url for this item. |
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor df)
Returns whether or not the specified data flavor is supported for this object. |
boolean |
isFolder()
Returns whether or not this item is folder. |
boolean |
isLeaf()
Returns whether or not this item is leaf |
boolean |
isVisible()
|
void |
remove(FavoritesItem item)
Removes FavoritesItem from vector of children. |
void |
setAsFolder()
Sets this item as folder. |
void |
setParent(FavoritesItem parent)
Sets the parent of this item. |
void |
setVisible(boolean visible)
|
java.lang.String |
toString()
Returns a String used when displaying the object. |
Methods inherited from class javax.help.TreeItem |
getExpansionType, getHelpSet, getID, getLocale, getMergeType, getName, getPresentation, getPresentationName, setExpansionType, setHelpSet, setID, setMergeType, setName, setPresentation, setPresentationName |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.awt.datatransfer.DataFlavor FAVORITES_FLAVOR
Constructor Detail |
public FavoritesItem(java.lang.String name)
name
- The name of itempublic FavoritesItem()
public FavoritesItem(java.lang.String name, java.lang.String target, java.lang.String url, java.lang.String title, java.util.Locale locale)
name
- The name of itemtarget
- The target of itemurl
- The external representation of urltitle
- The title of the HelpSetlocale
- The Locale of this itemMethod Detail |
public void setVisible(boolean visible)
public boolean isVisible()
public java.lang.String getTarget()
public java.lang.String getURLSpec()
public java.net.URL getURL()
getURL
in class TreeItem
public java.lang.String getHelpSetTitle()
public void setAsFolder()
public boolean allowsChildren()
public boolean isLeaf()
public boolean isFolder()
public void add(FavoritesItem item)
item
- The FavoritesItem.public boolean emptyInitState()
public void remove(FavoritesItem item)
item
- The FavoritesItem to remove.public FavoritesItem getParent()
public void setParent(FavoritesItem parent)
parent
- The FavoritesItem.public java.util.Vector getChildren()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
TreeItem
toString
in class TreeItem
TOCCellRenderer
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
getTransferData
in interface java.awt.datatransfer.Transferable
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor df)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |