Class CControlPerspectiveResource

java.lang.Object
bibliothek.gui.dock.common.intern.layout.CControlPerspectiveResource
All Implemented Interfaces:
ApplicationResource

public class CControlPerspectiveResource extends Object implements ApplicationResource
An ApplicationResource that emulates reading and writing layouts like CControl would do, but creates CPerspectives instead of actual layouts.
Author:
Benjamin Sigg
  • Constructor Details

    • CControlPerspectiveResource

      public CControlPerspectiveResource(CControlPerspective control)
      Creates a new resource.
      Parameters:
      control - the control which creates the CPerspectives
  • Method Details

    • getSettings

      public SettingsBlop getSettings()
      Gets the settings that were read by this resource.
      Returns:
      the settings that were read
    • setSettings

      public void setSettings(SettingsBlop settings)
      Sets the settings which should be written by this resource.
      Parameters:
      settings - the settings to write
    • write

      public void write(DataOutputStream out) throws IOException
      Description copied from interface: ApplicationResource
      Transforms this resource in a stream of bytes.
      Specified by:
      write in interface ApplicationResource
      Parameters:
      out - the stream to write into
      Throws:
      IOException - if the operation can't be completed
    • read

      public void read(DataInputStream in) throws IOException
      Description copied from interface: ApplicationResource
      Reads the content of this resource from a stream of bytes.
      Specified by:
      read in interface ApplicationResource
      Parameters:
      in - the stream to read from
      Throws:
      IOException - if the operation can't be finished
    • writeXML

      public void writeXML(XElement element)
      Description copied from interface: ApplicationResource
      Writes the contents of this resource in xml format.
      Specified by:
      writeXML in interface ApplicationResource
      Parameters:
      element - the element to write into, the attributes of element should not be changed.
    • readXML

      public void readXML(XElement element)
      Description copied from interface: ApplicationResource
      Reads the contents of this resource from a xml element.
      Specified by:
      readXML in interface ApplicationResource
      Parameters:
      element - the element to read from.