Package com.scriptographer.adm

Examples of com.scriptographer.adm.ListEntry


    break;
    case MENU_ENTRY:
    case MENU_SEPARATOR: {
      PopupMenu menu = dialog.getPopupMenu();
      if (menu != null) {
        entry = new ListEntry(menu) {
          protected void onSelect() {
            AdmComponentProxy.this.onSelect();
          }
        };
        if (type == ComponentType.MENU_SEPARATOR)
View Full Code Here


      }
      return value;
    case BOOLEAN:
      return ((ToggleItem) item).isChecked();
    case LIST:
      ListEntry selected = ((PopupList) item).getSelectedEntry();
      if (selected != null)
        return component.getOption(selected.getIndex());
      break;
    case COLOR:
      return ((ColorButton) item).getColor();
    case FONT:
      return ((FontPopupList) item).getFontWeight();
View Full Code Here

      int index = selectedIndex != null ? selectedIndex : 0;
      for (int i = 0; i < options.length; i++) {
        Object option = options[i];
        if (option.equals(current))
          index = i;
        ListEntry entry = null;
        if (option instanceof ListEntry) {
          entry = (ListEntry) option;
          entry = list.add(entry);
        } else {
          entry = new ListEntry(list);
          // Simplify names for art items
          String name = option instanceof com.scriptographer.ai.Item
              ? ((com.scriptographer.ai.Item) option).getName()
              : null;
          entry.setText(name != null ? name : option.toString());
        }
      }
      if (index < 0)
        index = 0;
      else if (index >= options.length)
View Full Code Here

TOP

Related Classes of com.scriptographer.adm.ListEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.