Package org.apache.log4j.chainsaw
Class ApplicationPreferenceModel
java.lang.Object
org.apache.log4j.chainsaw.ApplicationPreferenceModel
Encapsulates the Chainsaw Application wide properties
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Color
private Color
private String
Remember current config if provided via means other than configurationURL (command line arg, etc)private boolean
private static final int
private String
If not 'empty', this property will be used as the URL to load log4j configuration at startupprivate boolean
private int
private List
private boolean
private String
private String
private String
private boolean
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 placeprivate final PropertyChangeSupport
private boolean
private int
private Color
private Color
private boolean
private boolean
private boolean
private int
private boolean
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addPropertyChangeListener
(String propertyName, PropertyChangeListener listener) void
apply
(ApplicationPreferenceModel model) Takes another model and copies all the values into this modelprivate int
boundColorValue
(int colorValue) private void
firePropertyChange
(String propertyName, boolean oldValue, boolean newValue) private void
firePropertyChange
(String propertyName, int oldValue, int newValue) private void
firePropertyChange
(String propertyName, Object oldValue, Object newValue) final String
final String
final int
final String
final String
final String
final int
final int
final int
boolean
hasListeners
(String propertyName) boolean
final boolean
boolean
final boolean
final boolean
final boolean
final boolean
final boolean
final boolean
void
void
setAlternatingBackgroundColor
(Color alternatingColorBackgroundColor) void
setAlternatingForegroundColor
(Color alternatingColorForegroundColor) void
setBypassConfigurationURL
(String bypassConfigurationURL) void
setBypassSearchColors
(boolean bypassSearchColors) final void
setConfigurationURL
(String configurationURL) void
setConfigurationURLs
(Vector<String> urls) final void
setConfirmExit
(boolean confirmExit) final void
setCyclicBufferSize
(int newCyclicBufferSize) void
setDefaultColumnNames
(List defaultColumnNames) final void
setIdentifierExpression
(String newIdentifierExpression) final void
setLastUsedVersion
(String lastUsedVersion) final void
setLookAndFeelClassName
(String lookAndFeelClassName) final void
setOkToRemoveSecurityManager
(boolean okToRemoveSecurityManager) final void
setReceivers
(boolean receivers) final void
setResponsiveness
(int newValue) void
setSearchBackgroundColor
(Color searchBackgroundColor) void
setSearchForegroundColor
(Color searchForegroundColor) final void
setShowNoReceiverWarning
(boolean newShowNoReceiverWarning) final void
setShowSplash
(boolean showSplash) final void
setStatusBar
(boolean statusBar) void
setTabPlacement
(int i) final void
setToolbar
(boolean toolbar) final void
setToolTipDisplayMillis
(int newToolTipDisplayMillis)
-
Field Details
-
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
-
toolTipDisplayMillis
private int toolTipDisplayMillis -
cyclicBufferSize
private int cyclicBufferSize -
lastUsedVersion
-
responsiveness
private int responsiveness -
searchBackgroundColor
-
searchForegroundColor
-
alternatingColorForegroundColor
-
alternatingColorBackgroundColor
-
identifierExpression
-
propertySupport
-
tabPlacement
private int tabPlacement -
configurationURLs
If not 'empty', this property will be used as the URL to load log4j configuration at startup -
configurationURL
-
bypassConfigurationURL
Remember current config if provided via means other than configurationURL (command line arg, etc) -
okToRemoveSecurityManager
private boolean okToRemoveSecurityManagerthis 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:
-
defaultColumnNames
-
defaultColumnsSet
private boolean defaultColumnsSet -
bypassSearchColors
private boolean bypassSearchColors
-
-
Constructor Details
-
ApplicationPreferenceModel
public ApplicationPreferenceModel()
-
-
Method Details
-
addPropertyChangeListener
- Parameters:
listener
-
-
addPropertyChangeListener
- Parameters:
propertyName
-listener
-
-
firePropertyChange
- Parameters:
propertyName
-oldValue
-newValue
-
-
firePropertyChange
- Parameters:
propertyName
-oldValue
-newValue
-
-
firePropertyChange
- Parameters:
propertyName
-oldValue
-newValue
-
-
hasListeners
- Parameters:
propertyName
-- Returns:
- listeners flag
-
removePropertyChangeListener
- Parameters:
listener
-
-
isShowNoReceiverWarning
public final boolean isShowNoReceiverWarning()- Returns:
- Returns the showNoReceiverWarning.
-
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
-
setShowNoReceiverWarning
public final void setShowNoReceiverWarning(boolean newShowNoReceiverWarning) - Parameters:
newShowNoReceiverWarning
- The showNoReceiverWarning to set.
-
apply
Takes another model and copies all the values into this model- Parameters:
model
-
-
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
-
setConfigurationURLs
-
setStatusBar
public final void setStatusBar(boolean statusBar) - Parameters:
statusBar
- The statusBar to set.
-
setAlternatingForegroundColor
-
setAlternatingBackgroundColor
-
setSearchForegroundColor
-
setSearchBackgroundColor
-
getAlternatingColorBackgroundColor
-
getAlternatingColorForegroundColor
-
getSearchBackgroundColor
-
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
- Returns:
- Returns the lookAndFeelClassName.
-
setLookAndFeelClassName
- 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
- Returns:
- Returns the configurationURL.
-
getBypassConfigurationURL
-
setBypassConfigurationURL
-
setConfigurationURL
- Parameters:
configurationURL
- The configurationURL to set.
-
getLastUsedVersion
- Returns:
- Returns the lastUsedVersion.
-
setLastUsedVersion
- 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
-
isDefaultColumnsSet
public boolean isDefaultColumnsSet() -
getDefaultColumnNames
-
setBypassSearchColors
public void setBypassSearchColors(boolean bypassSearchColors) -
isBypassSearchColors
public boolean isBypassSearchColors()
-