com.atlassian.confluence.pageobjects.component.attachment
Class AttachmentContainer

java.lang.Object
  extended by com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
      extended by com.atlassian.confluence.pageobjects.component.attachment.AbstractAttachmentContainer
          extended by com.atlassian.confluence.pageobjects.component.attachment.AttachmentContainer
All Implemented Interfaces:
PageComponent

public class AttachmentContainer
extends AbstractAttachmentContainer

Container for a single attachment in the DOM generated by /pages/viewattachments.vm.

Currently the "container" is, as the attachment itself, a virtual construct. An attachment is the sum of all attachment versions, and it is represented by one table row. Every single attachment version is also represented by a sibling of the attachment row, see getVersionContainer(int).

See Also:
com.atlassian.confluence.pages.actions.ViewPageAttachmentsAction}

Field Summary
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.attachment.AbstractAttachmentContainer
fileNameLink
 
Fields inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
driver, pageBinder, pageElementFinder, waiter
 
Constructor Summary
AttachmentContainer(Attachment attachment)
           
 
Method Summary
 EditAttachmentPage clickEdit()
           
 Attachment getAttachment()
           
protected  com.atlassian.pageobjects.elements.PageElement getAttachmentRow()
           
protected  com.atlassian.pageobjects.elements.PageElement getRemoveLink()
           
 AttachmentVersionContainer getVersionContainer(int version)
           
 boolean isVersionSectionPresent()
           
 boolean isVersionSectionVisible()
           
 boolean isVersionTogglePresent()
           
 void toggleShowVersionSection()
           
 
Methods inherited from class com.atlassian.confluence.pageobjects.component.attachment.AbstractAttachmentContainer
canRemove, clickRemove, getFileName, isPresent, isVisible
 
Methods inherited from class com.atlassian.confluence.pageobjects.component.ConfluenceAbstractPageComponent
getComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentContainer

public AttachmentContainer(Attachment attachment)
Method Detail

getAttachmentRow

protected com.atlassian.pageobjects.elements.PageElement getAttachmentRow()
Specified by:
getAttachmentRow in class AbstractAttachmentContainer

getRemoveLink

protected com.atlassian.pageobjects.elements.PageElement getRemoveLink()
Specified by:
getRemoveLink in class AbstractAttachmentContainer

isVersionTogglePresent

public boolean isVersionTogglePresent()

toggleShowVersionSection

public void toggleShowVersionSection()

isVersionSectionPresent

public boolean isVersionSectionPresent()

isVersionSectionVisible

public boolean isVersionSectionVisible()

clickEdit

public EditAttachmentPage clickEdit()

getVersionContainer

public AttachmentVersionContainer getVersionContainer(int version)

getAttachment

public Attachment getAttachment()


Copyright © 2003-2013 Atlassian. All Rights Reserved.