Package bibliothek.gui.dock.facile.mode
Class LocationSettingConverter
java.lang.Object
bibliothek.gui.dock.facile.mode.LocationSettingConverter
- All Implemented Interfaces:
ModeSettingsConverter<Location,Location>
public class LocationSettingConverter
extends Object
implements ModeSettingsConverter<Location,Location>
A
ModeSettingsConverter for the LocationModeManager.- Author:
- Benjamin Sigg
-
Constructor Summary
ConstructorsConstructorDescriptionLocationSettingConverter(PropertyTransformer transformer) Creates a new converter.LocationSettingConverter(DockController controller) Creates a new converter. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFactory(DockablePropertyFactory factory) Adds an additional factory to this converter, needed to read and writeDockablePropertys.Converts a property from the inside world into the world outside.Converts a property from the outside world into the world of this setting.Reads a single property.readPropertyXML(XElement element) Reads a single property.voidwriteProperty(Location element, DataOutputStream out) Writes a single property of this setting.voidwritePropertyXML(Location b, XElement element) Writes a single property as xml element.
-
Constructor Details
-
LocationSettingConverter
Creates a new converter.- Parameters:
controller- the controller in whose realm settings need to be converted
-
LocationSettingConverter
Creates a new converter.- Parameters:
transformer- transformer used to readDockablePropertys.
-
-
Method Details
-
addFactory
Adds an additional factory to this converter, needed to read and writeDockablePropertys.- Parameters:
factory- the additional factory
-
convertToSetting
Description copied from interface:ModeSettingsConverterConverts a property from the inside world into the world outside.- Specified by:
convertToSettingin interfaceModeSettingsConverter<Location,Location> - Parameters:
a- the property from inside- Returns:
- a property from outside
-
convertToWorld
Description copied from interface:ModeSettingsConverterConverts a property from the outside world into the world of this setting.- Specified by:
convertToWorldin interfaceModeSettingsConverter<Location,Location> - Parameters:
b- a property from outside- Returns:
- a property from inside
-
writeProperty
Description copied from interface:ModeSettingsConverterWrites a single property of this setting.- Specified by:
writePropertyin interfaceModeSettingsConverter<Location,Location> - Parameters:
element- the property to writeout- the stream to write into- Throws:
IOException- if an I/O-error occurs
-
readProperty
Description copied from interface:ModeSettingsConverterReads a single property.- Specified by:
readPropertyin interfaceModeSettingsConverter<Location,Location> - Parameters:
in- the stream to read from- Returns:
- the property that has been read.
- Throws:
IOException- if an I/O-error occurs
-
writePropertyXML
Description copied from interface:ModeSettingsConverterWrites a single property as xml element.- Specified by:
writePropertyXMLin interfaceModeSettingsConverter<Location,Location> - Parameters:
b- the property to writeelement- the element to write into, the attributes of the element must not be changed
-
readPropertyXML
Description copied from interface:ModeSettingsConverterReads a single property.- Specified by:
readPropertyXMLin interfaceModeSettingsConverter<Location,Location> - Parameters:
element- the element to read the property from- Returns:
- the new property
-