Package com.iizix.server.run.remote
Class ClientBuilder
java.lang.Object
com.iizix.server.run.remote.ClientBuilder
- All Implemented Interfaces:
IPrintAdapter
,ICommonJobCreator
Class used to handle communication with the client part, i.e. the Designer wishing to build an iiziRun.
- Author:
- Christopher Mindus
Field Summary
Fields inherited from interface com.iizix.IPrintAdapter
DEFAULT
Constructor Summary
Method Summary
Modifier and TypeMethodDescriptioncreateNewJob
(IPropProgressMonitor monitor, boolean isVerbose) Creates a new common job.createNewJob
(IPropProgressMonitor monitor, IPrintAdapter printer, boolean isVerbose) Creates a new common job.void
dispose()
Disposes of the instance.static CodeModifier
Gets the code modifier.getRequiredTextIDs
(RuntimeBuilderSettings settings) Gets the required text IDs for the text file.void
Prints without new line.void
println()
Performs a new line.void
Prints without new line.boolean
processRemoteEvent
(RemoteEvent event) Called when a remote property event should be processed by this property.
Constructor Details
ClientBuilder
Constructor.- Parameters:
cnr
- The builder properties.
Method Details
getCodeModifier
Gets the code modifier.- Returns:
- The code modifier, or null for failure (it's been logged).
getRequiredTextIDs
Gets the required text IDs for the text file.- Parameters:
settings
- The settings, null if normal customized iiziRun's.- Returns:
- The set of text IDs, null means failed to read it from the "www/js/msg.js" file. In case
null
is returned, it has been logged in the server.
createNewJob
Creates a new common job.- Parameters:
monitor
- The monitor to use, null for non-Eclipse processes.isVerbose
- If the job should be verbose or not.
createNewJob
public ICommonJobs createNewJob(IPropProgressMonitor monitor, IPrintAdapter printer, boolean isVerbose) Creates a new common job.- Specified by:
createNewJob
in interfaceICommonJobCreator
- Parameters:
monitor
- The monitor to use, null for non-Eclipse processes.printer
- The printer for output.isVerbose
- If the job should be verbose or not.
processRemoteEvent
Called when a remote property event should be processed by this property.- Parameters:
event
- The remote event.- Returns:
- true For processed, false otherwise.
println
Prints without new line.- Specified by:
println
in interfaceIPrintAdapter
- Parameters:
s
- The String.
print
Prints without new line.- Specified by:
print
in interfaceIPrintAdapter
- Parameters:
s
- The String.
println
public void println()Performs a new line.- Specified by:
println
in interfaceIPrintAdapter
dispose
public void dispose()Disposes of the instance.