Class CockpitDesign

  • All Implemented Interfaces:
    java.lang.Iterable<CockpitControl>

    public class CockpitDesign
    extends java.lang.Object
    implements java.lang.Iterable<CockpitControl>
    Represents the Cockpit tab of the Cockpit object.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected CockpitDesign​(com.uc4.util.XMLDocument doc)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      CockpitControl getControl​(int id)
      Return the CockpitControl with the specified id.
      int getHeight()
      Returns the height of the cockpit form.
      int getWidth()
      Returns the width of the cockpit form.
      java.util.Iterator<CockpitControl> iterator()  
      int size()
      Returns the number of CockpitControl objects.
      protected void store​(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • CockpitDesign

        protected CockpitDesign​(com.uc4.util.XMLDocument doc)
    • Method Detail

      • store

        protected void store​(com.uc4.util.XMLDocument doc,
                             org.w3c.dom.Element request)
      • size

        public int size()
        Returns the number of CockpitControl objects. CockpitControl elements inside a CockpitFrame are not considered.
        Returns:
        Number of controls.
      • getControl

        public CockpitControl getControl​(int id)
        Return the CockpitControl with the specified id.
        Parameters:
        id - Id of control
        Returns:
        CockpitControl with the given id, or null if the control with the given id doesn't exists.
      • getHeight

        public int getHeight()
        Returns the height of the cockpit form.
        Returns:
        height
      • getWidth

        public int getWidth()
        Returns the width of the cockpit form.
        Returns:
        width