public class FwkContainer extends FwkPresentation implements FwkContainerInterface, java.beans.PropertyChangeListener
Property Keyword | Datatype | Default | Description |
---|---|---|---|
FwkContainer.ExitEnabled | Boolean | true | Set this property to true to disable that the FwkContainer uses the System.exit(); |
FwkContainer.Classpath | String | null | Set this property to extend the classpath. If you start with the jar option of the VM this options is the way to bind additional components at startup time. |
User.Directory | String | ~/properties | The users home directory. This directory is normally the default or startup directory for saving and reading. |
LookAndFeel | String | depends on Java implementation | The startup look and feel. It is also possible to add the system property os.name as prefix separarted by dot, to to define different look and feels for different operating systems. |
TestDataProducer | boolean | false | If true, the container creates a set of test data. |
BatchMode | boolean | false | If true, the container doesn't create any GUI for messages. |
MDIContainer | boolean | false | If true, the container creates MDI (MultiDocumentInterface) an application. |
Country | String | Locale.getDefault.getCountry() | The country specification string. |
Language | String | Locale.getDefault.getLanguage() | The language specification string. |
FwkContainer.Text.Error_StartingFrame | String | FwkContainer.Text.Error_StartingFrame | The error message, if the container could not start a frame. |
FwkContainer.Text.Error_ClassNotFound | String | FwkContainer.Text.Error_ClassNotFound | The error message, if the container could not find a class. |
gui | boolean | false | Decides whether to start the service control manager with GUI |
autostart | boolean | true | Request a autostart for service control managers. |
serviceApplication | String | serviceApplication | The service application name. |
serviceControlManager | String | serviceControlManager | The service control manager class name. |
Error.Hint | String | Error.Hint | The error hint string. |
Error.Occured | String | Error.Occured | The message string when an error occured. |
FwkContainer.DebugLevel | int | -1 | The debug level. |
FwkContainer.Read.Environment | boolean | true | If true the container will create the FwkEnvironmentPropertyProducer. |
Properties | String | none | A property resource. This resource will be
loaded into the system property table. The user property table has a higher priority and the application property table has a lower priority. |
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected static float |
javaVersion |
protected static java.lang.String |
osPropertyKey |
static java.lang.String |
version |
COMMANDINTERFACE_KEY, CONTROLLER_KEY, HELPID_KEY, HELPSET_KEY, MIMETYPE_PREFIX, mSeconds
Modifier | Constructor and Description |
---|---|
protected |
FwkContainer() |
Modifier and Type | Method and Description |
---|---|
static void |
addComponentProperties(java.lang.Class clazz) |
static void |
addComponentProperties(java.lang.String className) |
static void |
addComponentProperties(java.lang.String name,
java.lang.Class clazz) |
static void |
addComponentProperties(java.lang.String name,
java.lang.String className) |
void |
addComponentPropertiesImpl(java.lang.Class clazz)
Adds the component properties.
|
void |
addComponentPropertiesImpl(java.lang.String className)
Adds the component properties.
|
void |
addComponentPropertiesImpl(java.lang.String name,
java.lang.Class clazz)
Adds the component properties.
|
void |
addComponentPropertiesImpl(java.lang.String name,
java.lang.String className)
Adds the component properties.
|
static void |
addTraceListener(FwkTraceListenerInterface listener) |
void |
addTraceListenerImpl(FwkTraceListenerInterface listener)
�Add a trace listener to the listener list.
|
static void |
beep()
Emits an audio beep.
|
static void |
createFromDroppedObject(java.lang.String infoBusName,
java.awt.datatransfer.DataFlavor df,
java.lang.Object data) |
void |
createFromDroppedObjectImpl(java.lang.String infoBusName,
java.awt.datatransfer.DataFlavor df,
java.lang.Object data)
Create an item from the dropped data object.
|
static void |
debug(int level,
java.lang.String message) |
static void |
debug(int level,
java.lang.String[] message) |
void |
debugImpl(int level,
java.lang.String message)
Debug message output.
|
void |
debugImpl(int level,
java.lang.String[] message)
The array variant of the debug print method.
|
static void |
exit(int flag) |
void |
exitImpl(int flag)
Exits the java environment.
|
static void |
fireTrace(FwkTraceEventInterface evt) |
void |
fireTraceImpl(FwkTraceEventInterface evt)
Fire an existing trace event to any registered listeners.
|
static FwkApplicationInterface |
getApplication(java.awt.event.ActionEvent ev) |
FwkApplicationInterface |
getApplicationImpl(java.awt.event.ActionEvent ev)
Get the application that fired the action event.
|
static java.lang.String |
getBasicName(java.lang.String className) |
java.lang.String |
getBasicNameImpl(java.lang.String className)
Determine the basic name of an application.
|
static java.lang.String |
getCallingClassName(int deep) |
java.lang.String |
getCallingClassNameImpl(int deep)
Get the name of the calling class.
|
static FwkDescriptionInterface |
getClassDescriptor(java.lang.Class clazz) |
static FwkDescriptionInterface |
getClassDescriptor(java.lang.String className) |
FwkDescriptionInterface |
getClassDescriptorImpl(java.lang.Class clazz)
Get a descriptor of the specified class.
|
FwkDescriptionInterface |
getClassDescriptorImpl(java.lang.String className)
Get a descriptor of the specified class.
|
static FwkClipboard |
getClipboard() |
FwkClipboard |
getClipboardImpl()
Get the FWK system clipboard.
|
static FwkInfoBusProducerInterface |
getComponentProperties(java.lang.Class clazz) |
static FwkInfoBusProducerInterface |
getComponentProperties(java.lang.String name,
java.lang.Class clazz) |
FwkInfoBusProducerInterface |
getComponentPropertiesImpl(java.lang.Class clazz)
Returns the component properties.
|
FwkInfoBusProducerInterface |
getComponentPropertiesImpl(java.lang.String name,
java.lang.Class clazz)
Returns the component properties.
|
static java.lang.Object |
getController(java.lang.Object obj) |
java.lang.Object |
getControllerImpl(java.lang.Object obj)
This method returns the controller of an object.
|
static java.awt.datatransfer.DataFlavor[] |
getDataFlavor(java.lang.Class clazz) |
static java.awt.datatransfer.DataFlavor[] |
getDataFlavor(java.lang.String mimeType) |
java.awt.datatransfer.DataFlavor[] |
getDataFlavorImpl(java.lang.Class clazz)
Get the toplevel flavor of the incoming class or
an array of length null if no interface was found.
|
java.awt.datatransfer.DataFlavor[] |
getDataFlavorImpl(java.lang.String mimeType)
Get a DataFlavor for the given mimetype.
|
static java.awt.datatransfer.DataFlavor[] |
getDataFlavors(java.lang.Class clazz) |
static java.awt.datatransfer.DataFlavor[] |
getDataFlavors(FwkArrayInterface mimeTypes) |
static java.awt.datatransfer.DataFlavor[] |
getDataFlavors(java.lang.String[] mimeTypes) |
java.awt.datatransfer.DataFlavor[] |
getDataFlavorsImpl(java.lang.Class clazz)
Get the dataflavors of the incoming class or
an array of length null if no interface was found.
|
java.awt.datatransfer.DataFlavor[] |
getDataFlavorsImpl(FwkArrayInterface mimeTypes)
Get a DataFlavor for the given mimetypes.
|
java.awt.datatransfer.DataFlavor[] |
getDataFlavorsImpl(java.lang.String[] mimeTypes)
Get a DataFlavor for the given mimetypes.
|
static int |
getDebugLevel() |
int |
getDebugLevelImpl()
Get the current debug level.
|
static long |
getElapsedTime() |
long |
getElapsedTimeImpl()
Get the elapsed time since startup in milliseconds.
|
static FwkArrayInterface |
getFwkMimeType(java.lang.Class clazz) |
FwkArrayInterface |
getFwkMimeTypeImpl(java.lang.Class clazz)
Return the mimetype of a Class.
|
static FwkArrayInterface |
getFwkMimeTypes() |
static FwkArrayInterface |
getFwkMimeTypes(java.lang.Class clazz) |
static FwkArrayInterface |
getFwkMimeTypes(java.lang.Object obj) |
FwkArrayInterface |
getFwkMimeTypesImpl()
Return the mimetypes of the component.
|
FwkArrayInterface |
getFwkMimeTypesImpl(java.lang.Class clazz)
Return the mimetypes of a Class.
|
FwkArrayInterface |
getFwkMimeTypesImpl(java.lang.Object obj)
Return the mimetypes of an Object.
|
static java.lang.String |
getHelpIDString(javax.swing.JComponent comp) |
java.lang.String |
getHelpIDStringImpl(javax.swing.JComponent comp)
This method returns the helpID of the event source, or null
if not found.
|
static javax.help.HelpSet |
getHelpSet(javax.swing.JComponent comp) |
javax.help.HelpSet |
getHelpSetImpl(javax.swing.JComponent comp)
This method returns the helpSet of the event source, or the help set of the
FwkHelpBroker, or null if not found.
|
static float |
getJavaVersionAsFloat()
Get the java vm version
|
static java.lang.String |
getJavaVersionAsString()
Get the java vm version string (same as
System.getProperty("java.version") ). |
static java.lang.String[] |
getLAFNames() |
java.lang.String[] |
getLAFNamesImpl()
Get LAF names.
|
static java.util.Locale |
getLocale() |
java.util.Locale |
getLocaleImpl()
Get the desired Locale language.
|
static java.lang.String |
getLocalHost() |
static java.lang.String |
getLocalHostAddress() |
java.lang.String |
getLocalHostAddressImpl()
Get the IP address of the current machine.
|
java.lang.String |
getLocalHostImpl()
Get the node name of the current machine.
|
static java.lang.String |
getMimeType(java.lang.Class clazz) |
java.lang.String |
getMimeTypeImpl(java.lang.Class clazz)
Get the mimetype of the incoming class.
|
static FwkArrayInterface |
getMimeTypes(java.lang.Class clazz) |
FwkArrayInterface |
getMimeTypesImpl(java.lang.Class clazz)
Returns a string array containing all the mimetypes of the given class.
|
static int |
getModifications() |
int |
getModificationsImpl()
Get the number of registered modifications.
|
static java.lang.String |
getOSPropertyKey()
Return a operation system keyword.
|
static FwkPropertyGroupInterface |
getProperties(java.lang.String[] args)
This method returns a java.util.Properties object according
to the given arguments.
|
static java.awt.Dimension |
getScreenSize()
Get the screen size.
|
static boolean |
getSystemBoolean(java.lang.String booleanName,
boolean defaultBool) |
boolean |
getSystemBooleanImpl(java.lang.String booleanName,
boolean defaultBool)
Get a system boolean.
|
static java.lang.String |
getSystemProperty(java.lang.String propertyName,
java.lang.String defaultValue) |
java.lang.String |
getSystemPropertyImpl(java.lang.String propertyName,
java.lang.String defaultValue)
Get a system property.
|
static long |
getTraceLevel() |
long |
getTraceLevelImpl()
Get the trace level of the distributor.
|
static FwkArrayInterface |
getTraceListenerArray() |
FwkArrayInterface |
getTraceListenerArrayImpl()
Get a vector containing the registered trace listeners.
|
static FwkTraceInterface |
getTracer() |
FwkTraceInterface |
getTracerImpl()
Get the trace.
|
static java.lang.String |
getTranslatedApplicationName(java.lang.String className) |
java.lang.String |
getTranslatedApplicationNameImpl(java.lang.String className)
Get the translated (via property information) title
for the given class.
|
static java.lang.String |
getUniqueName(java.lang.String applicationName) |
java.lang.String |
getUniqueNameImpl(java.lang.String applicationName)
Get a unique registry name.
|
static java.lang.String |
getUserDirectory()
Returns the user specific directory.
|
static java.lang.String |
getUserName() |
java.lang.String |
getUserNameImpl()
Get the user name of the current user.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
static int |
getYear() |
int |
getYearImpl()
Get the current year.
|
static void |
initialize(java.lang.String[] args) |
void |
initializeImpl(java.lang.String[] args)
Initialize the component system system.
|
void |
installLookAndFeelDefaultsImpl()
Install the LAF defaults.
|
static java.lang.Object |
instantiate(java.lang.String className,
java.lang.String errorTitle) |
java.lang.Object |
instantiateImpl(java.lang.String className,
java.lang.String errorTitle)
Instantiate the requested class.
|
static boolean |
isBatchMode()
Get the batch mode boolean.
|
static int |
isDropDataFlavorSupported(java.lang.String infoBusName,
java.awt.datatransfer.DataFlavor[] df) |
int |
isDropDataFlavorSupportedImpl(java.lang.String infoBusName,
java.awt.datatransfer.DataFlavor[] df)
Return a boolean whether the given data flavor is supported.
|
static boolean |
isRegistered(FwkApplicationInterface appl) |
static boolean |
isRegistered(java.lang.String applName) |
boolean |
isRegisteredImpl(FwkApplicationInterface appl)
Check whether the application is registered.
|
boolean |
isRegisteredImpl(java.lang.String applName)
Check whether the application is registered.
|
static void |
main(java.lang.String[] args)
The testing main procedure.
|
static FwkWindowInterface |
openFrame(FwkApplicationInterface application) |
static FwkWindowInterface |
openFrame(FwkApplicationInterface application,
boolean flag) |
static FwkWindowInterface |
openFrame(java.lang.String className) |
static FwkWindowInterface |
openFrame(java.lang.String className,
boolean flag) |
FwkWindowInterface |
openFrameImpl(FwkApplicationInterface application,
boolean flag)
Start an application
|
FwkWindowInterface |
openFrameImpl(java.lang.String className,
boolean flag)
Start an application
|
static void |
print(FwkPrintableInterface printable) |
void |
printImpl(FwkPrintableInterface printable)
The application print command.
|
static void |
printStackTrace() |
void |
printStackTraceImpl()
Print the stack trace.
|
void |
propertyChange(java.beans.PropertyChangeEvent event)
The PropertyChange method is used to track changes to LookAndFeel
via the "lookAndFeel" property.
|
static java.lang.String |
register(FwkApplicationInterface appl) |
static void |
register(FwkApplicationInterface appl,
FwkArrayInterface mimeTypes) |
static void |
register(FwkApplicationInterface appl,
java.lang.String mimeType) |
static void |
register(FwkApplicationInterface appl,
java.lang.String[] mimeTypes) |
static FwkInfoBusProducerInterface |
registerComponentProperties(java.lang.Class clazz) |
static FwkInfoBusProducerInterface |
registerComponentProperties(java.lang.String name,
java.lang.Class clazz) |
FwkInfoBusProducerInterface |
registerComponentPropertiesImpl(java.lang.String name,
java.lang.Class clazz)
Register a new property producer.
|
static void |
registerDropProducer(FwkInfoBusDropProducerInterface producer) |
void |
registerDropProducerImpl(FwkInfoBusDropProducerInterface producer)
Register a drop producer.
|
java.lang.String |
registerImpl(FwkApplicationInterface appl)
Register the application with the FwkApplicationBus.
|
void |
registerImpl(FwkApplicationInterface appl,
FwkArrayInterface mimeTypes)
Register the application with the FwkApplicationBus.
|
void |
registerImpl(FwkApplicationInterface appl,
java.lang.String mimeType)
Register the application with the FwkApplicationBus.
|
void |
registerImpl(FwkApplicationInterface appl,
java.lang.String[] mimeTypes)
Register the application with the FwkApplicationBus.
|
static void |
removeTraceListener(FwkTraceListenerInterface listener) |
void |
removeTraceListenerImpl(FwkTraceListenerInterface listener)
�Remove a trace listener from the listener list.
|
static void |
sendTrace(java.lang.Object source,
long level,
java.lang.String message,
java.lang.String host,
java.lang.String user) |
void |
sendTraceImpl(java.lang.Object source,
long level,
java.lang.String message,
java.lang.String host,
java.lang.String user)
Send a trace.
|
static void |
setLAF(java.lang.String lafName) |
void |
setLAFImpl(java.lang.String lafName)
Install the LAF.
|
static void |
setLocale(java.util.Locale l) |
static void |
setLocale(java.lang.String language,
java.lang.String country) |
void |
setLocaleImpl(java.util.Locale l)
Set the locale.
|
void |
setLocaleImpl(java.lang.String language,
java.lang.String country)
Set the locale.
|
static void |
setTraceLevel(long level) |
void |
setTraceLevelImpl(long level)
Set the trace level of the distributor.
|
static void |
showErrorMessage(java.awt.Container container,
java.lang.String title,
java.lang.String label,
java.lang.String label2) |
static void |
showErrorMessage(java.awt.Container container,
java.lang.String title,
java.lang.String label,
java.lang.Throwable throwable) |
static void |
showErrorMessage(java.lang.String title,
java.lang.String label,
java.lang.String label2) |
static void |
showErrorMessage(java.lang.String title,
java.lang.String label,
java.lang.Throwable throwable) |
void |
showErrorMessageImpl(java.awt.Container container,
java.lang.String title,
java.lang.String label,
java.lang.String label2) |
void |
showErrorMessageImpl(java.awt.Container container,
java.lang.String title,
java.lang.String label,
java.lang.Throwable throwable) |
void |
showErrorMessageImpl(java.lang.String title,
java.lang.String label,
java.lang.String label2) |
void |
showErrorMessageImpl(java.lang.String title,
java.lang.String label,
java.lang.Throwable throwable) |
static FwkServiceControlManagerInterface |
startServiceControlManager(java.lang.String[] args)
Start the application as service (e.g.
|
static void |
unregister(FwkApplicationInterface appl) |
void |
unregisterImpl(FwkApplicationInterface appl)
Unregister the application from the ApplicationBus
|
static byte[] |
unzip(java.lang.String entry,
byte[] arr) |
byte[] |
unzipImpl(java.lang.String entry,
byte[] arr)
UNZIP a byte array.
|
static void |
zip(java.io.InputStream in,
java.io.OutputStream out,
java.lang.String entry) |
static void |
zip(java.io.OutputStream out,
java.lang.String entry,
byte[] arr) |
static byte[] |
zip(java.lang.String entry,
byte[] arr) |
void |
zipImpl(java.io.InputStream in,
java.io.OutputStream out,
java.lang.String entry)
UNZIP an inputstream and put the result into an output stream.
|
void |
zipImpl(java.io.OutputStream out,
java.lang.String entry,
byte[] arr)
ZIP a byte array into a output stream.
|
byte[] |
zipImpl(java.lang.String entry,
byte[] arr)
ZIP a byte array.
|
getPresentationString, getPresentationString
getNiceVersion, release
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
release
public static final java.lang.String version
protected static float javaVersion
protected static java.lang.String osPropertyKey
public java.lang.String getVersion()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class FwkPresentation
public static float getJavaVersionAsFloat()
public static java.lang.String getJavaVersionAsString()
System.getProperty("java.version")
).public static java.lang.String getOSPropertyKey()
System.getProperty("os.name".replace(' ', '_'));
an
- os dependent string that can used as a part of a property keyword.public FwkInfoBusProducerInterface registerComponentPropertiesImpl(java.lang.String name, java.lang.Class clazz)
registerComponentPropertiesImpl
in interface FwkContainerInterface
clazz
- Class to be initialized.#eaPropertyProducer
public static FwkInfoBusProducerInterface registerComponentProperties(java.lang.Class clazz)
public static FwkInfoBusProducerInterface registerComponentProperties(java.lang.String name, java.lang.Class clazz)
public FwkInfoBusProducerInterface getComponentPropertiesImpl(java.lang.Class clazz)
clazz
- Class to be initialized.#eaPropertyProducer
public static FwkInfoBusProducerInterface getComponentProperties(java.lang.Class clazz)
public FwkInfoBusProducerInterface getComponentPropertiesImpl(java.lang.String name, java.lang.Class clazz)
name
- The name of the property file without path and extention.clazz
- Class to be initialized.#FwkPropertyProducer
public static FwkInfoBusProducerInterface getComponentProperties(java.lang.String name, java.lang.Class clazz)
public void addComponentPropertiesImpl(java.lang.Class clazz)
addComponentPropertiesImpl
in interface FwkContainerInterface
clazz
- Class to be initialized.#eaPropertyProducer
public static void addComponentProperties(java.lang.Class clazz)
public void addComponentPropertiesImpl(java.lang.String name, java.lang.Class clazz)
addComponentPropertiesImpl
in interface FwkContainerInterface
name
- The name of the property file without path and extention.clazz
- Class to be initialized.#FwkPropertyProducer
public static void addComponentProperties(java.lang.String name, java.lang.Class clazz)
public void addComponentPropertiesImpl(java.lang.String className)
addComponentPropertiesImpl
in interface FwkContainerInterface
className
- Name of the class to be initialized.#FwkPropertyProducer
public static void addComponentProperties(java.lang.String className)
public void addComponentPropertiesImpl(java.lang.String name, java.lang.String className)
addComponentPropertiesImpl
in interface FwkContainerInterface
name
- The name of the property file without path and extention.clazzName
- Class name string to be inialized.#FwkPropertyProducer
public static void addComponentProperties(java.lang.String name, java.lang.String className)
public FwkApplicationInterface getApplicationImpl(java.awt.event.ActionEvent ev)
getApplicationImpl
in interface FwkContainerInterface
ev
- The action event.public static FwkApplicationInterface getApplication(java.awt.event.ActionEvent ev)
public java.lang.String getBasicNameImpl(java.lang.String className)
getBasicNameImpl
in interface FwkContainerInterface
className
- The name of the class whose basic name is requested.public static java.lang.String getBasicName(java.lang.String className)
public java.lang.String getMimeTypeImpl(java.lang.Class clazz)
getMimeTypeImpl
in interface FwkContainerInterface
clazz
- The class to be introspected.The
- mime type string.public static java.lang.String getMimeType(java.lang.Class clazz)
public FwkArrayInterface getMimeTypesImpl(java.lang.Class clazz)
getMimeTypesImpl
in interface FwkContainerInterface
clazz
- The class that should be introspected.public static FwkArrayInterface getMimeTypes(java.lang.Class clazz)
public FwkArrayInterface getFwkMimeTypesImpl()
getFwkMimeTypesImpl
in interface FwkContainerInterface
public static FwkArrayInterface getFwkMimeTypes()
public FwkArrayInterface getFwkMimeTypesImpl(java.lang.Object obj)
getFwkMimeTypesImpl
in interface FwkContainerInterface
obj
- The object that should be instrospected.public static FwkArrayInterface getFwkMimeTypes(java.lang.Object obj)
public FwkArrayInterface getFwkMimeTypesImpl(java.lang.Class clazz)
getFwkMimeTypesImpl
in interface FwkContainerInterface
clazz
- The class that should be instrospected.public static FwkArrayInterface getFwkMimeTypes(java.lang.Class clazz)
public FwkArrayInterface getFwkMimeTypeImpl(java.lang.Class clazz)
clazz
- The class that should be instrospected.public static FwkArrayInterface getFwkMimeType(java.lang.Class clazz)
public FwkDescriptionInterface getClassDescriptorImpl(java.lang.String className)
getClassDescriptorImpl
in interface FwkContainerInterface
className
- The name of the class to be ask for the descriptor.public static FwkDescriptionInterface getClassDescriptor(java.lang.String className)
public FwkDescriptionInterface getClassDescriptorImpl(java.lang.Class clazz)
getClassDescriptorImpl
in interface FwkContainerInterface
clazz
- The class to be ask for the descriptor.public static FwkDescriptionInterface getClassDescriptor(java.lang.Class clazz)
public java.lang.Object getControllerImpl(java.lang.Object obj)
getControllerImpl
in interface FwkContainerInterface
obj
- The object from that the controller is requested.public static java.lang.Object getController(java.lang.Object obj)
public FwkClipboard getClipboardImpl()
public static FwkClipboard getClipboard()
public java.util.Locale getLocaleImpl()
getLocaleImpl
in interface FwkContainerInterface
public static java.util.Locale getLocale()
public java.lang.String getLocalHostImpl()
getLocalHostImpl
in interface FwkContainerInterface
public static java.lang.String getLocalHost()
public java.lang.String getLocalHostAddressImpl()
FwkContainerInterface
getLocalHostAddressImpl
in interface FwkContainerInterface
public static java.lang.String getLocalHostAddress()
public int getModificationsImpl()
getModificationsImpl
in interface FwkContainerInterface
public static int getModifications()
public java.lang.String getTranslatedApplicationNameImpl(java.lang.String className)
getTranslatedApplicationNameImpl
in interface FwkContainerInterface
className
- The name of the class.public static java.lang.String getTranslatedApplicationName(java.lang.String className)
public static java.lang.String getUserDirectory()
public java.lang.String getUserNameImpl()
FwkContainerInterface
getUserNameImpl
in interface FwkContainerInterface
public static java.lang.String getUserName()
public static FwkPropertyGroupInterface getProperties(java.lang.String[] args)
args
- The command line arguments of the program.public void initializeImpl(java.lang.String[] args)
initializeImpl
in interface FwkContainerInterface
args
- The command line arguments of the program.public static void initialize(java.lang.String[] args)
public java.lang.Object instantiateImpl(java.lang.String className, java.lang.String errorTitle)
instantiateImpl
in interface FwkContainerInterface
className
- The name of the class to get an instance from.errorTitle
- The title of the error message.public static java.lang.Object instantiate(java.lang.String className, java.lang.String errorTitle)
public static java.awt.Dimension getScreenSize()
public FwkWindowInterface openFrameImpl(java.lang.String className, boolean flag)
className
- The class name of the applications.flag
- The visible flag of the window.public static FwkWindowInterface openFrame(java.lang.String className)
public static FwkWindowInterface openFrame(java.lang.String className, boolean flag)
public static FwkServiceControlManagerInterface startServiceControlManager(java.lang.String[] args)
args
- A string array containing the arguments.public FwkWindowInterface openFrameImpl(FwkApplicationInterface application, boolean flag)
className
- The class name of the applications.flag
- The visible flag of the window.public static FwkWindowInterface openFrame(FwkApplicationInterface application)
public static FwkWindowInterface openFrame(FwkApplicationInterface application, boolean flag)
public void setLocaleImpl(java.lang.String language, java.lang.String country)
-language en -country US
setLocaleImpl
in interface FwkContainerInterface
language
- The language string.country
- The country string.#java.util.Locale
public static void setLocale(java.lang.String language, java.lang.String country)
public void setLocaleImpl(java.util.Locale l)
-language en -country US
setLocaleImpl
in interface FwkContainerInterface
l
- The new Locale#java.util.Locale
public static void setLocale(java.util.Locale l)
public void showErrorMessageImpl(java.lang.String title, java.lang.String label, java.lang.String label2)
showErrorMessageImpl
in interface FwkContainerInterface
public void showErrorMessageImpl(java.awt.Container container, java.lang.String title, java.lang.String label, java.lang.String label2)
public static void showErrorMessage(java.lang.String title, java.lang.String label, java.lang.String label2)
public static void showErrorMessage(java.awt.Container container, java.lang.String title, java.lang.String label, java.lang.String label2)
public void showErrorMessageImpl(java.awt.Container container, java.lang.String title, java.lang.String label, java.lang.Throwable throwable)
public void showErrorMessageImpl(java.lang.String title, java.lang.String label, java.lang.Throwable throwable)
showErrorMessageImpl
in interface FwkContainerInterface
public static void showErrorMessage(java.lang.String title, java.lang.String label, java.lang.Throwable throwable)
public static void showErrorMessage(java.awt.Container container, java.lang.String title, java.lang.String label, java.lang.Throwable throwable)
public static void beep()
public void printImpl(FwkPrintableInterface printable) throws FwkException
printImpl
in interface FwkContainerInterface
The
- printable object.FwkException
public static void print(FwkPrintableInterface printable) throws FwkException
FwkException
public void printStackTraceImpl()
printStackTraceImpl
in interface FwkContainerInterface
public static void printStackTrace()
public java.lang.String getCallingClassNameImpl(int deep)
public static java.lang.String getCallingClassName(int deep)
public void debugImpl(int level, java.lang.String message)
Level | Description |
---|---|
0 | all messages will be printed |
1 | low level |
2 | |
3 | |
4 | |
5 |
debugImpl
in interface FwkContainerInterface
public static void debug(int level, java.lang.String message)
public void debugImpl(int level, java.lang.String[] message)
debugImpl
in interface FwkContainerInterface
debug(int, String)
public static void debug(int level, java.lang.String[] message)
public int getDebugLevelImpl()
getDebugLevelImpl
in interface FwkContainerInterface
public static int getDebugLevel()
public static boolean isBatchMode()
public java.awt.datatransfer.DataFlavor[] getDataFlavorImpl(java.lang.String mimeType)
getDataFlavorImpl
in interface FwkContainerInterface
mimeType
- The mimetype string.public static java.awt.datatransfer.DataFlavor[] getDataFlavor(java.lang.String mimeType)
public java.awt.datatransfer.DataFlavor[] getDataFlavorsImpl(FwkArrayInterface mimeTypes)
getDataFlavorsImpl
in interface FwkContainerInterface
mimeTypes
- The FWK mimetype array.public static java.awt.datatransfer.DataFlavor[] getDataFlavors(FwkArrayInterface mimeTypes)
public java.awt.datatransfer.DataFlavor[] getDataFlavorsImpl(java.lang.String[] mimeTypes)
getDataFlavorsImpl
in interface FwkContainerInterface
mimeTypes
- The mimetype string array.public static java.awt.datatransfer.DataFlavor[] getDataFlavors(java.lang.String[] mimeTypes)
public java.awt.datatransfer.DataFlavor[] getDataFlavorImpl(java.lang.Class clazz)
getDataFlavorImpl
in interface FwkContainerInterface
clazz
- The class to be introspected.The
- data flavor of the last mime type string of the filed MIMETYPE.public static java.awt.datatransfer.DataFlavor[] getDataFlavor(java.lang.Class clazz)
public java.awt.datatransfer.DataFlavor[] getDataFlavorsImpl(java.lang.Class clazz)
getDataFlavorsImpl
in interface FwkContainerInterface
clazz
- The class to be introspected.The
- data flavor of the last mime type string of the filed MIMETYPE.public static java.awt.datatransfer.DataFlavor[] getDataFlavors(java.lang.Class clazz)
public void registerDropProducerImpl(FwkInfoBusDropProducerInterface producer)
registerDropProducerImpl
in interface FwkContainerInterface
producer
- an infobus data producer.public static void registerDropProducer(FwkInfoBusDropProducerInterface producer)
public int isDropDataFlavorSupportedImpl(java.lang.String infoBusName, java.awt.datatransfer.DataFlavor[] df)
isDropDataFlavorSupportedImpl
in interface FwkContainerInterface
infoBusName
- The name of the infobus.df
- the falvor array to be checked.public static int isDropDataFlavorSupported(java.lang.String infoBusName, java.awt.datatransfer.DataFlavor[] df)
public void createFromDroppedObjectImpl(java.lang.String infoBusName, java.awt.datatransfer.DataFlavor df, java.lang.Object data) throws FwkException
createFromDroppedObjectImpl
in interface FwkContainerInterface
infoBusName
- the name of the bus on that the item should be created,df
- The data flavor of the dropped object.data
- The dropped object.FwkException
public static void createFromDroppedObject(java.lang.String infoBusName, java.awt.datatransfer.DataFlavor df, java.lang.Object data) throws FwkException
FwkException
public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
event
- The property change event.public void installLookAndFeelDefaultsImpl()
installLookAndFeelDefaultsImpl
in interface FwkContainerInterface
public void setLAFImpl(java.lang.String lafName)
setLAFImpl
in interface FwkContainerInterface
name
- The name of the LAF to be installed.public static void setLAF(java.lang.String lafName)
public java.lang.String[] getLAFNamesImpl()
getLAFNamesImpl
in interface FwkContainerInterface
public static java.lang.String[] getLAFNames()
public java.lang.String registerImpl(FwkApplicationInterface appl) throws FwkException
registerImpl
in interface FwkContainerInterface
appl
- The application to be registered.mimeType
- The mimetype string.FwkException
- if the application is eternal and already registered.public static java.lang.String register(FwkApplicationInterface appl) throws FwkException
FwkException
public java.lang.String getUniqueNameImpl(java.lang.String applicationName)
applicationName
- The application base name.public static java.lang.String getUniqueName(java.lang.String applicationName)
public void registerImpl(FwkApplicationInterface appl, java.lang.String mimeType) throws FwkException
registerImpl
in interface FwkContainerInterface
appl
- The application to be registered.mimeType
- The mimetype string.FwkException
- if the application is eternal and already registered.public static void register(FwkApplicationInterface appl, java.lang.String mimeType) throws FwkException
FwkException
public void registerImpl(FwkApplicationInterface appl, java.lang.String[] mimeTypes) throws FwkException
registerImpl
in interface FwkContainerInterface
appl
- The application to be registered.mimeTypes
- The mimetype list.FwkException
- if the application is eternal and already registered.public static void register(FwkApplicationInterface appl, java.lang.String[] mimeTypes) throws FwkException
FwkException
public void registerImpl(FwkApplicationInterface appl, FwkArrayInterface mimeTypes) throws FwkException
registerImpl
in interface FwkContainerInterface
appl
- The application to be registered.mimeTypes
- The mimetype array.FwkException
- if the application is eternal and already registered.public static void register(FwkApplicationInterface appl, FwkArrayInterface mimeTypes) throws FwkException
FwkException
public boolean isRegisteredImpl(FwkApplicationInterface appl)
isRegisteredImpl
in interface FwkContainerInterface
appl
- The application to be checked.public static boolean isRegistered(FwkApplicationInterface appl)
public boolean isRegisteredImpl(java.lang.String applName)
isRegisteredImpl
in interface FwkContainerInterface
applName
- The name of the application to be checked.public static boolean isRegistered(java.lang.String applName)
public void unregisterImpl(FwkApplicationInterface appl)
unregisterImpl
in interface FwkContainerInterface
appl
- The application to be registered.public static void unregister(FwkApplicationInterface appl)
public void exitImpl(int flag)
exitImpl
in interface FwkContainerInterface
flag
- The exit status.public static void exit(int flag)
public long getElapsedTimeImpl()
getElapsedTimeImpl
in interface FwkContainerInterface
public static long getElapsedTime()
public boolean getSystemBooleanImpl(java.lang.String booleanName, boolean defaultBool)
getSystemBooleanImpl
in interface FwkContainerInterface
booleanName
- The requested property name.defaultBool
- The default if no property available or
a security exception occurred.public static boolean getSystemBoolean(java.lang.String booleanName, boolean defaultBool)
public java.lang.String getSystemPropertyImpl(java.lang.String propertyName, java.lang.String defaultValue)
getSystemPropertyImpl
in interface FwkContainerInterface
propertyName
- The requested property name.defaultName
- The default if no property available or
a security exception occurred.public static java.lang.String getSystemProperty(java.lang.String propertyName, java.lang.String defaultValue)
public int getYearImpl()
getYearImpl
in interface FwkContainerInterface
public static int getYear()
public FwkTraceInterface getTracerImpl()
getTracerImpl
in interface FwkContainerInterface
public static FwkTraceInterface getTracer()
public FwkArrayInterface getTraceListenerArrayImpl()
getTraceListenerArrayImpl
in interface FwkContainerInterface
public static FwkArrayInterface getTraceListenerArray()
public void addTraceListenerImpl(FwkTraceListenerInterface listener)
addTraceListenerImpl
in interface FwkContainerInterface
listener
- The trace listener.public static void addTraceListener(FwkTraceListenerInterface listener)
public void removeTraceListenerImpl(FwkTraceListenerInterface listener)
removeTraceListenerImpl
in interface FwkContainerInterface
listener
- The trace listener to be removed.public static void removeTraceListener(FwkTraceListenerInterface listener)
public void fireTraceImpl(FwkTraceEventInterface evt)
fireTraceImpl
in interface FwkContainerInterface
evt
- The trace event.public static void fireTrace(FwkTraceEventInterface evt)
public void setTraceLevelImpl(long level)
setTraceLevelImpl
in interface FwkContainerInterface
the
- new level.public static void setTraceLevel(long level)
public long getTraceLevelImpl()
getTraceLevelImpl
in interface FwkContainerInterface
the
- new level.public static long getTraceLevel()
public void sendTraceImpl(java.lang.Object source, long level, java.lang.String message, java.lang.String host, java.lang.String user)
sendTraceImpl
in interface FwkContainerInterface
public static void sendTrace(java.lang.Object source, long level, java.lang.String message, java.lang.String host, java.lang.String user)
public java.lang.String getHelpIDStringImpl(javax.swing.JComponent comp)
getHelpIDStringImpl
in interface FwkContainerInterface
ev
- The action event source.public static java.lang.String getHelpIDString(javax.swing.JComponent comp)
public javax.help.HelpSet getHelpSetImpl(javax.swing.JComponent comp)
getHelpSetImpl
in interface FwkContainerInterface
comp
- A component. It is possible to save the helpset as client property
under the keyword FwkContainerInterface.HELPSET_KEY.public static javax.help.HelpSet getHelpSet(javax.swing.JComponent comp)
public void zipImpl(java.io.OutputStream out, java.lang.String entry, byte[] arr)
zipImpl
in interface FwkContainerInterface
out
- The output streamentry
- The name of the newly created entry.arr
- The array to be zipped.public static void zip(java.io.OutputStream out, java.lang.String entry, byte[] arr)
public byte[] zipImpl(java.lang.String entry, byte[] arr)
zipImpl
in interface FwkContainerInterface
arr
- The array to be zipped.entry
- The name of the newly created entry.public static byte[] zip(java.lang.String entry, byte[] arr)
public void zipImpl(java.io.InputStream in, java.io.OutputStream out, java.lang.String entry)
zipImpl
in interface FwkContainerInterface
out
- The output streamin
- The input stream.entry
- The name or pattern of the entry(ies) to be unzipped.public static void zip(java.io.InputStream in, java.io.OutputStream out, java.lang.String entry)
public byte[] unzipImpl(java.lang.String entry, byte[] arr)
unzipImpl
in interface FwkContainerInterface
arr
- The array to be unzipped.entry
- The name or pattern of the entry(ies) to be unzipped.public static byte[] unzip(java.lang.String entry, byte[] arr)
public static void main(java.lang.String[] args)