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 theCockpitobject.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCockpitDesign(com.uc4.util.XMLDocument doc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CockpitControlgetControl(int id)Return theCockpitControlwith the specified id.intgetHeight()Returns the height of the cockpit form.intgetWidth()Returns the width of the cockpit form.java.util.Iterator<CockpitControl>iterator()intsize()Returns the number ofCockpitControlobjects.protected voidstore(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:
iteratorin interfacejava.lang.Iterable<CockpitControl>
-
size
public int size()
Returns the number ofCockpitControlobjects.CockpitControlelements inside aCockpitFrameare not considered.- Returns:
- Number of controls.
-
getControl
public CockpitControl getControl(int id)
Return theCockpitControlwith the specified id.- Parameters:
id- Id of control- Returns:
- CockpitControl with the given id, or
nullif 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
-
-