|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ctdp.rfdynhud.properties.Property
net.ctdp.rfdynhud.properties.StringProperty
net.ctdp.rfdynhud.properties.ImageProperty
public class ImageProperty
The ImageProperty
serves for customizing an image.
Field Summary | |
---|---|
static boolean |
DEFAULT_NO_IMAGE_ALOWED
|
Constructor Summary | |
---|---|
ImageProperty(java.lang.String name,
java.lang.String defaultValue)
|
|
ImageProperty(java.lang.String name,
java.lang.String defaultValue,
boolean readonly)
|
|
ImageProperty(java.lang.String name,
java.lang.String nameForDisplay,
java.lang.String defaultValue)
|
|
ImageProperty(java.lang.String name,
java.lang.String nameForDisplay,
java.lang.String defaultValue,
boolean readonly,
boolean noImageAllowed)
|
Method Summary | |
---|---|
ImageTemplate |
getImage()
Gets the ImageTemplate defined by this ImageProperty . |
java.lang.String |
getImageName()
Gets the currently selected image name. |
boolean |
getNoImageAllowed()
Gets whether "no image" is allowed for this property. |
boolean |
isNoImage()
Gets whether this property is set to "no image". |
void |
loadValue(PropertyLoader loader,
java.lang.String value)
Loads the value from the configuration file. |
void |
setImageName(java.lang.String imageName)
Sets the image name. |
Methods inherited from class net.ctdp.rfdynhud.properties.StringProperty |
---|
getStringValue, getValue, onKeeperSet, onValueChanged, setStringValue, setStringValue, setValue |
Methods inherited from class net.ctdp.rfdynhud.properties.Property |
---|
getButtonText, getButtonTooltip, getDocumentationSource, getEditorType, getKeeper, getName, getNameForDisplay, getValueForConfigurationFile, isMatchingKey, isReadOnly, onButtonClicked, quoteValueInConfigurationFile, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final boolean DEFAULT_NO_IMAGE_ALOWED
Constructor Detail |
---|
public ImageProperty(java.lang.String name, java.lang.String nameForDisplay, java.lang.String defaultValue, boolean readonly, boolean noImageAllowed)
name
- the technical name used internally. See Property.getName()
.nameForDisplay
- the name displayed in the editor. See Property.getNameForDisplay()
. If null
is passed, the value of the name parameter is used.defaultValue
- the default valuereadonly
- read only property?noImageAllowed
- allow "no image" for this property?public ImageProperty(java.lang.String name, java.lang.String nameForDisplay, java.lang.String defaultValue)
name
- the technical name used internally. See Property.getName()
.nameForDisplay
- the name displayed in the editor. See Property.getNameForDisplay()
. If null
is passed, the value of the name parameter is used.defaultValue
- the default valuepublic ImageProperty(java.lang.String name, java.lang.String defaultValue, boolean readonly)
name
- the technical name used internally. See Property.getName()
. 'nameForDisplay' is set to the same value.defaultValue
- the default valuereadonly
- read only property?public ImageProperty(java.lang.String name, java.lang.String defaultValue)
name
- the technical name used internally. See Property.getName()
. 'nameForDisplay' is set to the same value.defaultValue
- the default valueMethod Detail |
---|
public final boolean getNoImageAllowed()
public final void setImageName(java.lang.String imageName)
imageName
- public final java.lang.String getImageName()
public final boolean isNoImage()
public final ImageTemplate getImage()
ImageTemplate
defined by this ImageProperty
.
ImageTemplate
defined by this ImageProperty
or null
, if set to no image.public void loadValue(PropertyLoader loader, java.lang.String value)
loadValue
in class StringProperty
loader
- the loadervalue
- the value to load
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |