Class CControlPerspectiveResource
java.lang.Object
bibliothek.gui.dock.common.intern.layout.CControlPerspectiveResource
- All Implemented Interfaces:
ApplicationResource
An
ApplicationResource that emulates reading and writing layouts
like CControl would do, but creates CPerspectives instead
of actual layouts.- Author:
- Benjamin Sigg
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new resource. -
Method Summary
Modifier and TypeMethodDescriptionGets the settings that were read by this resource.voidread(DataInputStream in) Reads the content of this resource from a stream of bytes.voidReads the contents of this resource from a xml element.voidsetSettings(SettingsBlop settings) Sets the settings which should be written by this resource.voidwrite(DataOutputStream out) Transforms this resource in a stream of bytes.voidWrites the contents of this resource in xml format.
-
Constructor Details
-
CControlPerspectiveResource
Creates a new resource.- Parameters:
control- the control which creates theCPerspectives
-
-
Method Details
-
getSettings
Gets the settings that were read by this resource.- Returns:
- the settings that were read
-
setSettings
Sets the settings which should be written by this resource.- Parameters:
settings- the settings to write
-
write
Description copied from interface:ApplicationResourceTransforms this resource in a stream of bytes.- Specified by:
writein interfaceApplicationResource- Parameters:
out- the stream to write into- Throws:
IOException- if the operation can't be completed
-
read
Description copied from interface:ApplicationResourceReads the content of this resource from a stream of bytes.- Specified by:
readin interfaceApplicationResource- Parameters:
in- the stream to read from- Throws:
IOException- if the operation can't be finished
-
writeXML
Description copied from interface:ApplicationResourceWrites the contents of this resource in xml format.- Specified by:
writeXMLin interfaceApplicationResource- Parameters:
element- the element to write into, the attributes ofelementshould not be changed.
-
readXML
Description copied from interface:ApplicationResourceReads the contents of this resource from a xml element.- Specified by:
readXMLin interfaceApplicationResource- Parameters:
element- the element to read from.
-