Method |
Description |
|
Applet ( ) : Applet |
|
|
AttachedItems ( ) : List |
|
|
DetachedItems ( ) : List |
|
|
Dispose ( ) : void |
|
|
Extender ( Plasma applet ) : System |
Creates an extender. Note that extender expects applet to have a config(), and needs a scene because of that. So you should only instantiate an extender in init() or later, not in an applet's constructor. The constructor also takes care of restoring ExtenderItems that were contained in this extender before, so ExtenderItems are persistent between sessions. Note that a call to extender() in an applet will instantiate an Extender for you if one isn't already associated with your applet. name="applet" The applet this extender is part of. Null is not allowed here. |
|
Group ( string name ) : ExtenderGroup |
Extra convenience function for obtaining groups specified by name. This will avoid needed to call item and casting to ExtenderGroup, which is otherwise quite common. |
|
Groups ( ) : List |
|
|
HasItem ( string name ) : bool |
This function can be used for easily determining if a certain item is already displayed in an extender item somewhere, so your applet doesn't duplicate this item. This is needed because ExtenderItems are persistent, so you can't blindly add new extender items in all cases. |
|
IsEmpty ( ) : bool |
|
|
Item ( string name ) : ExtenderItem |
This function can be used for obtaining the extender item specified by name. For checking whether or not an item already exists, you should use hasItem instead: while plasma is starting up, not all detached items might have been instantiated yet. hasItem returns true even if the requested item isn't instantiated yet. |
|
Items ( ) : List |
|
|
SetAppearance ( Plasma appearance ) : void |
Use this function to instruct the extender on how to render its items. Usually you will want to call this function in your applet's constraintsEvent, allthough this is already done for you when using PopupApplet as base class for your applet. Defaults to NoBorders. name="appearance" the way this extender should look. |
|
appearance ( ) : Plasma.Extender.Appearance |
|
|