|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Gadget
The interface for the gadget in the Dashboard.
Method Summary | |
---|---|
GadgetComponent |
createGadgetComponent()
Creates the GadgetComponent . |
void |
disposeGadgetComponent(GadgetComponent component)
Disposes the GadgetComponent . |
String |
getDescription()
Returns the description of the Gadget . |
GadgetManager |
getGadgetManager()
Gadget must be added to a GadgetManager. |
Icon |
getIcon()
Gets the icon. |
String |
getKey()
Returns the key of the Gadget . |
Icon |
getLargeIcon()
Gets the large icon. |
String |
getName()
Returns the name of the Gadget . |
void |
setGadgetManager(GadgetManager manager)
Sets the GadgetManager. |
Method Detail |
---|
GadgetManager getGadgetManager()
void setGadgetManager(GadgetManager manager)
GadgetManager.addGadget(Gadget)
method.
manager
- the GadgetManager.String getKey()
Gadget
. The key is used to uniquely identify a Gadget in one GadgetManager.
The key is not displayed anywhere in the user interface so it is OK to be a non-localized string. The strings for
the name should be localized although if you never set the name, the key will be used as the name.
String
containing this Gadget's keyString getName()
Gadget
. The name is displayed on the title bar of the Gadget if any. If the
name
is never set, the key will be used.
String getDescription()
Gadget
. Description is used in the GadgetPalette
to give
user an idea of what the gadget is.
Icon getIcon()
Icon getLargeIcon()
GadgetPalette
to represent a gadget. You can specify
two icons for each gadget. This is the larger one of the two. We didn't specify the exact size of this icon. But
all gadgets' icon should have the same size to look good on the palette.
GadgetComponent createGadgetComponent()
GadgetComponent
. The Gadget
is just an interface. It doesn't need to be a
Component
. The actual component is created by this method. Please note, if you want to support
multiple instances of the same gadget on the dashboard, you need to create a new component every time when this
method is called.
void disposeGadgetComponent(GadgetComponent component)
GadgetComponent
. This method indicates the end of the life cycle of the
GadgetComponent
to give you a chance to free whatever resource is used by this
GadgetComponent
.
component
- the GadgetComponent
.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |