• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.android.preload.ui;
2 
3 import com.android.ddmlib.Client;
4 import java.io.File;
5 import java.util.List;
6 import javax.swing.Action;
7 import javax.swing.ListModel;
8 import javax.swing.table.TableModel;
9 
10 /**
11  * UI abstraction for the tool. This allows a graphical mode, command line mode,
12  * or silent mode.
13  */
14 public interface IUI {
15 
prepare(ListModel<Client> clientListModel, TableModel dataTableModel, List<Action> actions)16     void prepare(ListModel<Client> clientListModel, TableModel dataTableModel,
17             List<Action> actions);
18 
ready()19     void ready();
20 
isSingleThreaded()21     boolean isSingleThreaded();
22 
getSelectedClient()23     Client getSelectedClient();
24 
getSelectedDataTableRow()25     int getSelectedDataTableRow();
26 
showWaitDialog()27     void showWaitDialog();
28 
updateWaitDialog(String s)29     void updateWaitDialog(String s);
30 
hideWaitDialog()31     void hideWaitDialog();
32 
showMessageDialog(String s)33     void showMessageDialog(String s);
34 
showConfirmDialog(String title, String message)35     boolean showConfirmDialog(String title, String message);
36 
showInputDialog(String message)37     String showInputDialog(String message);
38 
showChoiceDialog(String title, String message, T[] choices)39     <T> T showChoiceDialog(String title, String message, T[] choices);
40 
showSaveDialog()41     File showSaveDialog();
42 
showOpenDialog(boolean multi)43     File[] showOpenDialog(boolean multi);
44 
45 }
46