Table of Contents Previous Section
Palettes
A palette is a collection of resources (such as images, static or dynamic HTML elements, and components). You can drag elements from a palette to a component to use them. You can also drag elements from a component to a palette to store them.
To add an existing palette to the palette window:
- Choose Palettes Open Palette.
- Navigate to the palette's location and click Open.
- Select the palette in the palette window.
- Choose Palettes Close Palette.
Creating and Using Palette Items
To add an item from a component to a palette:
- Make the palette editable.
- In the component window, select the element or elements that you want to add to the palette.
- Hold down the Alt key and drag the selection to the palette.
If the palette's background is gray, you can't make any changes to it. To enable editing, choose Palettes Make Editable. The palette's background changes to white and its title is appended with "Alt-drag to insert item."
The cursor changes to and displays in the palette when you are done dragging. You can change the title of the item by selecting its name and typing. To change the item's icon, see "Changing a Palette Icon".
- Make the palette editable.
- Locate the item in the file system.
- Drag the item onto the palette.
For example, to add a component to a palette, you would drag its .wo folder to the palette.
To copy an item from a palette to the component window:
- Make sure the palette is not editable (if its background is white, choose Palettes Make Uneditable).
- Drag the item from the palette to the location in the component window where you want it to appear.
Note: If the palette is editable, you can drag the item to the window, but it will disappear from the palette.
Changing a Palette Icon
You can replace the icon of any palette, or any item in a palette, with an image of your own choosing. To do so:
- Open the palette window and select the palette whose icon you want to change.
- Make the palette editable.
- Drag an image from the file system onto the palette's icon.
- Save the palette.
You can use any image file recognized by WebObjects Builder (such as a .gif, .tif or .jpg file) to change the icon of a palette or of any item in the palette.