com.swfm.mica.sys
Class MiSystem

java.lang.Object
  extended bycom.swfm.mica.sys.MiSystem

public class MiSystem
extends java.lang.Object

Version:
%I% %G%
Author:
Michael L. Davis

Field Summary
static java.lang.String Mi_APPLET_OUTPUTSTREAM_ADDRESS
           
static java.lang.String Mi_CURRENT_DIRECTORY
           
static java.lang.String Mi_DEFAULT_ATTRIBUTES_PROPERTY_NAME
           
static java.lang.String Mi_DEFAULT_TOOLKIT_ATTRIBUTES_PROPERTY_NAME
           
static java.lang.String Mi_HOME
           
static java.lang.String Mi_IMAGES_HOME
           
static java.lang.String Mi_LIMIT_TABLE_SIZES
           
static java.lang.String Mi_MICA_DEFAULT_PROPERTIES_FILENAME
           
static java.lang.String Mi_MICA_PROPERTIES_FILENAME
           
static java.lang.String Mi_PALETTES_DIRECTORY
           
static java.lang.String Mi_THEME_HOME
           
static java.lang.String Mi_VERSION
           
 
Constructor Summary
MiSystem()
           
MiSystem(java.applet.Applet applet)
           
MiSystem(java.applet.Applet applet, java.lang.String[] args)
           
 
Method Summary
static void addWindow(MiNativeWindow window)
           
static void applyClassPropertyValues(MiPart target, java.lang.String className)
           
static void applyClassPropertyValues(MiWidget target, java.lang.String className)
           
static java.applet.Applet getApplet()
           
static java.util.Properties getApplicationDefaultProperties()
           
static java.applet.AudioClip getAudioClip(java.lang.String filename)
           
static MiClipBoard getClipBoard()
           
static MiiCommandBuilder getCommandBuilder()
           
static MiPart getCompanyLogo()
           
static MiCustomLookAndFeelManager getCustomLookAndFeelManager()
           
static MiJDKAPIComponentType getDefaultJDKAPIComponentType()
           
static boolean getFileNamesIgnoreCase()
           
static MiHelpManager getHelpManager()
           
static MiiSystemIOManager getIOManager()
           
static double getJDKVersion()
           
static java.util.Properties getMicaDefaultProperties()
           
static java.lang.String getNameOfAttributeValue(java.lang.String[] possibleAttributeValueNames, int attributeValue)
           
static MiPrint getPrinter()
           
static java.util.Properties getProperties()
           
static OrderedProperties getPropertiesForClass(java.lang.String className)
           
static java.lang.String getProperty(java.lang.String key)
           
static java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
           
static MiAttributes getPropertyAttributes(java.lang.String name)
           
static java.awt.Color getPropertyColor(java.lang.String name)
           
static java.lang.String getPropertyOrKey(java.lang.String key)
           
static MiPart getPropertyPart(java.lang.String name)
           
static java.io.InputStream getResourceAsStream(java.lang.String resourceName)
           
static MiThemeManager getThemeManager()
           
static MiTransactionManager getTransactionManager()
           
static int getValueOfAttributeValueName(java.lang.String valueName)
           
static MiTransactionManager getViewportTransactionManager()
           
static MiParts getWindows()
           
static void init()
           
static void init(java.applet.Applet applet)
           
static void init(java.lang.String debugLogFilename)
           
static void init(java.lang.String[] args)
           
static boolean isApplet()
           
static boolean isMacroSubstitutionDisabled()
           
static boolean isMSWindows()
           
static boolean isPC()
           
static boolean isThrowingExceptionsWhenPropertyChangeVetoed()
           
static void loadPropertiesFile(java.lang.String filename)
           
static void removeProperty(java.lang.String name)
           
static void removeWindow(MiNativeWindow window)
           
static void setApplicationDefaultProperties(Pair[] properties)
           
static void setApplicationDefaultProperty(java.lang.String name, java.lang.String value)
           
