public class RGUIGlobal extends SuperGlobal implements FrontendResources
Modifier and Type | Class and Description |
---|---|
class |
RGUIGlobal.HTMLSource |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
APPLET_VERSION_INFO |
AppletDialog |
currentDialog |
Printer |
currentPrinter |
protected java.awt.Cursor |
DefaultCursor |
protected boolean |
loggedOut |
RemStructureOutlineFrame |
outlineWindow |
protected ParametersFromPropertyFiles |
parametersFromPropertyFiles |
java.util.Hashtable<java.lang.String,RemoteGUIComponent> |
rgcs |
int |
secondsBeforeAutomaticLogout |
RemListSelectionFrame |
selectionWindow |
RemServerProcessControllerFrame |
serverProcessControllerFrame |
java.lang.String |
serverRGUIversion |
java.lang.String |
sessionId |
static int |
START_IMAGE_PRESENTED |
static int |
START_IMAGE_REPLACED |
static int |
START_IMAGE_TO_SHOW |
java.util.Hashtable<java.lang.String,de.must.applet.RGUIGlobal.Task> |
tasks |
java.lang.String |
tempFolderName |
int |
timeout |
protected java.awt.Cursor |
WaitCursor |
protected java.util.Hashtable<java.lang.String,de.must.applet.RGUIGlobal.WinProp> |
winBounds |
java.util.Hashtable<java.lang.String,javax.swing.JFrame> |
windows |
BUNDLE_NAME_DE, BUNDLE_NAME_DK, BUNDLE_NAME_EN, BUNDLE_NAME_ES, BUNDLE_NAME_FR, BUNDLE_NAME_IT, BUNDLE_NAME_NL, BUNDLE_NAME_TR, BUNDLE_NAME_ZH, DENMARK, NETHERLANDS, resourceBundles, SPAIN, TURKEY
Constructor and Description |
---|
RGUIGlobal() |
Modifier and Type | Method and Description |
---|---|
de.must.applet.RGUIGlobal.Veto |
contactServer(KeyValuePairAlpha param)
Contacts assigned server with parameters as specified.
|
de.must.applet.RGUIGlobal.Veto |
contactServer(KeyValuePairAlpha param,
boolean ownThread)
Contacts assigned server with parameters as specified.
|
de.must.applet.RGUIGlobal.Veto |
contactServer(java.util.Vector<KeyValuePairAlpha> params)
Contacts assigned server with parameters as specified.
|
de.must.applet.RGUIGlobal.Veto |
contactServer(java.util.Vector<KeyValuePairAlpha> params,
boolean ownThread,
boolean callEvenIfThreadIsPending)
Contacts assigned server with parameters as specified.
|
void |
contactServerInOwnThread(java.util.Vector<KeyValuePairAlpha> params)
Contacts assigned server with parameters as specified using a new thread.
|
MustButton |
createButton(java.lang.String imageName,
java.lang.String defaultLabel) |
MustButton |
createButton(java.lang.String imageName,
java.lang.String defaultLabel,
java.lang.String tooltiptext,
java.lang.String actionCommand,
java.awt.event.ActionListener l) |
boolean |
download(java.lang.String inputPath,
java.lang.String outputPath) |
boolean |
download(java.lang.String inputPath,
java.lang.String outputPath,
boolean override) |
boolean |
downloadFromURL(java.lang.String url,
java.lang.String outputPath,
boolean override) |
java.applet.AppletContext |
getAppletContext() |
java.lang.String |
getCodeBase() |
java.lang.String |
getFrameworkResourceString(java.lang.String resourceKey)
Returns a package specific resource as a string.
|
java.lang.String |
getIdString(Identifier[] identifiers) |
java.lang.String |
getIdString(java.util.Vector<Identifier> identifiers) |
javax.swing.ImageIcon |
getImageIcon(java.lang.String imageName)
Returns an image loaded by name from typical images folder, e.g.
|
javax.swing.ImageIcon |
getImageIconIndividual(java.lang.String imagePath)
Returns image icons for path as specified - in opposite to getImageIcon, the image is searched
absolutely respectively below current directory or the code base in case of applets.
|
java.io.InputStream |
getInputStream(java.util.Vector<KeyValuePairAlpha> params) |
static RGUIGlobal |
getInstance() |
javax.swing.JFrame |
getMainWindow()
Returns the main window of the application.
|
RemoteGUIComponent |
getRemoteGUIComponent(java.lang.String id) |
RGUI |
getRGUI() |
java.io.BufferedReader |
getServerFileReader(java.lang.String relativeFilePath)
Returns a buffered file reader to access a server file.
|
protected java.io.BufferedReader |
getServerInputStream(java.util.Vector<KeyValuePairAlpha> params)
Returns an input stream to receive server data for the parameters as specified.
|
java.lang.String |
getServletName() |
boolean |
isServerCallThreadPending()
Returns true if a server contact in an own thread is pending.
|
boolean |
isURLavailable(java.lang.String url) |
void |
logout()
Perform logout.
|
void |
playSound(java.lang.String soundFileName) |
void |
register(java.lang.String id,
RemoteGUIComponent remoteGUIComponent) |
void |
remove(AppletGUIs gui) |
void |
removeTask(java.lang.String title) |
void |
setAppletContext(java.applet.AppletContext appletContext) |
void |
setCodeBase(java.lang.String codeBase) |
void |
setLanguage(int language) |
void |
setProxy(java.lang.String proxyHost,
int proxyPort,
java.lang.String proxyUserName,
java.lang.String proxyPassword)
Sets proxy information - not for applet, but for application.
|
void |
setRGUI(RGUI rgui) |
void |
setServletName(java.lang.String servletName) |
void |
setStatusLoggedOutToStopLogoutControl() |
void |
startLogoutControl(MustLabel infoLabel)
Starts logout control.
|
boolean |
upload(java.lang.String fileName,
java.util.Vector<KeyValuePairAlpha> params,
java.io.FileInputStream inputStream) |
getHomeDir, getResourceString, getResourceString, getSoundDirectory, getSuperInstance, getUserTempDir, getWorkingDir, getWorkingDirAbsolutPath, playSound, playSound, setHomeDir
public static final java.lang.String APPLET_VERSION_INFO
public static final int START_IMAGE_TO_SHOW
public static final int START_IMAGE_PRESENTED
public static final int START_IMAGE_REPLACED
public java.lang.String serverRGUIversion
public int secondsBeforeAutomaticLogout
public java.util.Hashtable<java.lang.String,de.must.applet.RGUIGlobal.Task> tasks
public java.util.Hashtable<java.lang.String,javax.swing.JFrame> windows
public AppletDialog currentDialog
public RemStructureOutlineFrame outlineWindow
public RemListSelectionFrame selectionWindow
public RemServerProcessControllerFrame serverProcessControllerFrame
public Printer currentPrinter
public java.util.Hashtable<java.lang.String,RemoteGUIComponent> rgcs
public int timeout
public java.lang.String sessionId
public java.lang.String tempFolderName
protected java.awt.Cursor DefaultCursor
protected java.awt.Cursor WaitCursor
protected java.util.Hashtable<java.lang.String,de.must.applet.RGUIGlobal.WinProp> winBounds
protected boolean loggedOut
protected ParametersFromPropertyFiles parametersFromPropertyFiles
public static final RGUIGlobal getInstance()
public void setRGUI(RGUI rgui)
public RGUI getRGUI()
public javax.swing.JFrame getMainWindow()
FrontendResources
getMainWindow
in interface FrontendResources
public void setAppletContext(java.applet.AppletContext appletContext)
public java.applet.AppletContext getAppletContext()
public void setServletName(java.lang.String servletName)
public java.lang.String getServletName()
public void setCodeBase(java.lang.String codeBase)
public java.lang.String getCodeBase()
public void setProxy(java.lang.String proxyHost, int proxyPort, java.lang.String proxyUserName, java.lang.String proxyPassword)
proxyHost
- proxyPort
- proxyUserName
- proxyPassword
- public void setLanguage(int language)
public void startLogoutControl(MustLabel infoLabel)
infoLabel
- the (new) label to receive information about remaining login time (may change due to look and feel changes)public void setStatusLoggedOutToStopLogoutControl()
public MustButton createButton(java.lang.String imageName, java.lang.String defaultLabel)
public MustButton createButton(java.lang.String imageName, java.lang.String defaultLabel, java.lang.String tooltiptext, java.lang.String actionCommand, java.awt.event.ActionListener l)
public javax.swing.ImageIcon getImageIcon(java.lang.String imageName)
ImageResource
getImageIcon
in interface ImageResource
imageName
- the name of image icon to loadpublic javax.swing.ImageIcon getImageIconIndividual(java.lang.String imagePath)
ImageResource
getImageIconIndividual
in interface ImageResource
imagePath
- the path of the image file to be loadedpublic void playSound(java.lang.String soundFileName)
playSound
in class SuperGlobal
public java.lang.String getFrameworkResourceString(java.lang.String resourceKey)
getFrameworkResourceString
in interface FrameworkTextResource
resourceKey
- the key of the resource to retrievepublic void register(java.lang.String id, RemoteGUIComponent remoteGUIComponent)
public RemoteGUIComponent getRemoteGUIComponent(java.lang.String id)
public java.lang.String getIdString(java.util.Vector<Identifier> identifiers)
public java.lang.String getIdString(Identifier[] identifiers)
public de.must.applet.RGUIGlobal.Veto contactServer(KeyValuePairAlpha param) throws java.io.IOException
param
- the parameter to send to the serverjava.io.IOException
public de.must.applet.RGUIGlobal.Veto contactServer(KeyValuePairAlpha param, boolean ownThread) throws java.io.IOException
params
- the parameters to send to the serverownThread
- whether or not server should be contacted in an own threadjava.io.IOException
public de.must.applet.RGUIGlobal.Veto contactServer(java.util.Vector<KeyValuePairAlpha> params) throws java.io.IOException
params
- the parameters to send to the serverjava.io.IOException
public de.must.applet.RGUIGlobal.Veto contactServer(java.util.Vector<KeyValuePairAlpha> params, boolean ownThread, boolean callEvenIfThreadIsPending) throws java.io.IOException
params
- the parameters to send to the serverownThread
- whether or not server should be contacted in an own threadcallEvenIfThreadIsPending
- whether or not server is to be called even if a contact in an own thread is still pendingjava.io.IOException
public void contactServerInOwnThread(java.util.Vector<KeyValuePairAlpha> params) throws java.io.IOException
params
- the parameters to send to the serverjava.io.IOException
protected java.io.BufferedReader getServerInputStream(java.util.Vector<KeyValuePairAlpha> params) throws java.net.MalformedURLException, java.io.IOException, java.net.ProtocolException, java.io.UnsupportedEncodingException
params
- the parameters to send to the serverjava.net.MalformedURLException
java.io.IOException
java.net.ProtocolException
java.io.UnsupportedEncodingException
public boolean upload(java.lang.String fileName, java.util.Vector<KeyValuePairAlpha> params, java.io.FileInputStream inputStream)
public java.io.InputStream getInputStream(java.util.Vector<KeyValuePairAlpha> params) throws java.io.IOException
java.io.IOException
public void remove(AppletGUIs gui)
public void removeTask(java.lang.String title)
public void logout()
public boolean download(java.lang.String inputPath, java.lang.String outputPath) throws java.io.IOException
java.io.IOException
public boolean download(java.lang.String inputPath, java.lang.String outputPath, boolean override) throws java.io.IOException
java.io.IOException
public boolean isURLavailable(java.lang.String url)
public boolean downloadFromURL(java.lang.String url, java.lang.String outputPath, boolean override) throws java.io.IOException
java.io.IOException
public java.io.BufferedReader getServerFileReader(java.lang.String relativeFilePath) throws java.io.IOException
relativeFilePath
- the relative path form the current webapp to the file to accessjava.io.IOException
public boolean isServerCallThreadPending()
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de