Interface GeneralProperties

All Known Implementing Classes:
AbstractFontElement, AbstractLineElement, AbstractPictureElement, AbstractValueElement, Box, Chart2, CrossTab, DatabasePicture, Element, FieldElement, FieldPart, JavaBean, Line, Paragraph, Picture, SignatureForm, Subreport, Text, TextPart

public interface GeneralProperties
Interface for all elements that can be inserted into sections.

This class is part of the RDC.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The horizontal alignment will be centered.
    static final int
    The horizontal alignment will be the system default, i.e.
    static final int
    The horizontal alignment will be justified.
    static final int
    The horizontal alignment will be left aligned.
    static final int
    The horizontal alignment will be right.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the property 'can grow count'.
    This property gives the maximum numbers of lines that a Text or a FieldElement can grow.
    Returns the formula of the property 'can grow'.
    If this property is enabled, elements with dynamic state will be expanded vertically if its content is larger than its container.
    int
    Returns the value of the property 'horizontal alignment'.
    Possible alignments are default, left, center, right or justified.
    Returns the formula for the property 'horizontal alignment'.
    Possible alignments are default, left, center, right or justified.
    Returns the formula for the property 'keep together'.
    If this property is enabled, the element will not printed over more than one page.
    Returns the formula for the property 'suppress'.
    Returns the formula for the property 'suppress if duplicated'.
    If this property is enabled, values of the field that are duplicated will not be printed.
    Returns the value of the property 'tool tips text'.
    The 'tool tips text' specifies a text which appear after short time slice when you move your mouse on the element.
    Returns the formula of the property 'tool tips text'.
    The 'tool tips text' specifies a text which appear after short time slice when you move your mouse on the element.
    boolean
    Returns the value of the property 'can grow'.
    If this property is enabled, elements with dynamic state will be expanded vertically if its content is larger than its container.
    boolean
    Returns the value of the property 'keep together'.
    If this property is enabled, the element will not printed over more than one page.
    boolean
    Returns the value of the property 'suppress'.
    Set this property if you do not want the section to print, but you do not want to keep the section content available for drill down.
    boolean
    Returns the value of the property 'suppress if duplicated'.
    If this property is enabled, values of the field that are duplicated will not be printed.
    void
    setCanGrow(boolean canGrow)
    Sets the value of the property 'can grow'.
    If this property is enabled, elements with dynamic state will be expanded vertically if its content is larger than its container.
    void
    setCanGrowCount(int newValue)
    Sets the value of the property 'can grow count'.
    This property gives the maximum numbers of lines that a Text or a FieldElement can grow.
    void
    Sets the formula for the property 'can grow'.
    If this property is enabled, elements with dynamic state will be expanded vertically if its content is larger than its container.
    void
    setHorAlign(int value)
    Sets the value of the property 'horizontal alignment'.
    Possible alignments are default, left, center, right or justified.
    void
    Sets the formula for the property 'horizontal alignment'.
    Possible alignments are default, left, center, right or justified.
    void
    setKeepTogether(boolean newValue)
    Sets the value of the property 'keep together'.
    If this property is enabled, the element will not printed over more than one page.
    void
    Sets the formula for the property 'keep together'.
    If this property is enabled, the element will not printed over more than one page.
    void
    setSuppress(boolean newValue)
    Sets the value of the property 'suppress'.
    Set this property if you do not want the section to print, but you dont't want to keep the section content available for drill down.
    void
    Sets the formula for the property 'suppress'.
    Use this property to change the visibility of the element when printing dynamically.
    void
    setSuppressIfDuplicated(boolean newValue)
    Sets the value of the property 'suppress if duplicated'.
    If this property is enabled values of the field that are duplicated will not be printed.
    void
    Sets the formula for the property 'suppress if duplicated'.
    If this property is enabled, values of the field that are duplicated will not be printed.
    void
    Sets the value of the property 'tool tips text'.
    The 'tool tips text' specifies a text which appear after short time slice when you move your mouse on the element.
    void
    Sets the formula for the property 'tool tips text'.
    The 'tool tips text' specifies a text which appear after short time slice when you move your mouse on the element.
  • Field Details

    • ALIGN_HORIZONTAL_DEFAULT

      static final int ALIGN_HORIZONTAL_DEFAULT
      The horizontal alignment will be the system default, i.e. ALIGN_HORIZONTAL_LEFT
      Since:
      7.0
      See Also:
    • ALIGN_HORIZONTAL_LEFT

      static final int ALIGN_HORIZONTAL_LEFT
      The horizontal alignment will be left aligned.
      Since:
      7.0
      See Also:
    • ALIGN_HORIZONTAL_CENTER

      static final int ALIGN_HORIZONTAL_CENTER
      The horizontal alignment will be centered.
      Since:
      7.0
      See Also:
    • ALIGN_HORIZONTAL_RIGHT

      static final int ALIGN_HORIZONTAL_RIGHT
      The horizontal alignment will be right.
      Since:
      7.0
      See Also:
    • ALIGN_HORIZONTAL_JUSTIFIED

      static final int ALIGN_HORIZONTAL_JUSTIFIED
      The horizontal alignment will be justified.
      Since:
      7.0
      See Also:
  • Method Details

    • setSuppressIfDuplicated

      void setSuppressIfDuplicated(boolean newValue)
      Sets the value of the property 'suppress if duplicated'.
      If this property is enabled values of the field that are duplicated will not be printed.
      Parameters:
      newValue - The new value of the property 'suppress if duplicated'.
      Since:
      6.0
    • isSuppressIfDuplicated

      boolean isSuppressIfDuplicated()
      Returns the value of the property 'suppress if duplicated'.
      If this property is enabled, values of the field that are duplicated will not be printed.
      Returns:
      The value of the property 'suppress if duplicated'.
      Since:
      7.0
    • setSuppressIfDuplicatedFormula

      void setSuppressIfDuplicatedFormula(FormulaField newFormula)
      Sets the formula for the property 'suppress if duplicated'.
      If this property is enabled, values of the field that are duplicated will not be printed.
      Parameters:
      newFormula - The new formula for the property 'suppress if duplicated'.
      Since:
      6.0
    • getSuppressIfDuplicatedFormula

      FormulaField getSuppressIfDuplicatedFormula()
      Returns the formula for the property 'suppress if duplicated'.
      If this property is enabled, values of the field that are duplicated will not be printed.
      Returns:
      FormulaField The formula for the property 'suppress if duplicated'.
      Since:
      6.0
    • getCanGrowCount

      int getCanGrowCount()
      Returns the value of the property 'can grow count'.
      This property gives the maximum numbers of lines that a Text or a FieldElement can grow. Give 0 if you do not want to set a limit.
      Returns:
      The current value of the property 'can grow count'.
      Since:
      6.0
    • setCanGrowCount

      void setCanGrowCount(int newValue)
      Sets the value of the property 'can grow count'.
      This property gives the maximum numbers of lines that a Text or a FieldElement can grow. Give 0 if you do not want to set a limit.
      Parameters:
      newValue - The new value of the property 'can grow count'.
      Since:
      6.0
    • getHorAlignFormula

      FormulaField getHorAlignFormula()
      Returns the formula for the property 'horizontal alignment'.
      Possible alignments are default, left, center, right or justified.
      Returns:
      FormulaField The formula for the property 'horizontal alignment'.
      Since:
      6.0
    • setHorAlignFormula

      void setHorAlignFormula(FormulaField newFormula)
      Sets the formula for the property 'horizontal alignment'.
      Possible alignments are default, left, center, right or justified.
      Parameters:
      newFormula - The new formula for the property 'horizontal alignment'. The result of the formula should be in range from 0 to 4.
      Since:
      6.0
      See Also:
    • setHorAlign

      void setHorAlign(int value)
      Sets the value of the property 'horizontal alignment'.
      Possible alignments are default, left, center, right or justified.
      Parameters:
      value - The new value of the property 'horizontal alignment'.
      Since:
      6.0
      See Also:
    • getHorAlign

      int getHorAlign()
      Returns the value of the property 'horizontal alignment'.
      Possible alignments are default, left, center, right or justified.
      Returns:
      Possible return values are default, left, center, right or justified.
      Since:
      6.0
      See Also:
    • isCanGrow

      boolean isCanGrow()
      Returns the value of the property 'can grow'.
      If this property is enabled, elements with dynamic state will be expanded vertically if its content is larger than its container. If this property is disabled the content will be truncated when its size is larger than the container.
      Returns:
      The value of the property 'can grow'.
      Since:
      7.0
    • setCanGrow

      void setCanGrow(boolean canGrow)
      Sets the value of the property 'can grow'.
      If this property is enabled, elements with dynamic state will be expanded vertically if its content is larger than its container. If this property is disabled the content will be truncated when its size is larger than the container.
      Parameters:
      canGrow - The new value of the property 'can grow'
      Since:
      6.0
    • getCanGrowFormula

      FormulaField getCanGrowFormula()
      Returns the formula of the property 'can grow'.
      If this property is enabled, elements with dynamic state will be expanded vertically if its content is larger than its container. If this property is disabled the content will be truncated when its size is larger than the container.
      Returns:
      FormulaField The formula of the property 'can grow'.
      Since:
      6.0
    • setCanGrowFormula

      void setCanGrowFormula(FormulaField newFormula)
      Sets the formula for the property 'can grow'.
      If this property is enabled, elements with dynamic state will be expanded vertically if its content is larger than its container. If this property is disabled the content will be truncated when its size is larger than the container.
      Parameters:
      newFormula - The new formula for the property 'can grow'.
      Since:
      6.0
    • isKeepTogether

      boolean isKeepTogether()
      Returns the value of the property 'keep together'.
      If this property is enabled, the element will not printed over more than one page. If no space is available on this page, it will be printed on the next. Using this property for sections all elements will be printed on one page.
      Returns:
      The current value of the property 'keep together'.
      Since:
      7.0
    • setKeepTogether

      void setKeepTogether(boolean newValue)
      Sets the value of the property 'keep together'.
      If this property is enabled, the element will not printed over more than one page. If no space is available on this page, it will be printed on the next. Using this property for sections all elements will be printed on one page.
      Parameters:
      newValue - The new value of the property 'keep together'.
      Since:
      6.0
    • getKeepTogetherFormula

      FormulaField getKeepTogetherFormula()
      Returns the formula for the property 'keep together'.
      If this property is enabled, the element will not printed over more than one page. If no space is available on this page, it will be printed on the next. Using this property for sections all elements will be printed on one page.
      Returns:
      FormulaField The formula for the property 'keep together'.
      Since:
      6.0
    • setKeepTogetherFormula

      void setKeepTogetherFormula(FormulaField newFormula)
      Sets the formula for the property 'keep together'.
      If this property is enabled, the element will not printed over more than one page. If no space is available on this page, it will be printed on the next. Using this property for sections all elements will be printed on one page.
      Parameters:
      newFormula - The new formula for the property 'keep together'.
      Since:
      6.0
    • setSuppress

      void setSuppress(boolean newValue)
      Sets the value of the property 'suppress'.
      Set this property if you do not want the section to print, but you dont't want to keep the section content available for drill down. Drill Down is not supported yet.
      Parameters:
      newValue - The new value of the property 'suppress'.
      Since:
      6.0
    • isSuppress

      boolean isSuppress()
      Returns the value of the property 'suppress'.
      Set this property if you do not want the section to print, but you do not want to keep the section content available for drill down. Drill Down is not supported yet.
      Returns:
      The value of the property 'suppress'.
      Since:
      7.0
    • setSuppressFormula

      void setSuppressFormula(FormulaField newFormula)
      Sets the formula for the property 'suppress'.
      Use this property to change the visibility of the element when printing dynamically.
      Parameters:
      newFormula - The new formula for the property 'suppress'.
      Since:
      6.0
    • getSuppressFormula

      FormulaField getSuppressFormula()
      Returns the formula for the property 'suppress'.
      Returns:
      FormulaField The formula for the property 'suppress'.
      Since:
      6.0
      See Also:
    • getToolTipsText

      String getToolTipsText()
      Returns the value of the property 'tool tips text'.
      The 'tool tips text' specifies a text which appear after short time slice when you move your mouse on the element. Use it for little notes.
      Returns:
      The value of the property 'tool tips text'.
      Since:
      6.0
    • setToolTipsText

      void setToolTipsText(String newValue)
      Sets the value of the property 'tool tips text'.
      The 'tool tips text' specifies a text which appear after short time slice when you move your mouse on the element. Use it for little notes.
      Parameters:
      newValue - The new value of the property 'tool tips text'.
      Since:
      6.0
    • getToolTipsTextFormula

      FormulaField getToolTipsTextFormula()
      Returns the formula of the property 'tool tips text'.
      The 'tool tips text' specifies a text which appear after short time slice when you move your mouse on the element. Use it for little notes.
      Returns:
      FormulaField The formula of the property 'tool tips text'.
      Since:
      6.0
    • setToolTipsTextFormula

      void setToolTipsTextFormula(FormulaField newFormula)
      Sets the formula for the property 'tool tips text'.
      The 'tool tips text' specifies a text which appear after short time slice when you move your mouse on the element. Use it for little notes.
      Parameters:
      newFormula - The new formula for the property 'tool tips text'.
      Since:
      6.0