org.apache.log4j.chainsaw
Class ApplicationPreferenceModel
java.lang.Object
|
+--org.apache.log4j.chainsaw.ApplicationPreferenceModel
- All Implemented Interfaces:
- java.util.EventListener, SettingsListener
- public class ApplicationPreferenceModel
- extends java.lang.Object
- implements SettingsListener
Encapsulates the Chainsaw Application wide properties
- Author:
- Paul Smith
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationPreferenceModel
public ApplicationPreferenceModel()
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
-
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.
loadSettings
public void loadSettings(LoadSettingsEvent event)
- Description copied from interface:
SettingsListener
- When a request to load Settings has been requested, this method
will be invoked by the SettingsManager. The implementing
component can query the event for settings, and modify
it's internal state based on these settings.
- Specified by:
loadSettings
in interface SettingsListener
- Parameters:
event
-
saveSettings
public void saveSettings(SaveSettingsEvent event)
- Specified by:
saveSettings
in interface SettingsListener
apply
public void apply(ApplicationPreferenceModel model)
- Takes another model and copies all the values into this model
- Parameters:
model
-
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.
setStatusBar
public final void setStatusBar(boolean statusBar)
- Parameters:
statusBar
- The statusBar to set.
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.
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.
Copyright 2000-2003 Apache Software Foundation.