Class TerraAlertSkin

    • Constructor Detail

      • TerraAlertSkin

        public TerraAlertSkin()
    • 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 TerraDialogSkin
        Parameters:
        component - The component to which the skin is being attached.
      • messageTypeChanged

        public void messageTypeChanged​(Alert alert,
                                       MessageType previousMessageType)
        Description copied from interface: AlertListener
        Called when an alert's message type has changed.
        Specified by:
        messageTypeChanged in interface AlertListener
        Parameters:
        alert - The alert that has changed.
        previousMessageType - The previous message type for the alert.
      • messageChanged

        public void messageChanged​(Alert alert,
                                   java.lang.String previousMessage)
        Description copied from interface: AlertListener
        Called when an alert's message has changed.
        Specified by:
        messageChanged in interface AlertListener
        Parameters:
        alert - The alert that has changed.
        previousMessage - The previous message for this alert.
      • bodyChanged

        public void bodyChanged​(Alert alert,
                                Component previousBody)
        Description copied from interface: AlertListener
        Called when an alert's body has changed.
        Specified by:
        bodyChanged in interface AlertListener
        Parameters:
        alert - The alert that has changed.
        previousBody - The previous body for this alert.
      • optionInserted

        public void optionInserted​(Alert alert,
                                   int index)
        Description copied from interface: AlertListener
        Called when an option has been inserted into an alert's option sequence.
        Specified by:
        optionInserted in interface AlertListener
        Parameters:
        alert - The alert that has changed.
        index - The index where the new option was inserted.
      • optionsRemoved

        public void optionsRemoved​(Alert alert,
                                   int index,
                                   Sequence<?> removed)
        Description copied from interface: AlertListener
        Called when options have been removed from an alert's option sequence.
        Specified by:
        optionsRemoved in interface AlertListener
        Parameters:
        alert - The alert that has changed.
        index - The starting index where the options were removed.
        removed - The actual sequence of the options that were removed.
      • selectedOptionChanged

        public void selectedOptionChanged​(Alert alert,
                                          int previousSelectedOption)
        Description copied from interface: AlertListener
        Called when an alert's selected option has changed.
        Specified by:
        selectedOptionChanged in interface AlertListener
        Parameters:
        alert - The alert that has changed.
        previousSelectedOption - The index of the previously selected option.
      • previewWindowOpen

        public Vote previewWindowOpen​(Window window)
        Description copied from interface: WindowStateListener
        Called to preview a window open event.
        Specified by:
        previewWindowOpen in interface WindowStateListener
        Parameters:
        window - The window that wants to open.
        Returns:
        The vote from the listener as to whether to allow the open.
      • setBorderBackgroundColor

        public void setBorderBackgroundColor​(java.awt.Color borderBackgroundColor)
      • setBorderBackgroundColor

        public final void setBorderBackgroundColor​(java.lang.String borderBackgroundColor)
      • setBorderBackgroundColor

        public final void setBorderBackgroundColor​(int borderBackgroundColor)
      • getBorderBackgroundColor

        public java.awt.Color getBorderBackgroundColor()
      • setBorderColor

        public void setBorderColor​(java.awt.Color borderColor)
      • setBorderColor

        public final void setBorderColor​(java.lang.String borderColor)
      • setBorderColor

        public final void setBorderColor​(int borderColor)
      • getBorderColor

        public java.awt.Color getBorderColor()