Class ApplicationPreferenceModel


  • public class ApplicationPreferenceModel
    extends java.lang.Object
    Encapsulates the Chainsaw Application wide properties
    • Field Detail

      • showNoReceiverWarning

        private boolean showNoReceiverWarning
      • statusBar

        private boolean statusBar
      • toolbar

        private boolean toolbar
      • receivers

        private boolean receivers
      • confirmExit

        private boolean confirmExit
      • showSplash

        private boolean showSplash
      • lookAndFeelClassName

        private java.lang.String lookAndFeelClassName
      • toolTipDisplayMillis

        private int toolTipDisplayMillis
      • cyclicBufferSize

        private int cyclicBufferSize
      • lastUsedVersion

        private java.lang.String lastUsedVersion
      • responsiveness

        private int responsiveness
      • searchBackgroundColor

        private java.awt.Color searchBackgroundColor
      • searchForegroundColor

        private java.awt.Color searchForegroundColor
      • alternatingColorForegroundColor

        private java.awt.Color alternatingColorForegroundColor
      • alternatingColorBackgroundColor

        private java.awt.Color alternatingColorBackgroundColor
      • identifierExpression

        private java.lang.String identifierExpression
      • propertySupport

        private final transient java.beans.PropertyChangeSupport propertySupport
      • tabPlacement

        private int tabPlacement
      • configurationURLs

        private java.util.Vector<java.lang.String> configurationURLs
        If not 'empty', this property will be used as the URL to load log4j configuration at startup
      • configurationURL

        private java.lang.String configurationURL
      • bypassConfigurationURL

        private transient java.lang.String bypassConfigurationURL
        Remember current config if provided via means other than configurationURL (command line arg, etc)
      • okToRemoveSecurityManager

        private boolean okToRemoveSecurityManager
        this means for Receivers that require optional jars that can't be delivered by the Web start classloader, we need to be able to remove the SecurityManager in place
      • CONFIGURATION_URL_ENTRY_COUNT

        private static final int CONFIGURATION_URL_ENTRY_COUNT
        See Also:
        Constant Field Values
      • defaultColumnNames

        private java.util.List defaultColumnNames
      • defaultColumnsSet

        private boolean defaultColumnsSet
      • bypassSearchColors

        private boolean bypassSearchColors
    • Constructor Detail

      • ApplicationPreferenceModel

        public ApplicationPreferenceModel()
    • Method Detail

      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Parameters:
        listener -
      • addPropertyChangeListener

        public void addPropertyChangeListener​(java.lang.String propertyName,
                                              java.beans.PropertyChangeListener listener)
        Parameters:
        propertyName -
        listener -
      • firePropertyChange

        private void firePropertyChange​(java.lang.String propertyName,
                                        boolean oldValue,
                                        boolean newValue)
        Parameters:
        propertyName -
        oldValue -
        newValue -
      • firePropertyChange

        private void firePropertyChange​(java.lang.String propertyName,
                                        int oldValue,
                                        int newValue)
        Parameters:
        propertyName -
        oldValue -
        newValue -
      • firePropertyChange

        private void firePropertyChange​(java.lang.String propertyName,
                                        java.lang.Object oldValue,
                                        java.lang.Object newValue)
        Parameters:
        propertyName -
        oldValue -
        newValue -
      • hasListeners

        public boolean hasListeners​(java.lang.String propertyName)
        Parameters:
        propertyName -
        Returns:
        listeners flag
      • removePropertyChangeListener

        public void removePropertyChangeListener​(java.beans.PropertyChangeListener listener)
        Parameters:
        listener -
      • isShowNoReceiverWarning

        public final boolean isShowNoReceiverWarning()
        Returns:
        Returns the showNoReceiverWarning.
      • getIdentifierExpression

        public final java.lang.String getIdentifierExpression()
      • setCyclicBufferSize

        public final void setCyclicBufferSize​(int newCyclicBufferSize)
      • getCyclicBufferSize

        public final int getCyclicBufferSize()
      • setToolTipDisplayMillis

        public final void setToolTipDisplayMillis​(int newToolTipDisplayMillis)
      • getToolTipDisplayMillis

        public final int getToolTipDisplayMillis()
      • setIdentifierExpression

        public final void setIdentifierExpression​(java.lang.String newIdentifierExpression)
      • setShowNoReceiverWarning

        public final void setShowNoReceiverWarning​(boolean newShowNoReceiverWarning)
        Parameters:
        newShowNoReceiverWarning - The showNoReceiverWarning to set.
      • apply

        public void apply​(ApplicationPreferenceModel model)
        Takes another model and copies all the values into this model
        Parameters:
        model -
      • getDeltaColor

        public java.awt.Color getDeltaColor()
      • boundColorValue

        private int boundColorValue​(int colorValue)
      • getResponsiveness

        public final int getResponsiveness()
        Returns:
        Returns the responsiveness.
      • setResponsiveness

        public final void setResponsiveness​(int newValue)
        Parameters:
        newValue - The responsiveness to set.
      • setTabPlacement

        public void setTabPlacement​(int i)
        Parameters:
        i -
      • getTabPlacement

        public final int getTabPlacement()
        Returns:
        Returns the tabPlacement.
      • isStatusBar

        public final boolean isStatusBar()
        Returns:
        Returns the statusBar.
      • getConfigurationURLs

        public java.util.Vector<java.lang.String> getConfigurationURLs()
      • setConfigurationURLs

        public void setConfigurationURLs​(java.util.Vector<java.lang.String> urls)
      • setStatusBar

        public final void setStatusBar​(boolean statusBar)
        Parameters:
        statusBar - The statusBar to set.
      • setAlternatingForegroundColor

        public void setAlternatingForegroundColor​(java.awt.Color alternatingColorForegroundColor)
      • setAlternatingBackgroundColor

        public void setAlternatingBackgroundColor​(java.awt.Color alternatingColorBackgroundColor)
      • setSearchForegroundColor

        public void setSearchForegroundColor​(java.awt.Color searchForegroundColor)
      • setSearchBackgroundColor

        public void setSearchBackgroundColor​(java.awt.Color searchBackgroundColor)
      • getAlternatingColorBackgroundColor

        public java.awt.Color getAlternatingColorBackgroundColor()
      • getAlternatingColorForegroundColor

        public java.awt.Color getAlternatingColorForegroundColor()
      • getSearchBackgroundColor

        public java.awt.Color getSearchBackgroundColor()
      • getSearchForegroundColor

        public java.awt.Color getSearchForegroundColor()
      • isReceivers

        public final boolean isReceivers()
        Returns:
        Returns the receivers.
      • setReceivers

        public final void setReceivers​(boolean receivers)
        Parameters:
        receivers - The receivers to set.
      • isToolbar

        public final boolean isToolbar()
        Returns:
        Returns the toolbar.
      • setToolbar

        public final void setToolbar​(boolean toolbar)
        Parameters:
        toolbar - The toolbar to set.
      • getLookAndFeelClassName

        public final java.lang.String getLookAndFeelClassName()
        Returns:
        Returns the lookAndFeelClassName.
      • setLookAndFeelClassName

        public final void setLookAndFeelClassName​(java.lang.String lookAndFeelClassName)
        Parameters:
        lookAndFeelClassName - The lookAndFeelClassName to set.
      • isConfirmExit

        public final boolean isConfirmExit()
        Returns:
        Returns the confirmExit.
      • setConfirmExit

        public final void setConfirmExit​(boolean confirmExit)
        Parameters:
        confirmExit - The confirmExit to set.
      • isShowSplash

        public final boolean isShowSplash()
        Returns:
        Returns the showSplash.
      • setShowSplash

        public final void setShowSplash​(boolean showSplash)
        Parameters:
        showSplash - The showSplash to set.
      • getConfigurationURL

        public final java.lang.String getConfigurationURL()
        Returns:
        Returns the configurationURL.
      • getBypassConfigurationURL

        public final java.lang.String getBypassConfigurationURL()
      • setBypassConfigurationURL

        public void setBypassConfigurationURL​(java.lang.String bypassConfigurationURL)
      • setConfigurationURL

        public final void setConfigurationURL​(java.lang.String configurationURL)
        Parameters:
        configurationURL - The configurationURL to set.
      • getLastUsedVersion

        public final java.lang.String getLastUsedVersion()
        Returns:
        Returns the lastUsedVersion.
      • setLastUsedVersion

        public final void setLastUsedVersion​(java.lang.String lastUsedVersion)
        Parameters:
        lastUsedVersion - The lastUsedVersion to set.
      • isOkToRemoveSecurityManager

        public final boolean isOkToRemoveSecurityManager()
        Returns:
        ok to remove security manager flag
      • setOkToRemoveSecurityManager

        public final void setOkToRemoveSecurityManager​(boolean okToRemoveSecurityManager)
        Parameters:
        okToRemoveSecurityManager - The okToRemoveSecurityManager to set.
      • setDefaultColumnNames

        public void setDefaultColumnNames​(java.util.List defaultColumnNames)
      • isDefaultColumnsSet

        public boolean isDefaultColumnsSet()
      • getDefaultColumnNames

        public java.util.List getDefaultColumnNames()
      • setBypassSearchColors

        public void setBypassSearchColors​(boolean bypassSearchColors)
      • isBypassSearchColors

        public boolean isBypassSearchColors()