@Retention(value=SOURCE) @Target(value={TYPE,PACKAGE}) public @interface PaletteItemRegistration
@PaletteItemRegistration(paletteid = "HTMLPalette", category = "HTML", itemid = "BR",
icon32 = "org/netbeans/modules/newsnippets1/BR32.png",
icon16 = "org/netbeans/modules/newsnippets1/BR16.png",
body = "<br>",
name = "New Line",
tooltip = "<br>")
ActiveEditorDrop
.@PaletteItemRegistration(
paletteid = "HTMLPalette",
category = "HTML",
itemid = "BR",
icon32 = "org/netbeans/modules/newsnippets1/BR32.png",
icon16 = "org/netbeans/modules/newsnippets1/BR16.png",
body = "<br>",
name = "New Line",
tooltip = "<br>")
public class MyPaletteItem implements org.openide.text.ActiveEditorDrop ...
Modifier and Type | Required Element and Description |
---|---|
String |
category
Category for palette item.
|
String |
icon16
Path to a 16x16 image file for palette item.
|
String |
icon32
Path to a 32x32 image file for palette item.
|
String |
itemid
Id for palette item.
|
String |
name
Display name for palette item.
|
String |
paletteid
Palette root name.
|
String |
tooltip
Tooltip text for palette item.
|
public abstract String paletteid
public abstract String category
public abstract String itemid
public abstract String icon16
public abstract String icon32
public abstract String name
public abstract String tooltip
public abstract String body