Class TerraFormSkin

    • Constructor Detail

      • TerraFormSkin

        public TerraFormSkin()
    • Method Detail

      • install

        public void install​(Component component)
        Description copied from class: ComponentSkin
        Must be implemented in every subclass in order to do component-specific operations at instantiation time, but every subclass must call this superclass method to setup the necessary listeners, etc.
        Specified by:
        install in interface Skin
        Overrides:
        install in class ContainerSkin
        Parameters:
        component - The component to which the skin is being attached.
      • getPreferredWidth

        public int getPreferredWidth​(int height)
        Description copied from interface: ConstrainedVisual
        Returns the visual's preferred width given the provided height constraint.
        Specified by:
        getPreferredWidth in interface ConstrainedVisual
        Overrides:
        getPreferredWidth in class ContainerSkin
        Parameters:
        height - The height by which to constrain the preferred width, or -1 for no constraint.
        Returns:
        The preferred width given the height constraint.
      • getPreferredHeight

        public int getPreferredHeight​(int width)
        Description copied from interface: ConstrainedVisual
        Returns the visual's preferred height given the provided width constraint.
        Specified by:
        getPreferredHeight in interface ConstrainedVisual
        Overrides:
        getPreferredHeight in class ContainerSkin
        Parameters:
        width - The width by which to constrain the preferred height, or -1 for no constraint.
        Returns:
        The preferred height given the width constraint.
      • getBaseline

        public int getBaseline​(int width,
                               int height)
        Description copied from class: ComponentSkin
        Should be implemented in every subclass.

        The default implementation here simply returns -1 (no baseline).

        Specified by:
        getBaseline in interface ConstrainedVisual
        Overrides:
        getBaseline in class ComponentSkin
        Parameters:
        width - Constrained width to compute the baseline for.
        height - Constrained height to compute the baseline for.
        Returns:
        The baseline relative to the origin of this visual, or -1 if this visual does not have a baseline.
      • layout

        public void layout()
        Description copied from interface: Skin
        If the component on which the skin is installed is a container, lays out the container's children.
        Specified by:
        layout in interface Skin
      • paint

        public void paint​(java.awt.Graphics2D graphics)
        Description copied from interface: Visual
        Paints the visual.
        Specified by:
        paint in interface Visual
        Overrides:
        paint in class ContainerSkin
        Parameters:
        graphics - The graphics context in which to paint the visual.
      • getPadding

        public Insets getPadding()
      • setPadding

        public void setPadding​(Insets padding)
      • setPadding

        public final void setPadding​(Dictionary<java.lang.String,​?> padding)
      • setPadding

        public final void setPadding​(Sequence<?> padding)
      • setPadding

        public final void setPadding​(int padding)
      • setPadding

        public final void setPadding​(java.lang.Number padding)
      • setPadding

        public final void setPadding​(java.lang.String padding)
      • getHorizontalSpacing

        public int getHorizontalSpacing()
      • setHorizontalSpacing

        public void setHorizontalSpacing​(int horizontalSpacing)
      • setHorizontalSpacing

        public final void setHorizontalSpacing​(java.lang.Number horizontalSpacing)
      • getVerticalSpacing

        public int getVerticalSpacing()
      • setVerticalSpacing

        public void setVerticalSpacing​(int verticalSpacing)
      • setVerticalSpacing

        public final void setVerticalSpacing​(java.lang.Number verticalSpacing)
      • getFlagIconOffset

        public int getFlagIconOffset()
      • setFlagIconOffset

        public void setFlagIconOffset​(int flagIconOffset)
      • setFlagIconOffset

        public final void setFlagIconOffset​(java.lang.Number flagIconOffset)
      • getFill

        public boolean getFill()
      • setFill

        public void setFill​(boolean fill)
      • getShowFlagIcons

        public boolean getShowFlagIcons()
      • setShowFlagIcons

        public void setShowFlagIcons​(boolean showFlagIcons)
      • getShowFlagHighlight

        public boolean getShowFlagHighlight()
      • setShowFlagHighlight

        public void setShowFlagHighlight​(boolean showFlagHighlight)
      • getShowFlagMessagesInline

        public boolean getShowFlagMessagesInline()
      • setShowFlagMessagesInline

        public void setShowFlagMessagesInline​(boolean showFlagMessagesInline)
      • getLeftAlignLabels

        public boolean getLeftAlignLabels()
      • setLeftAlignLabels

        public void setLeftAlignLabels​(boolean leftAlignLabels)
      • getDelimiter

        public java.lang.String getDelimiter()
      • setDelimiter

        public void setDelimiter​(java.lang.String delimiter)
      • getSeparatorColor

        public java.awt.Color getSeparatorColor()
      • setSeparatorColor

        public void setSeparatorColor​(java.awt.Color separatorColor)
      • setSeparatorColor

        public final void setSeparatorColor​(java.lang.String separatorColor)
      • getSeparatorHeadingColor

        public java.awt.Color getSeparatorHeadingColor()
      • setSeparatorHeadingColor

        public void setSeparatorHeadingColor​(java.awt.Color separatorHeadingColor)
      • setSeparatorHeadingColor

        public final void setSeparatorHeadingColor​(java.lang.String separatorHeadingColor)
      • getLabelFont

        public final java.awt.Font getLabelFont()
      • setLabelFont

        public final void setLabelFont​(java.awt.Font font)
      • setLabelFont

        public final void setLabelFont​(java.lang.String fontString)
      • setLabelFont

        public final void setLabelFont​(Dictionary<java.lang.String,​?> fontDict)
      • getMessageFont

        public final java.awt.Font getMessageFont()
      • setMessageFont

        public final void setMessageFont​(java.awt.Font font)
      • setMessageFont

        public final void setMessageFont​(java.lang.String fontString)
      • setMessageFont

        public final void setMessageFont​(Dictionary<java.lang.String,​?> fontDict)
      • sectionInserted

        public void sectionInserted​(Form form,
                                    int index)
        Description copied from interface: FormListener
        Called when a form section has been inserted.
        Specified by:
        sectionInserted in interface FormListener
        Parameters:
        form - The form that has changed.
        index - The index where the new section has been inserted.
      • sectionsRemoved

        public void sectionsRemoved​(Form form,
                                    int index,
                                    Sequence<Form.Section> removed)
        Description copied from interface: FormListener
        Called when form sections have been removed.
        Specified by:
        sectionsRemoved in interface FormListener
        Parameters:
        form - The form that has changed.
        index - The starting index where sections were removed.
        removed - The complete sequence of the removed sections.
      • sectionHeadingChanged

        public void sectionHeadingChanged​(Form.Section section)
        Description copied from interface: FormListener
        Called when a form section's heading has changed.
        Specified by:
        sectionHeadingChanged in interface FormListener
        Parameters:
        section - The form section whose heading changed.
      • fieldInserted

        public void fieldInserted​(Form.Section section,
                                  int index)
        Description copied from interface: FormListener
        Called when a form field has been inserted.
        Specified by:
        fieldInserted in interface FormListener
        Parameters:
        section - The enclosing form section that has changed.
        index - The index where a new field has been inserted.
      • fieldsRemoved

        public void fieldsRemoved​(Form.Section section,
                                  int index,
                                  Sequence<Component> fields)
        Description copied from interface: FormListener
        Called when form fields have been removed.
        Specified by:
        fieldsRemoved in interface FormListener
        Parameters:
        section - The enclosing form section.
        index - The starting index where fields were removed.
        fields - The complete sequence of fields that were removed.
      • labelChanged

        public void labelChanged​(Form form,
                                 Component field,
                                 java.lang.String previousLabel)
        Description copied from interface: FormAttributeListener
        Called when a field's label attribute has changed.
        Specified by:
        labelChanged in interface FormAttributeListener
        Parameters:
        form - The enclosing form.
        field - The field whose form label has changed.
        previousLabel - The previous form label for this field.
      • flagChanged

        public void flagChanged​(Form form,
                                Component field,
                                Form.Flag previousFlag)
        Description copied from interface: FormAttributeListener
        Called when a field's flag attribute has changed.
        Specified by:
        flagChanged in interface FormAttributeListener
        Parameters:
        form - The enclosing form.
        field - The field whose flag attribute has changed.
        previousFlag - The previous flag value for this field.