當前位置: 首頁>>代碼示例>>Java>>正文


Java TrelloList類代碼示例

本文整理匯總了Java中com.intellij.tasks.trello.model.TrelloList的典型用法代碼示例。如果您正苦於以下問題:Java TrelloList類的具體用法?Java TrelloList怎麽用?Java TrelloList使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


TrelloList類屬於com.intellij.tasks.trello.model包,在下文中一共展示了TrelloList類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getAvailableTaskStates

import com.intellij.tasks.trello.model.TrelloList; //導入依賴的package包/類
@NotNull
@Override
public Set<CustomTaskState> getAvailableTaskStates(@NotNull Task task) throws Exception {
  final TrelloCard card = fetchCardById(task.getId());
  if (card != null) {
    final List<TrelloList> lists = fetchBoardLists(card.getIdBoard());
    final Set<CustomTaskState> result = new HashSet<CustomTaskState>();
    for (TrelloList list : lists) {
      if (!list.getId().equals(card.getIdList())) {
        result.add(new CustomTaskState(list.getId(), list.getName()));
      }
    }
    return result;
  }
  return Collections.emptySet();
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:17,代碼來源:TrelloRepository.java

示例2: customize

import com.intellij.tasks.trello.model.TrelloList; //導入依賴的package包/類
@Override
public void customize(JList list, TrelloList trelloList, int index, boolean selected, boolean hasFocus) {
  if (trelloList == null) {
    setText(myNullDescription);
    return;
  }
  String text = trelloList.getName();
  if (trelloList.isClosed() && trelloList.isMoved()) {
    text += " (archived,moved)";
  }
  else if (trelloList.isMoved()) {
    text += " (moved)";
  }
  else if (trelloList.isClosed()) {
    text += " (archived)";
  }
  setText(text);
}
 
開發者ID:consulo,項目名稱:consulo-tasks,代碼行數:19,代碼來源:TrelloRepositoryEditor.java

示例3: fetchListById

import com.intellij.tasks.trello.model.TrelloList; //導入依賴的package包/類
@NotNull
public TrelloList fetchListById(@NotNull String id) throws Exception {
  final URIBuilder url = new URIBuilder(getRestApiUrl("lists", id))
    .addParameter("fields", TrelloList.REQUIRED_FIELDS);
  try {
    return ObjectUtils.assertNotNull(makeRequestAndDeserializeJsonResponse(url.build(), TrelloList.class));
  }
  catch (Exception e) {
    LOG.warn("Error while fetching initial list info" + id, e);
    throw e;
  }
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:13,代碼來源:TrelloRepository.java

示例4: fetchBoardLists

import com.intellij.tasks.trello.model.TrelloList; //導入依賴的package包/類
@NotNull
public List<TrelloList> fetchBoardLists() throws Exception {
  if (myCurrentBoard == null || myCurrentBoard == UNSPECIFIED_BOARD) {
    throw new IllegalStateException("Board not set");
  }
  return fetchBoardLists(myCurrentBoard.getId());
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:8,代碼來源:TrelloRepository.java

示例5: fetchListById

import com.intellij.tasks.trello.model.TrelloList; //導入依賴的package包/類
@Nullable
private TrelloList fetchListById(String id) {
  String url = "/lists/" + id;
  try {
    return makeRequestAndDeserializeJsonResponse(url, TrelloList.class);
  }
  catch (Exception e) {
    LOG.warn("Error while fetching initial list info with id = " + id, e);
  }
  return null;
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:12,代碼來源:TrelloRepository.java

示例6: fetchBoardLists

import com.intellij.tasks.trello.model.TrelloList; //導入依賴的package包/類
@NotNull
public List<TrelloList> fetchBoardLists() throws Exception {
  if (myCurrentBoard == null) {
    throw new IllegalStateException("Board not set");
  }
  String url = TrelloUtil.TRELLO_API_BASE_URL + "/boards/" + myCurrentBoard.getId() + "/lists";
  return makeRequestAndDeserializeJsonResponse(url, TrelloUtil.LIST_OF_LISTS_TYPE);
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:9,代碼來源:TrelloRepository.java

示例7: updateUI

import com.intellij.tasks.trello.model.TrelloList; //導入依賴的package包/類
@Override
protected void updateUI(List<TrelloList> lists) {
  myListComboBox.setModel(new DefaultComboBoxModel(lists.toArray()));
  myListComboBox.insertItemAt(UNSPECIFIED_LIST, 0);
  // explicitly add moved or archived list to combobox: see IDEA-111819 for details
  if (!(myList == null || myList == UNSPECIFIED_LIST) && !lists.contains(myList)) {
    myListComboBox.addItem(myList);
  }
  myListComboBox.setSelectedItem(myList == null ? UNSPECIFIED_LIST : myList);
}
 
開發者ID:consulo,項目名稱:consulo-tasks,代碼行數:11,代碼來源:TrelloRepositoryEditor.java

示例8: fetchListById

import com.intellij.tasks.trello.model.TrelloList; //導入依賴的package包/類
@NotNull
public TrelloList fetchListById(@NotNull String id) throws Exception
{
	final URIBuilder url = new URIBuilder(getRestApiUrl("lists", id)).addParameter("fields", TrelloList.REQUIRED_FIELDS);
	try
	{
		return makeRequestAndDeserializeJsonResponse(url.build(), TrelloList.class);
	}
	catch(Exception e)
	{
		LOG.warn("Error while fetching initial list info" + id, e);
		throw e;
	}
}
 
開發者ID:consulo,項目名稱:consulo-tasks,代碼行數:15,代碼來源:TrelloRepository.java

示例9: fetchBoardLists

import com.intellij.tasks.trello.model.TrelloList; //導入依賴的package包/類
@NotNull
public List<TrelloList> fetchBoardLists() throws Exception
{
	if(myCurrentBoard == null || myCurrentBoard == UNSPECIFIED_BOARD)
	{
		throw new IllegalStateException("Board not set");
	}
	final URIBuilder url = new URIBuilder(getRestApiUrl("boards", myCurrentBoard.getId(), "lists")).addParameter("fields",
			TrelloList.REQUIRED_FIELDS);
	return makeRequestAndDeserializeJsonResponse(url.build(), TrelloUtil.LIST_OF_LISTS_TYPE);
}
 
開發者ID:consulo,項目名稱:consulo-tasks,代碼行數:12,代碼來源:TrelloRepository.java

示例10: fetch

import com.intellij.tasks.trello.model.TrelloList; //導入依賴的package包/類
@NotNull
@Override
protected List<TrelloList> fetch(@NotNull ProgressIndicator indicator) throws Exception {
  return myRepository.fetchBoardLists();
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:6,代碼來源:TrelloRepositoryEditor.java

示例11: getExtraItem

import com.intellij.tasks.trello.model.TrelloList; //導入依賴的package包/類
@Nullable
@Override
public TrelloList getExtraItem() {
  return TrelloRepository.UNSPECIFIED_LIST;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:6,代碼來源:TrelloRepositoryEditor.java

示例12: getSelectedItem

import com.intellij.tasks.trello.model.TrelloList; //導入依賴的package包/類
@Nullable
@Override
public TrelloList getSelectedItem() {
  return myRepository.getCurrentList();
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:6,代碼來源:TrelloRepositoryEditor.java

示例13: getCurrentList

import com.intellij.tasks.trello.model.TrelloList; //導入依賴的package包/類
@Nullable
public TrelloList getCurrentList() {
  return myCurrentList;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:5,代碼來源:TrelloRepository.java

示例14: setCurrentList

import com.intellij.tasks.trello.model.TrelloList; //導入依賴的package包/類
public void setCurrentList(@Nullable TrelloList list) {
  myCurrentList = list != null && list.getId().equals(UNSPECIFIED_LIST.getId()) ? UNSPECIFIED_LIST : list;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:4,代碼來源:TrelloRepository.java

示例15: fillListsComboBox

import com.intellij.tasks.trello.model.TrelloList; //導入依賴的package包/類
private void fillListsComboBox(List<TrelloList> lists) {
  myListComboBox.setModel(new DefaultComboBoxModel(lists.toArray()));
  myListComboBox.insertItemAt(UNSPECIFIED_LIST, 0);
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:5,代碼來源:TrelloRepositoryEditor.java


注:本文中的com.intellij.tasks.trello.model.TrelloList類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。