public class ClientMainFrame
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ClientMainFrame.ClientUpgradePageGenerator
The client upgrade page generator is a page shown when client has an older
client to connect to the server
|
Constructor and Description |
---|
ClientMainFrame(javafx.stage.Stage stage,
java.lang.String clientversion,
java.util.Date clientversiondate,
ClientMainFrame.ClientUpgradePageGenerator clientupgradepage,
PageActionManager.ActionSourceTransformer actionsourcetransformer,
CPageNodeCatalog pagenodecatalog,
java.lang.String urltoconnectto,
boolean nolog,
java.lang.String smallicon,
java.lang.String bigicon,
java.lang.String questionmarkicon,
java.lang.String cssfile)
Creates a client mainframe and showing it
|
Modifier and Type | Method and Description |
---|---|
CPage |
getClientUpgradePage(java.lang.String clientversion,
java.lang.String serverversions,
java.util.Date serverupdatedate) |
java.lang.String |
getClientversion() |
java.util.Date |
getClientversiondate() |
OpenLowcodeLogFilter |
getConsoleFilter() |
OpenLowcodeLogFilter |
getLogFileFilter() |
javafx.stage.Stage |
getPrimaryStage() |
void |
initiateLog()
Initiate console log and file log
|
public ClientMainFrame(javafx.stage.Stage stage, java.lang.String clientversion, java.util.Date clientversiondate, ClientMainFrame.ClientUpgradePageGenerator clientupgradepage, PageActionManager.ActionSourceTransformer actionsourcetransformer, CPageNodeCatalog pagenodecatalog, java.lang.String urltoconnectto, boolean nolog, java.lang.String smallicon, java.lang.String bigicon, java.lang.String questionmarkicon, java.lang.String cssfile) throws java.io.IOException
stage
- javafx application stageclientversion
- version of the clientclientversiondate
- date of the version of the clientclientupgradepage
- the page to show in case of upgradeactionsourcetransformer
- transformer of widgets sending events to
action event to their significant parent (e.g.
tablecell -> tableview)pagenodecatalog
- list of CPageNodes managedurltoconnectto
- URL to connect to at startnolog
- no logs are shown in the serversmallicon
- URL to the small icon (32x32)bigicon
- URL to the big icon (64x64)questionmarkicon
- URL of the question mark uiconcssfile
- URL to the CSS filejava.io.IOException
- if any bad happens while setting up the logspublic javafx.stage.Stage getPrimaryStage()
public OpenLowcodeLogFilter getConsoleFilter()
public OpenLowcodeLogFilter getLogFileFilter()
public CPage getClientUpgradePage(java.lang.String clientversion, java.lang.String serverversions, java.util.Date serverupdatedate)
clientversion
- current client versionserverversions
- current server versionserverupdatedate
- date of the last update of the Open Lowcode framework
on the serverpublic java.lang.String getClientversion()
public java.util.Date getClientversiondate()
public void initiateLog() throws java.io.IOException
java.io.IOException
- if anything bad happens creating log giles