static void setCommandBuilder(MiiCommandBuilder builder)
          Used to override the default undoable commands used by various parts of the system
static void setCompanyLogo(MiPart logo)
           
static void setDefaultJDKAPIComponentType(MiJDKAPIComponentType version)
           
static void setIOManager(MiiSystemIOManager manager)
           
static void setIsThrowingExceptionsWhenPropertyChangeVetoed(boolean flag)
           
static void setMacroSubstitutionDisabled(boolean flag)
           
static void setMicaDefaultProperty(java.lang.String name, java.lang.String value)
           
static void setProperties(java.io.InputStream stream)
           
static void setProperties(Pair[] nameValuePairs)
           
static void setProperty(java.lang.String name, java.lang.String value)
           
static void setPropertyAttributes(java.lang.String name, MiAttributes atts)
           
static void setPropertyColor(java.lang.String name, java.awt.Color color)
           
static void setPropertyPart(java.lang.String name, MiPart part)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Mi_DEFAULT_ATTRIBUTES_PROPERTY_NAME

public static final java.lang.String Mi_DEFAULT_ATTRIBUTES_PROPERTY_NAME
See Also:
Constant Field Values

Mi_DEFAULT_TOOLKIT_ATTRIBUTES_PROPERTY_NAME

public static final java.lang.String Mi_DEFAULT_TOOLKIT_ATTRIBUTES_PROPERTY_NAME
See Also:
Constant Field Values

Mi_MICA_DEFAULT_PROPERTIES_FILENAME

public static final java.lang.String Mi_MICA_DEFAULT_PROPERTIES_FILENAME
See Also:
Constant Field Values

Mi_MICA_PROPERTIES_FILENAME

public static final java.lang.String Mi_MICA_PROPERTIES_FILENAME
See Also:
Constant Field Values

Mi_HOME

public static final java.lang.String Mi_HOME
See Also:
Constant Field Values

Mi_IMAGES_HOME

public static final java.lang.String Mi_IMAGES_HOME
See Also:
Constant Field Values

Mi_THEME_HOME

public static final java.lang.String Mi_THEME_HOME
See Also:
Constant Field Values

Mi_CURRENT_DIRECTORY

public static final java.lang.String Mi_CURRENT_DIRECTORY
See Also:
Constant Field Values

Mi_PALETTES_DIRECTORY

public static final java.lang.String Mi_PALETTES_DIRECTORY
See Also:
Constant Field Values

Mi_APPLET_OUTPUTSTREAM_ADDRESS

public static final java.lang.String Mi_APPLET_OUTPUTSTREAM_ADDRESS
See Also:
Constant Field Values

Mi_VERSION

public static final java.lang.String Mi_VERSION
See Also:
Constant Field Values

Mi_LIMIT_TABLE_SIZES

public static final java.lang.String Mi_LIMIT_TABLE_SIZES
See Also:
Constant Field Values
Constructor Detail

MiSystem

public MiSystem()

MiSystem

public MiSystem(java.applet.Applet applet)

MiSystem

public MiSystem(java.applet.Applet applet,
                java.lang.String[] args)
Method Detail

init

public static void init(java.lang.String debugLogFilename)

init

public static void init()

init

public static void init(java.lang.String[] args)

init

public static void init(java.applet.Applet applet)

setMacroSubstitutionDisabled

public static void setMacroSubstitutionDisabled(boolean flag)

isMacroSubstitutionDisabled

public static boolean isMacroSubstitutionDisabled()

setCommandBuilder

public static void setCommandBuilder(MiiCommandBuilder builder)
Used to override the default undoable commands used by various parts of the system


getCommandBuilder

public static MiiCommandBuilder getCommandBuilder()

getWindows

public static MiParts getWindows()

addWindow

public static void addWindow(MiNativeWindow window)

removeWindow

public static void removeWindow(MiNativeWindow window)

loadPropertiesFile

public static void loadPropertiesFile(java.lang.String filename)

getIOManager

public static MiiSystemIOManager getIOManager()

setIOManager

