Lines Matching refs:items

66      * Array of items.
68 private ArrayList<XMenuItemPeer> items;
71 * Index of selected item in array of items
84 * 1. Access to items vector
128 * items in order that they appear on screen and may contain
138 private XMenuItemPeer[] items;
142 * of menu items
144 MappingData(XMenuItemPeer[] items) {
145 this.items = items;
149 * Constructs MappingData without items
153 this.items = new XMenuItemPeer[0];
165 return this.items;
191 * Performs mapping of items in window.
194 * and sets mapping coordinates of items
214 * of items was changed. It can be called from any thread
230 items = new ArrayList();
267 * Utility functions for manipulating items
278 if (items.size() > index) {
279 return items.get(index);
287 * Thread-safely creates a copy of the items vector
291 return (XMenuItemPeer[])items.toArray(new XMenuItemPeer[] {});
302 if (items.size() > selectedIndex) {
303 return items.get(selectedIndex);
320 * Adds item to end of items vector.
322 * check for adding duplicate items
330 items.add(mp);
341 * Removes item at the specified index from items vector.
351 if (index < items.size()) {
352 items.remove(index);
355 log.fine("WARNING: Attempt to remove non-existing menu item, index : " + index + ", item count : " + items.size());
363 * Clears items vector and loads specified vector
364 * @param items vector to be loaded
366 public void reloadItems(Vector items) {
368 this.items.clear();
369 MenuItem[] itemArray = (MenuItem[])items.toArray(new MenuItem[] {});
387 int newSelectedIndex = (item != null) ? items.indexOf(item) : -1;
452 XMenuItemPeer[] items = copyItems();
453 int itemCnt = items.length;
455 items[i].setFont(font);
461 * Utility functions for manipulating mapped items
466 * Returns array of mapped items, null if error
487 XMenuItemPeer[] items = getMappingData().getItems();
488 int cnt = items.length;
490 if (items[i].getBounds().contains(pt)) {
491 return items[i];
500 * (no separators and no disabled items).
1091 //Mouse is released outside menu items