Show
Ignore:
Timestamp:
05/04/08 18:12:38 (7 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

reverted the char[] to String and use the an alias.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/custom/PopupList.d

    r155 r212  
    1 /******************************************************************************* 
     1/******************************************************************************* 
    22 * Copyright (c) 2000, 2007 IBM Corporation and others. 
    33 * All rights reserved. This program and the accompanying materials 
     
    3030import dwt.widgets.Listener; 
    3131import dwt.widgets.Shell; 
     32import dwt.dwthelper.utils; 
     33 
    3234/** 
    3335* A PopupList is a list of selectable items that appears in its own shell positioned above 
     
    128130*   </ul> 
    129131*/ 
    130 public char[][] getItems () { 
     132public String[] getItems () { 
    131133    return list.getItems(); 
    132134} 
     
    147149* @return the text of the selected item or null if no item is selected 
    148150*/ 
    149 public char[] open (Rectangle rect) { 
     151public String open (Rectangle rect) { 
    150152 
    151153    Point listSize = list.computeSize (rect.width, DWT.DEFAULT, false); 
     
    195197    } 
    196198 
    197     char[] result = null; 
     199    String result = null; 
    198200    if (!shell.isDisposed ()) { 
    199         char[] [] strings = list.getSelection (); 
     201        String [] strings = list.getSelection (); 
    200202        shell.dispose(); 
    201203        if (strings.length !is 0) result = strings [0]; 
     
    204206} 
    205207/** 
    206 * Selects an item with text that starts with specified char[]
     208* Selects an item with text that starts with specified String
    207209* <p> 
    208210* If the item is not currently selected, it is selected. 
     
    217219*   </ul> 
    218220*/ 
    219 public void select(char[] string) { 
    220     char[][] items = list.getItems(); 
     221public void select(String string) { 
     222    String[] items = list.getItems(); 
    221223 
    222224    // find the first entry in the list that starts with the 
     
    270272*   </ul> 
    271273*/ 
    272 public void setItems (char[][] strings) { 
     274public void setItems (String[] strings) { 
    273275    list.setItems(strings); 
    274276}