Show
Ignore:
Timestamp:
05/04/08 18:42:55 (4 years ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

reverted char[] to String

Files:

Legend:

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

    r108 r238  
    1212 *******************************************************************************/ 
    1313module dwt.custom.PopupList; 
     14 
     15import dwt.dwthelper.utils; 
    1416 
    1517 
     
    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}