public class CControlPerspectiveResource extends java.lang.Object implements ApplicationResource
ApplicationResource
that emulates reading and writing layouts
like CControl
would do, but creates CPerspective
s instead
of actual layouts.Constructor and Description |
---|
CControlPerspectiveResource(CControlPerspective control)
Creates a new resource.
|
Modifier and Type | Method and Description |
---|---|
SettingsBlop |
getSettings()
Gets the settings that were read by this resource.
|
void |
read(java.io.DataInputStream in)
Reads the content of this resource from a stream of bytes.
|
void |
readXML(XElement element)
Reads the contents of this resource from a xml element.
|
void |
setSettings(SettingsBlop settings)
Sets the settings which should be written by this resource.
|
void |
write(java.io.DataOutputStream out)
Transforms this resource in a stream of bytes.
|
void |
writeXML(XElement element)
Writes the contents of this resource in xml format.
|
public CControlPerspectiveResource(CControlPerspective control)
control
- the control which creates the CPerspective
spublic SettingsBlop getSettings()
public void setSettings(SettingsBlop settings)
settings
- the settings to writepublic void write(java.io.DataOutputStream out) throws java.io.IOException
ApplicationResource
write
in interface ApplicationResource
out
- the stream to write intojava.io.IOException
- if the operation can't be completedpublic void read(java.io.DataInputStream in) throws java.io.IOException
ApplicationResource
read
in interface ApplicationResource
in
- the stream to read fromjava.io.IOException
- if the operation can't be finishedpublic void writeXML(XElement element)
ApplicationResource
writeXML
in interface ApplicationResource
element
- the element to write into, the attributes of
element
should not be changed.public void readXML(XElement element)
ApplicationResource
readXML
in interface ApplicationResource
element
- the element to read from.