@Dependent public class TaskCommentsPresenter extends AbstractTaskPresenter
Modifier and Type | Class and Description |
---|---|
static interface |
TaskCommentsPresenter.CommentAction |
static interface |
TaskCommentsPresenter.TaskCommentsView |
Modifier and Type | Field and Description |
---|---|
static int |
COMMENTS_PAGE_SIZE |
protected Constants |
constants |
protected int |
currentPage |
protected boolean |
forAdmin |
protected boolean |
forLog |
protected org.jboss.errai.security.shared.api.identity.User |
identity |
protected int |
pageSize |
protected boolean |
sortAsc |
protected org.jboss.errai.common.client.api.Caller<TaskService> |
taskService |
TaskCommentsPresenter.TaskCommentsView |
view |
static int |
WORK_COMMENTS_PAGE_SIZE |
Constructor and Description |
---|
TaskCommentsPresenter() |
Modifier and Type | Method and Description |
---|---|
void |
addTaskComment(String text) |
int |
getCurrentPage() |
Predicate<CommentSummary> |
getDeleteCondition() |
int |
getPageSize() |
TaskCommentsPresenter.TaskCommentsView |
getTaskCommentView() |
com.google.gwt.user.client.ui.IsWidget |
getView() |
void |
init() |
boolean |
isSortAsc() |
void |
loadMoreTaskComments() |
void |
onTaskCompletedEvent(TaskCompletedEvent event) |
void |
onTaskRefreshedEvent(TaskRefreshedEvent event) |
void |
onTaskSelectionEvent(TaskSelectionEvent event) |
void |
refreshCommentsView() |
void |
removeTaskComment(long commentId) |
void |
setCurrentPage(int currentPage) |
void |
setIdentity(org.jboss.errai.security.shared.api.identity.User identity) |
void |
setPageSize(int pageSize) |
void |
setSortAsc(boolean sortAsc) |
void |
setTaskService(org.jboss.errai.common.client.api.Caller<TaskService> taskService) |
void |
showCommentsHeader() |
void |
sortComments(boolean sortAsc) |
displayNotification, getContainerId, getServerTemplateId, getTaskId, isSameTaskFromEvent, setNotification, setSelectedTask
public static final int COMMENTS_PAGE_SIZE
public static final int WORK_COMMENTS_PAGE_SIZE
protected org.jboss.errai.common.client.api.Caller<TaskService> taskService
protected Constants constants
protected org.jboss.errai.security.shared.api.identity.User identity
protected boolean forLog
protected boolean forAdmin
protected boolean sortAsc
protected int currentPage
protected int pageSize
public TaskCommentsPresenter.TaskCommentsView view
@PostConstruct public void init()
public com.google.gwt.user.client.ui.IsWidget getView()
public void setPageSize(int pageSize)
public void showCommentsHeader()
public int getPageSize()
public void setCurrentPage(int currentPage)
public int getCurrentPage()
public boolean isSortAsc()
public void setSortAsc(boolean sortAsc)
public void refreshCommentsView()
public void loadMoreTaskComments()
public void sortComments(boolean sortAsc)
public void addTaskComment(String text)
public void removeTaskComment(long commentId)
public void onTaskSelectionEvent(@Observes TaskSelectionEvent event)
public Predicate<CommentSummary> getDeleteCondition()
public void onTaskRefreshedEvent(@Observes TaskRefreshedEvent event)
public void onTaskCompletedEvent(@Observes TaskCompletedEvent event)
@Inject public void setTaskService(org.jboss.errai.common.client.api.Caller<TaskService> taskService)
@Inject public void setIdentity(org.jboss.errai.security.shared.api.identity.User identity)
public TaskCommentsPresenter.TaskCommentsView getTaskCommentView()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.