Class Segment


  • public class Segment
    extends java.lang.Object
    Define the content of a Segment record.
    • Constructor Summary

      Constructors 
      Constructor Description
      Segment​(int layoutId)
      Create a new segment with default values.
      Segment​(int segmentId, int layoutId, java.lang.String segmentName)  
    • Constructor Detail

      • Segment

        public Segment​(int layoutId)
        Create a new segment with default values.
        Parameters:
        layoutId - The parent layout id.
        Throws:
        java.lang.IllegalArgumentException - SEGMENT_ADD_FAIL
      • Segment

        public Segment​(int segmentId,
                       int layoutId,
                       java.lang.String segmentName)
    • Method Detail

      • getCopy

        public Segment getCopy​(int layoutId)
        Make a copy of the segment.
        Parameters:
        layoutId - The new layoutId, if zero use the current layout id.
        Returns:
        a new segment instance.
      • setSegmentName

        public void setSegmentName​(java.lang.String newName)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object