예제 #1
0
 public String[] getNoteNameEx() {
   Vector<String> vec = new Vector<String>();
   for (int i = 0; i < _lstFile.getElementCount(); i++) {
     ListElement le = (ListElement) _lstFile.getElement(i);
     if (le.isSelected()) vec.add(le.getName());
   }
   return PublicUtils.vectorToString(vec);
 }
예제 #2
0
  public void setNoteName(String noteName) {
    int idx = 0;
    int i = 0;
    for (int c = _lstFile.getElementCount() - 1; i < c; i++) {
      ListElement le = (ListElement) _lstFile.getElement(i);
      if (StringUtil.equalsIgnoreCase(le.getName(), noteName)) idx = i;
    }

    _lstFile.setSelectedIndex(idx);
    super.btnOk.setEnabled(idx != -1);
  }
예제 #3
0
 public String getNoteName() {
   ListElement le = (ListElement) _lstFile.getSelectedValue();
   if (le != null) return le.getName();
   else return null;
 }