|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.substance.utils.params.PropertiesFileParamReader
public class PropertiesFileParamReader
Reads the properties from a local file. This class is for internal use only.
Field Summary | |
---|---|
protected java.util.Properties |
props
Parser for the local file. |
Constructor Summary | |
---|---|
PropertiesFileParamReader(java.lang.String configFile)
Creates a new local file reader. |
Method Summary | |
---|---|
java.lang.String |
getBorderPainterProperty()
Returns the value that specifies the global Substance border painter. |
java.lang.String |
getButtonShaperProperty()
Returns the value that specifies the global Substance button shaper. |
java.lang.String |
getGradientPainterProperty()
Returns the value that specifies the global Substance gradient painter. |
java.lang.String |
getThemeProperty()
Returns the value that specifies the global Substance theme. |
java.lang.String |
getTitlePainterProperty()
Returns the value that specifies the global Substance title painter. |
java.lang.String |
getTraceFileNameProperty()
Returns the name of the trace file. |
SubstanceConstants.ImageWatermarkKind |
getWatermarkImageKindProperty()
Returns the value that specifies the kind of image-based watermark. |
java.lang.Float |
getWatermarkImageOpacityProperty()
Returns the value that specifies the opacity of image-based watermark. |
java.lang.String |
getWatermarkImageProperty()
Returns the value that specifies the image location for image-based watermark. |
java.lang.String |
getWatermarkProperty()
Returns the value that specifies the global Substance watermark. |
boolean |
isDebugUiMode()
Returns the indication whether Substance is running the application under debug UI mode. |
boolean |
toBleedWatermark()
Returns indication whether the watermark should "bleed" through usuallu opaque controls, such as trees, lists, tables and text controls (text field, text area, etc). |
boolean |
toEnableInvertedThemes()
Returns the indication whether Substance should enable inverted color themes. |
boolean |
toEnableNegatedThemes()
Returns the indication whether Substance should enable negated color themes. |
boolean |
toShowExtraElementProperty()
Returns the indication whether Substance can add additional UI elements (such as system menu items, menu search panel). |
java.lang.String |
toShowHeapStatusPanelProperty()
Returns the indication for showing the heap status panel in the custom-decorated title panes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Properties props
Constructor Detail |
---|
public PropertiesFileParamReader(java.lang.String configFile)
configFile
- Location of the configuration file.Method Detail |
---|
public java.lang.String getButtonShaperProperty()
ParamReader
null
, should be a fully-qualified class
name of a class that implements SubstanceButtonShaper
.
getButtonShaperProperty
in interface ParamReader
null
, should be a fully-qualified
class name of a class that implements
SubstanceButtonShaper
.public java.lang.String getGradientPainterProperty()
ParamReader
null
, should be a fully-qualified class
name of a class that implements SubstanceGradientPainter
.
getGradientPainterProperty
in interface ParamReader
null
, should be a fully-qualified
class name of a class that implements
SubstanceGradientPainter
.public java.lang.String getTitlePainterProperty()
ParamReader
null
, should be a fully-qualified class
name of a class that implements SubstanceTitlePainter
.
getTitlePainterProperty
in interface ParamReader
null
, should be a fully-qualified
class name of a class that implements
SubstanceTitlePainter
.public java.lang.String getBorderPainterProperty()
ParamReader
null
, should be a fully-qualified class
name of a class that implements SubstanceBorderPainter
.
getBorderPainterProperty
in interface ParamReader
null
, should be a fully-qualified
class name of a class that implements
SubstanceBorderPainter
.public java.lang.String getThemeProperty()
ParamReader
null
, should be a fully-qualified class name of a
class that extends SubstanceTheme
.
getThemeProperty
in interface ParamReader
null
, should be a fully-qualified class name
of a class that extends SubstanceTheme
.public java.lang.String getTraceFileNameProperty()
ParamReader
getTraceFileNameProperty
in interface ParamReader
null
, the tracing mechanism will not be
activated.public java.lang.String getWatermarkProperty()
ParamReader
null
, should be a fully-qualified class name of a
class that implements SubstanceWatermark
.
getWatermarkProperty
in interface ParamReader
null
, should be a fully-qualified class
name of a class that implements SubstanceWatermark
.public java.lang.String getWatermarkImageProperty()
ParamReader
ParamReader.getWatermarkProperty()
returns the class name of
SubstanceImageWatermark
. The value can point at either the local
file or remote HTTP-based file.
getWatermarkImageProperty
in interface ParamReader
public boolean toBleedWatermark()
ParamReader
toBleedWatermark
in interface ParamReader
public boolean toShowExtraElementProperty()
ParamReader
toShowExtraElementProperty
in interface ParamReader
true
if Substance can add additional UI
elements (such as system menu items, menu search panel),
false
otherwise.public boolean isDebugUiMode()
ParamReader
isDebugUiMode
in interface ParamReader
true
if Substance is running the
application under debug UI mode, false
otherwise.public java.lang.String toShowHeapStatusPanelProperty()
ParamReader
null
, no
heap status panel will be shown, if the value is an empty string, the
heap status panel will be shown. Otherwise, the value is taken to be the
filename for logging the heap status information (and the heap status
panel will be shown).
toShowHeapStatusPanelProperty
in interface ParamReader
null
, no heap status panel
will be shown.
public boolean toEnableInvertedThemes()
ParamReader
toEnableInvertedThemes
in interface ParamReader
true
if Substance should enable inverted
color themes, false
otherwise.public boolean toEnableNegatedThemes()
ParamReader
toEnableNegatedThemes
in interface ParamReader
true
if Substance should enable negated
color themes, false
otherwise.public SubstanceConstants.ImageWatermarkKind getWatermarkImageKindProperty()
ParamReader
ParamReader.getWatermarkProperty()
returns the
class name of SubstanceImageWatermark
.
getWatermarkImageKindProperty
in interface ParamReader
public java.lang.Float getWatermarkImageOpacityProperty()
ParamReader
ParamReader.getWatermarkProperty()
returns the class name of SubstanceImageWatermark
.
getWatermarkImageOpacityProperty
in interface ParamReader
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |