public class CControlPerspectiveResource extends Object implements ApplicationResource
ApplicationResource that emulates reading and writing layouts
like CControl would do, but creates CPerspectives 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(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(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 CPerspectivespublic SettingsBlop getSettings()
public void setSettings(SettingsBlop settings)
settings - the settings to writepublic void write(DataOutputStream out) throws IOException
ApplicationResourcewrite in interface ApplicationResourceout - the stream to write intoIOException - if the operation can't be completedpublic void read(DataInputStream in) throws IOException
ApplicationResourceread in interface ApplicationResourcein - the stream to read fromIOException - if the operation can't be finishedpublic void writeXML(XElement element)
ApplicationResourcewriteXML in interface ApplicationResourceelement - the element to write into, the attributes of
element should not be changed.public void readXML(XElement element)
ApplicationResourcereadXML in interface ApplicationResourceelement - the element to read from.Copyright © 2018. All rights reserved.