public static void setIOManager(MiiSystemIOManager manager)

getResourceAsStream

public static java.io.InputStream getResourceAsStream(java.lang.String resourceName)

isMSWindows

public static boolean isMSWindows()

isPC

public static boolean isPC()

getDefaultJDKAPIComponentType

public static MiJDKAPIComponentType getDefaultJDKAPIComponentType()

setDefaultJDKAPIComponentType

public static void setDefaultJDKAPIComponentType(MiJDKAPIComponentType version)

getJDKVersion

public static double getJDKVersion()

getFileNamesIgnoreCase

public static boolean getFileNamesIgnoreCase()

isThrowingExceptionsWhenPropertyChangeVetoed

public static boolean isThrowingExceptionsWhenPropertyChangeVetoed()

setIsThrowingExceptionsWhenPropertyChangeVetoed

public static void setIsThrowingExceptionsWhenPropertyChangeVetoed(boolean flag)

isApplet

public static boolean isApplet()

setCompanyLogo

public static void setCompanyLogo(MiPart logo)

getCompanyLogo

public static MiPart getCompanyLogo()

getClipBoard

public static MiClipBoard getClipBoard()

getThemeManager

public static MiThemeManager getThemeManager()

getCustomLookAndFeelManager

public static MiCustomLookAndFeelManager getCustomLookAndFeelManager()

getTransactionManager

public static MiTransactionManager getTransactionManager()

getViewportTransactionManager

public static MiTransactionManager getViewportTransactionManager()

getPrinter

public static MiPrint getPrinter()

getHelpManager

public static MiHelpManager getHelpManager()

getValueOfAttributeValueName

public static int getValueOfAttributeValueName(java.lang.String valueName)

getNameOfAttributeValue

public static java.lang.String getNameOfAttributeValue(java.lang.String[] possibleAttributeValueNames,
                                                       int attributeValue)

getProperty

public static java.lang.String getProperty(java.lang.String key)

getProperty

public static java.lang.String getProperty(java.lang.String key,
                                           java.lang.String defaultValue)

getPropertyOrKey

public static java.lang.String getPropertyOrKey(java.lang.String key)

removeProperty

public static void removeProperty(java.lang.String name)

setProperty

public static void setProperty(java.lang.String name,
                               java.lang.String value)

getProperties

public static java.util.Properties getProperties()

getPropertiesForClass

public static OrderedProperties getPropertiesForClass(java.lang.String className)

setPropertyPart

public static void setPropertyPart(java.lang.String name,
                                   MiPart part)

getPropertyPart

public static MiPart getPropertyPart(java.lang.String name)

setPropertyColor

public static void setPropertyColor(java.lang.String name,
                                    java.awt.Color color)

getPropertyColor

public static java.awt.Color getPropertyColor(java.lang.String name)

setPropertyAttributes

public static void setPropertyAttributes(java.lang.String name,
                                         MiAttributes atts)

getPropertyAttributes

public static MiAttributes getPropertyAttributes(java.lang.String name)

setProperties

public static void setProperties(Pair[] nameValuePairs)

setProperties

public static void setProperties(java.io.InputStream stream)

getMicaDefaultProperties

public static java.util.Properties getMicaDefaultProperties()

setMicaDefaultProperty

public static void setMicaDefaultProperty(java.lang.String name,
                                          java.lang.String value)

getApplicationDefaultProperties

public static java.util.Properties getApplicationDefaultProperties()

setApplicationDefaultProperties

public static void setApplicationDefaultProperties(Pair[] properties)

setApplicationDefaultProperty

public static void setApplicationDefaultProperty(java.lang.String name,
                                                 java.lang.String value)

applyClassPropertyValues

public static void applyClassPropertyValues(MiPart target,
                                            java.lang.String className)

applyClassPropertyValues

public static void applyClassPropertyValues(MiWidget target,
                                            java.lang.String className)

getAudioClip

public static java.applet.AudioClip getAudioClip(java.lang.String filename)

getApplet

public static java.applet.Applet getApplet()