|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.kde.qt.QListBoxItem
org.kde.qt.QListBoxPixmap
org.kde.koala.KURLBarItem
public class KURLBarItem
An item to be used in KURLBar / KURLBarListBox. All the properties (url, icon, description, tooltip) can be changed dynamically.
KURLBar,
KURLBarListBox| Constructor Summary | |
|---|---|
protected |
KURLBarItem(java.lang.Class dummy)
|
|
KURLBarItem(KURLBar parent,
KURL url)
|
|
KURLBarItem(KURLBar parent,
KURL url,
boolean persistent)
|
|
KURLBarItem(KURLBar parent,
KURL url,
boolean persistent,
java.lang.String description)
|
|
KURLBarItem(KURLBar parent,
KURL url,
boolean persistent,
java.lang.String description,
java.lang.String icon)
|
|
KURLBarItem(KURLBar parent,
KURL url,
boolean persistent,
java.lang.String description,
java.lang.String icon,
int group)
Creates a KURLBarItem to be used in the parent KURLBar. |
|
KURLBarItem(KURLBar parent,
KURL url,
java.lang.String description)
|
|
KURLBarItem(KURLBar parent,
KURL url,
java.lang.String description,
java.lang.String icon)
|
|
KURLBarItem(KURLBar parent,
KURL url,
java.lang.String description,
java.lang.String icon,
int group)
Creates a persistent KURLBarItem to be used in the parent KURLBar. |
| Method Summary | |
|---|---|
boolean |
applicationLocal()
returns whether this is a global item or a local one. |
java.lang.String |
description()
returns the description of this item. |
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
protected void |
finalize()
Deletes the wrapped C++ instance |
int |
height(org.kde.qt.QListBox arg1)
returns the height of this item. |
java.lang.String |
icon()
returns the icon of this item. |
int |
iconGroup()
returns the icon-group of this item (determines icon-effects). |
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
boolean |
isPersistent()
returns whether this item is persistent (via KURLBar.writeConfig() and KURLBar.readConfig()) or not. |
protected void |
paint(org.kde.qt.QPainter p)
|
org.kde.qt.QPixmap |
pixmap()
returns the pixmap of this item. |
void |
setApplicationLocal(boolean local)
Makes this item a local or global one. |
void |
setDescription(java.lang.String desc)
Sets the description of this item that will be shown as item-text. |
void |
setIcon(java.lang.String icon)
|
void |
setIcon(java.lang.String icon,
int group)
sets the icon for this item. |
void |
setToolTip(java.lang.String tip)
Sets a tooltip to be used for this item. |
void |
setURL(KURL url)
Sets url for this item. |
org.kde.qt.QSize |
sizeHint()
returns the preferred size of this item |
java.lang.String |
toolTip()
returns the tooltip of this item. |
KURL |
url()
returns the url of this item. |
int |
width(org.kde.qt.QListBox arg1)
returns the width of this item. |
| Methods inherited from class org.kde.qt.QListBoxPixmap |
|---|
rtti |
| Methods inherited from class org.kde.qt.QListBoxItem |
|---|
current, isCurrent, isSelectable, isSelected, listBox, next, prev, selected, setSelectable, text |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected KURLBarItem(java.lang.Class dummy)
public KURLBarItem(KURLBar parent,
KURL url,
boolean persistent,
java.lang.String description,
java.lang.String icon,
int group)
parent KURLBar. You need
to insert the item into the listbox manually, if you don't use
KURLBar.insertItem().
If description is empty, it will try to use the filename/directory
of url, which will be shown as text of the item.
url will be used as tooltip, unless you set a different tip with
setToolTip().
persistent specifies whether this item is a persistent item or a
dynamic item, that is not saved with KURLBar.writeConfig().
public KURLBarItem(KURLBar parent,
KURL url,
boolean persistent,
java.lang.String description,
java.lang.String icon)
public KURLBarItem(KURLBar parent,
KURL url,
boolean persistent,
java.lang.String description)
public KURLBarItem(KURLBar parent,
KURL url,
boolean persistent)
public KURLBarItem(KURLBar parent,
KURL url,
java.lang.String description,
java.lang.String icon,
int group)
parent KURLBar. You need
to insert the item into the listbox manually, if you don't use
KURLBar.insertItem().
If description is empty, it will try to use the filename/directory
of url, which will be shown as text of the item.
url will be used as tooltip, unless you set a different tip with
setToolTip().
persistent specifies whether this item is a persistent item or a
dynamic item, that is not saved with KURLBar.writeConfig().
public KURLBarItem(KURLBar parent,
KURL url,
java.lang.String description,
java.lang.String icon)
public KURLBarItem(KURLBar parent,
KURL url,
java.lang.String description)
public KURLBarItem(KURLBar parent,
KURL url)
| Method Detail |
|---|
public void setURL(KURL url)
url for this item. Also updates the visible text to the
filename/directory of the url, if no description is set.
url()
public void setIcon(java.lang.String icon,
int group)
sets the icon for this item. See KIconLoader for a description
of the icon groups.
icon()public void setIcon(java.lang.String icon)
public void setDescription(java.lang.String desc)
description()public void setToolTip(java.lang.String tip)
toolTip()public org.kde.qt.QSize sizeHint()
public int width(org.kde.qt.QListBox arg1)
width in class org.kde.qt.QListBoxPixmappublic int height(org.kde.qt.QListBox arg1)
height in class org.kde.qt.QListBoxPixmappublic KURL url()
setURL(org.kde.koala.KURL)public java.lang.String description()
setDescription(java.lang.String)public java.lang.String icon()
setIcon(java.lang.String, int)public java.lang.String toolTip()
setToolTip(java.lang.String)public int iconGroup()
setIcon(java.lang.String, int)public org.kde.qt.QPixmap pixmap()
pixmap in class org.kde.qt.QListBoxPixmappublic void setApplicationLocal(boolean local)
isPersistent(),
applicationLocal()public boolean applicationLocal()
setApplicationLocal(boolean)public boolean isPersistent()
protected void paint(org.kde.qt.QPainter p)
paint in class org.kde.qt.QListBoxPixmap
protected void finalize()
throws java.lang.InternalError
finalize in class org.kde.qt.QListBoxPixmapjava.lang.InternalErrorpublic void dispose()
dispose in class org.kde.qt.QListBoxPixmappublic boolean isDisposed()
isDisposed in class org.kde.qt.QListBoxPixmap
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||