Lines Matching refs:model

18      * @param model The {@link TabModel} to act on.
22 public static boolean closeTabByIndex(TabModel model, int index) {
23 Tab tab = model.getTabAt(index);
26 return model.closeTab(tab);
30 * @param model The {@link TabModel} to act on.
34 public static boolean closeTabById(TabModel model, int tabId) {
35 return closeTabById(model, tabId, false);
39 * @param model The {@link TabModel} to act on.
44 public static boolean closeTabById(TabModel model, int tabId, boolean canUndo) {
45 Tab tab = TabModelUtils.getTabById(model, tabId);
48 return model.closeTab(tab, true, false, canUndo);
52 * @param model The {@link TabModel} to act on.
55 public static boolean closeCurrentTab(TabModel model) {
56 Tab tab = TabModelUtils.getCurrentTab(model);
59 return model.closeTab(tab);
64 * @param model The {@link TabModel} to act on.
69 public static int getTabIndexById(TabList model, int tabId) {
70 int count = model.getCount();
73 Tab tab = model.getTabAt(i);
82 * @param model The {@link TabModel} to act on.
86 public static Tab getTabById(TabList model, int tabId) {
87 int index = getTabIndexById(model, tabId);
89 return model.getTabAt(index);
94 * @param model The {@link TabModel} to act on.
98 public static int getTabIndexByUrl(TabList model, String url) {
99 int count = model.getCount();
102 if (model.getTabAt(i).getUrl().contentEquals(url)) return i;
110 * @param model The {@link TabModel} to act on.
113 public static int getCurrentTabId(TabList model) {
114 Tab tab = getCurrentTab(model);
122 * @param model The {@link TabModel} to act on.
125 public static Tab getCurrentTab(TabList model) {
126 int index = model.index();
129 return model.getTabAt(index);
133 * @param model The {@link TabModel} to act on.
137 public static ContentViewCore getCurrentContentViewCore(TabList model) {
138 Tab tab = getCurrentTab(model);
147 * @param model The {@link TabModel} to act on.
150 public static void setIndex(TabModel model, int index) {
151 model.setIndex(index, TabSelectionType.FROM_USER);