org.kde.koala

Class KURLBarItem

public class KURLBarItem extends QListBoxPixmap

An item to be used in KURLBar / KURLBarListBox. All the properties (url, icon, description, tooltip) can be changed dynamically.

Author: Carsten Pfeiffer

See Also: KURLBar KURLBarListBox

UNKNOWN: An item to be used in KURLBar / KURLBarListBox.

Constructor Summary
protected KURLBarItem(Class dummy)
KURLBarItem(KURLBar parent, KURL url, boolean persistent, String description, String icon, int group)
Creates a KURLBarItem to be used in the parent KURLBar.
KURLBarItem(KURLBar parent, KURL url, boolean persistent, String description, String icon)
KURLBarItem(KURLBar parent, KURL url, boolean persistent, String description)
KURLBarItem(KURLBar parent, KURL url, boolean persistent)
KURLBarItem(KURLBar parent, KURL url, String description, String icon, int group)
Creates a persistent KURLBarItem to be used in the parent KURLBar.
KURLBarItem(KURLBar parent, KURL url, String description, String icon)
KURLBarItem(KURLBar parent, KURL url, String description)
KURLBarItem(KURLBar parent, KURL url)
Method Summary
booleanapplicationLocal()
returns whether this is a global item or a local one.
Stringdescription()
returns the description of this item.
voiddispose()
Delete the wrapped C++ instance ahead of finalize()
protected voidfinalize()
Deletes the wrapped C++ instance
intheight(QListBox arg1)
returns the height of this item.
Stringicon()
returns the icon of this item.
inticonGroup()
returns the icon-group of this item (determines icon-effects).
booleanisDisposed()
Has the wrapped C++ instance been deleted?
booleanisPersistent()
returns whether this item is persistent (via KURLBar.writeConfig() and KURLBar.readConfig()) or not.
protected voidpaint(QPainter p)
QPixmappixmap()
returns the pixmap of this item.
voidsetApplicationLocal(boolean local)
Makes this item a local or global one.
voidsetDescription(String desc)
Sets the description of this item that will be shown as item-text.
voidsetIcon(String icon, int group)
sets the icon for this item.
voidsetIcon(String icon)
voidsetToolTip(String tip)
Sets a tooltip to be used for this item.
voidsetURL(KURL url)
Sets url for this item.
QSizesizeHint()
returns the preferred size of this item
StringtoolTip()
returns the tooltip of this item.
KURLurl()
returns the url of this item.
intwidth(QListBox arg1)
returns the width of this item.

Constructor Detail

KURLBarItem

protected KURLBarItem(Class dummy)

KURLBarItem

public KURLBarItem(KURLBar parent, KURL url, boolean persistent, String description, String icon, int group)
Creates a KURLBarItem to be used in the 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().

UNKNOWN: Creates a KURLBarItem to be used in the parent KURLBar.

KURLBarItem

public KURLBarItem(KURLBar parent, KURL url, boolean persistent, String description, String icon)

KURLBarItem

public KURLBarItem(KURLBar parent, KURL url, boolean persistent, String description)

KURLBarItem

public KURLBarItem(KURLBar parent, KURL url, boolean persistent)

KURLBarItem

public KURLBarItem(KURLBar parent, KURL url, String description, String icon, int group)
Creates a persistent KURLBarItem to be used in the 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().

UNKNOWN: Creates a persistent KURLBarItem to be used in the parent KURLBar.

KURLBarItem

public KURLBarItem(KURLBar parent, KURL url, String description, String icon)

KURLBarItem

public KURLBarItem(KURLBar parent, KURL url, String description)

KURLBarItem

public KURLBarItem(KURLBar parent, KURL url)

Method Detail

applicationLocal

public boolean applicationLocal()
returns whether this is a global item or a local one. KURLBar can differentiate between global and local items (only for the current application) for easy extensiblity.

See Also: KURLBarItem

UNKNOWN: returns whether this is a global item or a local one.

description

public String description()
returns the description of this item.

See Also: KURLBarItem

UNKNOWN: returns the description of this item.

dispose

public void dispose()
Delete the wrapped C++ instance ahead of finalize()

finalize

protected void finalize()
Deletes the wrapped C++ instance

height

public int height(QListBox arg1)
returns the height of this item.

UNKNOWN: returns the height of this item.

icon

public String icon()
returns the icon of this item.

See Also: KURLBarItem

UNKNOWN: returns the icon of this item.

iconGroup

public int iconGroup()
returns the icon-group of this item (determines icon-effects).

See Also: KURLBarItem

UNKNOWN: returns the icon-group of this item (determines icon-effects).

isDisposed

public boolean isDisposed()
Has the wrapped C++ instance been deleted?

isPersistent

public boolean isPersistent()
returns whether this item is persistent (via KURLBar.writeConfig() and KURLBar.readConfig()) or not.

UNKNOWN: returns whether this item is persistent (via KURLBar.writeConfig() and KURLBar.readConfig()) or not.

paint

protected void paint(QPainter p)

pixmap

public QPixmap pixmap()
returns the pixmap of this item.

UNKNOWN: returns the pixmap of this item.

setApplicationLocal

public void setApplicationLocal(boolean local)
Makes this item a local or global one. This has only an effect on persistent items of course.

See Also: KURLBarItem KURLBarItem

UNKNOWN: Makes this item a local or global one.

setDescription

public void setDescription(String desc)
Sets the description of this item that will be shown as item-text.

See Also: KURLBarItem

UNKNOWN: Sets the description of this item that will be shown as item-text.

setIcon

public void setIcon(String icon, int group)
sets the icon for this item. See KIconLoader for a description of the icon groups.

See Also: KURLBarItem

UNKNOWN: sets the icon for this item.

setIcon

public void setIcon(String icon)

setToolTip

public void setToolTip(String tip)
Sets a tooltip to be used for this item.

See Also: KURLBarItem

UNKNOWN: Sets a tooltip to be used for this item.

setURL

public void setURL(KURL url)
Sets url for this item. Also updates the visible text to the filename/directory of the url, if no description is set.

See Also: KURLBarItem

UNKNOWN: Sets url for this item.

sizeHint

public QSize sizeHint()
returns the preferred size of this item

UNKNOWN: returns the preferred size of this item

toolTip

public String toolTip()
returns the tooltip of this item.

See Also: KURLBarItem

UNKNOWN: returns the tooltip of this item.

url

public KURL url()
returns the url of this item.

See Also: KURLBarItem

UNKNOWN: returns the url of this item.

width

public int width(QListBox arg1)
returns the width of this item.

UNKNOWN: returns the width of this item.