java.lang.Object
io.github.tonywasher.joceanus.metis.viewer.MetisViewerPage

public class MetisViewerPage extends Object
Data Viewer Page.
  • Constructor Details

    • MetisViewerPage

      protected MetisViewerPage(MetisViewerEntry pEntry)
      Constructor for initial page.
      Parameters:
      pEntry - the master entry
  • Method Details

    • getMasterEntry

      protected MetisViewerEntry getMasterEntry()
      Obtain the master entry.
      Returns:
      the master entry
    • getParent

      protected MetisViewerPage getParent()
      Obtain the parent page.
      Returns:
      the parent page
    • hasParent

      protected boolean hasParent()
      Do we have a parent?
      Returns:
      true/false
    • getObject

      protected Object getObject()
      Obtain the object.
      Returns:
      the object
    • getMode

      protected MetisViewerMode getMode()
      Obtain the mode.
      Returns:
      the mode
    • getHtml

      protected String getHtml()
      Obtain the HTML.
      Returns:
      the HTML
    • setHtml

      protected void setHtml(String pHtml)
      Set the HTML.
      Parameters:
      pHtml - the HTML
    • validMode

      protected boolean validMode(MetisViewerMode pMode)
      Determine whether the mode is valid.
      Parameters:
      pMode - the mode
      Returns:
      true/false
    • getItemNo

      protected int getItemNo()
      Obtain the itemNo.
      Returns:
      the index
    • getSize

      protected int getSize()
      Obtain the size.
      Returns:
      the size
    • hasPrevious

      protected boolean hasPrevious()
      Have we got a previous item.
      Returns:
      true/false
    • hasNext

      protected boolean hasNext()
      Have we got a next item.
      Returns:
      true/false
    • previous

      protected void previous()
      Move to previous page.
    • next

      protected void next()
      Move to next page.
    • setPageNo

      protected void setPageNo(int pPage)
      Set the page.
      Parameters:
      pPage - the page #
    • setMode

      protected void setMode(MetisViewerMode pMode)
      Set the mode.
      Parameters:
      pMode - the mode
    • resetPage

      protected void resetPage()
      Reset the page.
    • newLink

      protected String newLink(Object pData)
      Generate a new link for the page.
      Parameters:
      pData - the object to link to
      Returns:
      the link name
    • newPage

      protected MetisViewerPage newPage(String pLink)
      Obtain the new page for the link.
      Parameters:
      pLink - the link id
      Returns:
      the new page
    • hasMultiModes

      protected boolean hasMultiModes()
      Does the object have multiple modes?
      Returns:
      true/false
    • isLinkable

      protected static boolean isLinkable(Object pObject)
      Determine whether an object is link-able.
      Parameters:
      pObject - the object
      Returns:
      true/false