public class DefaultAttachmentsBlock extends Object implements AttachmentsBlock
AttachmentsBlock.AttachmentBlockSetting, AttachmentsBlock.Sort, AttachmentsBlock.ViewMode
Constructor and Description |
---|
DefaultAttachmentsBlock(net.sourceforge.jwebunit.WebTester tester,
com.atlassian.jira.testkit.client.log.FuncTestLogger logger,
FileAttachmentsList fileAttachmentsList,
ImageAttachmentsGallery imageAttachmentsGallery,
AttachmentManagement attachmentManagement) |
Modifier and Type | Method and Description |
---|---|
ImageAttachmentsGallery |
gallery() |
AttachmentsBlock.ViewMode |
getViewMode() |
FileAttachmentsList |
list() |
AttachmentManagement |
manage()
Navigates to the Manage Attachments page.
|
void |
setViewMode(AttachmentsBlock.ViewMode viewMode) |
void |
sort(AttachmentsBlock.Sort.Key key,
AttachmentsBlock.Sort.Direction direction)
Sorts the file attachments list on the view issue page for an specific issue.
|
public DefaultAttachmentsBlock(net.sourceforge.jwebunit.WebTester tester, com.atlassian.jira.testkit.client.log.FuncTestLogger logger, FileAttachmentsList fileAttachmentsList, ImageAttachmentsGallery imageAttachmentsGallery, AttachmentManagement attachmentManagement)
public void sort(AttachmentsBlock.Sort.Key key, AttachmentsBlock.Sort.Direction direction)
AttachmentsBlock
sort
in interface AttachmentsBlock
key
- The AttachmentsBlock.Sort.Key
to use to
sort the list.direction
- The AttachmentsBlock.Sort.Direction
to use to sort the list.public AttachmentManagement manage()
AttachmentsBlock
manage
in interface AttachmentsBlock
AttachmentManagement
object to interact
with the Manage Attachments page.public AttachmentsBlock.ViewMode getViewMode()
getViewMode
in interface AttachmentsBlock
public void setViewMode(AttachmentsBlock.ViewMode viewMode)
setViewMode
in interface AttachmentsBlock
public ImageAttachmentsGallery gallery()
gallery
in interface AttachmentsBlock
public FileAttachmentsList list()
list
in interface AttachmentsBlock
Copyright © 2002-2021 Atlassian. All Rights Reserved.