The Palette Manager (also known as the class importer) uses the JavaBeans API to import information and place it on the palette.
Menu | Description |
File | Allows you to create a new palette and to close the Palette Manager. For more information, see Creating a Palette. |
Edit | Allows you to delete, copy, or rename a selected palette. For more information, see Modifying a Palette. |
The upper region of the Palette Manager provides an option menu containing a list of available palettes. To the left of this menu is the location of the palette currently shown in the option menu. System palettes are part of the Cosmo Code images. You cannot alter or delete a system palette, but you can copy it.
This area of the Palette Manager lists the available packages and classes in your $CLASSPATH. To see classes, expand the package by clicking on the diamond to the left of the package name.
The highlight and checkmark next to a package indicate that one or more of the package's classes are checked and included on the palette. You remove and add classes by checking the box to the left of the class, and then clicking Update.
If you are creating a new palette, you indicate which classes to import onto the palette by clicking the box to the left of the class. After clicking Update, the classes are imported and displayed on the palette in the palette area of the visual builder. For more information, see Creating a Palette.
In addition, Cosmo Code Visual Builder provides you the ability to define a $VB_PALETTE_PATH which extends the list of directories to search for palettes and icons.
If VB_PALETTE_PATH = "/var/weblogic/ccode-palettes" and either .palette or .xpm files are in this directory , then Visual Builder picks these up when it's launched. Additionally, the VB_PALETTE_PATH can contain a list of multiple directories by separating them with a colon.
Icons need to be 28x28 xpm files with a .xpm extension. They must have a name that associates them with the Java class that they represent. For example, if you have a class called java.awt.Button on your palette, then you need to name the pixmap file: java.awt.Button.xpm
Button | Description |
Update | Imports checked classes and removes unchecked classes in the specified palette, and saves these changes. |
Reset | Resets the palette items to their state immediately following the last Update. |
Close | Closes the Palette Manager. Equivalent to choosing File > Close. |
Guide to the Cosmo Code Development Environment
12-96*532