Class MetisViewerPage
java.lang.Object
io.github.tonywasher.joceanus.metis.viewer.MetisViewerPage
Data Viewer Page.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMetisViewerPage(MetisViewerEntry pEntry) Constructor for initial page. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetHtml()Obtain the HTML.protected intObtain the itemNo.protected MetisViewerEntryObtain the master entry.protected MetisViewerModegetMode()Obtain the mode.protected ObjectObtain the object.protected MetisViewerPageObtain the parent page.protected intgetSize()Obtain the size.protected booleanDoes the object have multiple modes?protected booleanhasNext()Have we got a next item.protected booleanDo we have a parent?protected booleanHave we got a previous item.protected static booleanisLinkable(Object pObject) Determine whether an object is link-able.protected StringGenerate a new link for the page.protected MetisViewerPageObtain the new page for the link.protected voidnext()Move to next page.protected voidprevious()Move to previous page.protected voidReset the page.protected voidSet the HTML.protected voidsetMode(MetisViewerMode pMode) Set the mode.protected voidsetPageNo(int pPage) Set the page.protected booleanvalidMode(MetisViewerMode pMode) Determine whether the mode is valid.
-
Constructor Details
-
MetisViewerPage
Constructor for initial page.- Parameters:
pEntry- the master entry
-
-
Method Details
-
getMasterEntry
Obtain the master entry.- Returns:
- the master entry
-
getParent
Obtain the parent page.- Returns:
- the parent page
-
hasParent
protected boolean hasParent()Do we have a parent?- Returns:
- true/false
-
getObject
Obtain the object.- Returns:
- the object
-
getMode
Obtain the mode.- Returns:
- the mode
-
getHtml
Obtain the HTML.- Returns:
- the HTML
-
setHtml
Set the HTML.- Parameters:
pHtml- the HTML
-
validMode
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
Set the mode.- Parameters:
pMode- the mode
-
resetPage
protected void resetPage()Reset the page. -
newLink
Generate a new link for the page.- Parameters:
pData- the object to link to- Returns:
- the link name
-
newPage
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
Determine whether an object is link-able.- Parameters:
pObject- the object- Returns:
- true/false
-