Class CockpitDesign

java.lang.Object
com.uc4.api.objects.CockpitDesign
All Implemented Interfaces:
Iterable<CockpitControl>

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

    • CockpitDesign

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

    • store

      protected void store(com.uc4.util.XMLDocument doc, Element request)
    • iterator

      public Iterator<CockpitControl> iterator()
      Specified by:
      iterator in interface Iterable<CockpitControl>
    • 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