Package com.uc4.api.objects
Class CockpitDesign
- java.lang.Object
-
- com.uc4.api.objects.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 theCockpit
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 theCockpitControl
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 ofCockpitControl
objects.protected void
store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
-
-
-
Method Detail
-
store
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element request)
-
iterator
public java.util.Iterator<CockpitControl> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<CockpitControl>
-
size
public int size()
Returns the number ofCockpitControl
objects.CockpitControl
elements inside aCockpitFrame
are not considered.- Returns:
- Number of controls.
-
getControl
public CockpitControl getControl(int id)
Return theCockpitControl
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
-
-