Package adams.gui.laf
Class AbstractSimpleLookAndFeel
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.laf.AbstractLookAndFeel
-
- adams.gui.laf.AbstractSimpleLookAndFeel
-
- All Implemented Interfaces:
LoggingSupporter
,SizeOfHandler
,Serializable
- Direct Known Subclasses:
CrossPlatform
,GTK
,Windows
public abstract class AbstractSimpleLookAndFeel extends AbstractLookAndFeel
Ancestor for look and feels that only require a classname.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.gui.laf.AbstractLookAndFeel
FILENAME, KEY_LOOKANDFEEL, m_Current
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description AbstractSimpleLookAndFeel()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
doInstall()
Installs the look and feel.protected abstract String
getLookAndFeelClassname()
Returns the classname of the look and feel to use.boolean
isAvailable()
Checks whether the look and feel is available.-
Methods inherited from class adams.gui.laf.AbstractLookAndFeel
getCurrent, getLookAndFeels, getName, getPropertiesFilename, install, installLookAndFeel, installLookAndFeel
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
getLookAndFeelClassname
protected abstract String getLookAndFeelClassname()
Returns the classname of the look and feel to use.- Returns:
- the classname
-
isAvailable
public boolean isAvailable()
Checks whether the look and feel is available.- Specified by:
isAvailable
in classAbstractLookAndFeel
- Returns:
- true if available
-
doInstall
public void doInstall() throws Exception
Installs the look and feel.- Specified by:
doInstall
in classAbstractLookAndFeel
- Throws:
Exception
- if installation fails
-
-