public class ClientDisplay
extends java.lang.Object
Constructor and Description |
---|
ClientDisplay(ClientSession parent,
PageActionManager.ActionSourceTransformer actionsourcetransformer,
java.lang.String urltoconnectto,
java.lang.String questionmarkicon)
Creates a new client display.
|
Modifier and Type | Method and Description |
---|---|
void |
addPageHistory(org.openlowcode.client.runtime.ClientDisplay.PageHistory pagehistory)
adds a page history to the local repository
|
boolean |
checkContinueWarning() |
boolean |
displayModalPopup(java.lang.String message,
java.lang.String yesmessage,
java.lang.String nomessage)
displays a modal popup and waits for answer
|
void |
ensureNodeVisible(javafx.scene.Node node)
scrolls the display to make sure the node specified is shown in the scroll pane
|
javafx.scene.layout.Pane |
generateStatusBar()
generates the JAVAFX component for the status bar
|
ConnectionBar |
getConnectionBar() |
javafx.scene.Node |
getEmptyDisplay() |
ClientSession |
getParentServerConnection() |
org.openlowcode.client.runtime.ClientDisplay.PageHistory |
lookupPageForAddress(java.lang.String address)
checks if the page was already visited
|
void |
setandDisplayPage(java.lang.String title,
java.lang.String fulladdress,
CPage page,
java.lang.String address,
long starttime,
long messagesize,
long pagedatachedkb,
long totalpagecachekb,
boolean showtechdetails,
boolean createnewtab)
Displays a page on this client display.
|
void |
setBusinessScreenFrozen(boolean frozen)
In this version, only the connection bar is frozen when an event is sent to the server.
|
void |
setnewContentHolderHeightChangeListener(javafx.beans.value.ChangeListener<java.lang.Number> newheightlistener)
refreshes the change listener to the content holder height
|
void |
setnewContentHolderWidthChangeListener(javafx.beans.value.ChangeListener<java.lang.Number> newwidthlistener)
refreshes the change listener to the content holder width
|
java.lang.String |
showModalTextEntry(java.lang.String title,
int textlength) |
void |
triggerLaunchAddress()
will launch the sending to the server of the address shown in the connection bar
|
void |
updateStatusBar(java.lang.String message) |
void |
updateStatusBar(java.lang.String message,
boolean showaserror)
displays a message in the status bar
|
public ClientDisplay(ClientSession parent, PageActionManager.ActionSourceTransformer actionsourcetransformer, java.lang.String urltoconnectto, java.lang.String questionmarkicon)
parent
- parent client sessionactionsourcetransformer
- specific transformer to transform a node sending an action (for example a table cell) into the parent node holding thedata (e.g. a table view)urltoconnectto
- if specified, the URL to connect to firstquestionmarkicon
- the path to the icon to display for the question markpublic ConnectionBar getConnectionBar()
public void ensureNodeVisible(javafx.scene.Node node)
node
- a node displayedpublic boolean checkContinueWarning()
public ClientSession getParentServerConnection()
public boolean displayModalPopup(java.lang.String message, java.lang.String yesmessage, java.lang.String nomessage)
message
- what to display as main messageyesmessage
- what to display on button for yesnomessage
- what to display on button for nopublic void setandDisplayPage(java.lang.String title, java.lang.String fulladdress, CPage page, java.lang.String address, long starttime, long messagesize, long pagedatachedkb, long totalpagecachekb, boolean showtechdetails, boolean createnewtab)
title
- title to displayfulladdress
- address to display in theconnection barpage
- the page to showaddress
- limited address (without server coordinates)starttime
- when the processing of the request startedmessagesize
- size of the message read from serverpagedatachedkb
- page data that was retrieved from the cachetotalpagecachekb
- total size of the page cacheshowtechdetails
- will display all technical details (speed,network used)createnewtab
- if true, create a new tab to display the pagepublic org.openlowcode.client.runtime.ClientDisplay.PageHistory lookupPageForAddress(java.lang.String address)
address
- looks up for the page history address in the local repositorypublic void addPageHistory(org.openlowcode.client.runtime.ClientDisplay.PageHistory pagehistory)
pagehistory
- public void setnewContentHolderHeightChangeListener(javafx.beans.value.ChangeListener<java.lang.Number> newheightlistener)
newheightlistener
- new change listenerpublic void setnewContentHolderWidthChangeListener(javafx.beans.value.ChangeListener<java.lang.Number> newwidthlistener)
newwidthlistener
- new change listenerpublic java.lang.String showModalTextEntry(java.lang.String title, int textlength)
title
- null if user pressed cancel, or the text entered if pressed
OK (if pressed OK with no text entered, empty string is
brought backtextlength
- the maximum length of text to enterpublic void triggerLaunchAddress()
public javafx.scene.Node getEmptyDisplay()
public javafx.scene.layout.Pane generateStatusBar()
public void updateStatusBar(java.lang.String message, boolean showaserror)
message
- the message to showshowaserror
- if true, message is shown as error (in yellow), if false, displays it as simple textpublic void updateStatusBar(java.lang.String message)
message
- Displays a message in the status bar with normal statuspublic void setBusinessScreenFrozen(boolean frozen)
frozen
- true to freeze the screen, false to unfreeze the screen