|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GadgetComponent
GadgetComponent
is the Component
that is added to the Dashboard
. The
Gadget
is responsible for the creation of GadgetComponent
.
GadgetComponent
is an interface. So you implement your own GadgetComponent
. However it must
be a Component
such as JPanel, JComponent or any other Swing or AWT components. Failed to do so will
result in ClassCastException in the code.
Method Summary | |
---|---|
Gadget |
getGadget()
Gets the Gadget that creates this GadgetComponent . |
Map<String,String> |
getSettings()
Gets the settings. |
void |
setSettings(Map<String,String> settings)
Sets the setting. |
Method Detail |
---|
Gadget getGadget()
Gadget
that creates this GadgetComponent
.
Gadget
.Map<String,String> getSettings()
void setSettings(Map<String,String> settings)
settings
- a map of the settings. The key is the name of the setting and the value of the map is the value
of the setting. The value is a string in order to be persisted in the xml format. If your
original data format is not string, you need to convert from string to the type you expect first.
You could leverage ObjectConverterManager and ObjectConverter to do it.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |