Package org.apache.log4j.chainsaw
Class LogPanelPreferenceModel
- java.lang.Object
-
- org.apache.log4j.chainsaw.LogPanelPreferenceModel
-
- All Implemented Interfaces:
Serializable
public class LogPanelPreferenceModel extends Object implements Serializable
Used to encapsulate all the preferences for a given LogPanel- Author:
- Paul Smith
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static CollectionDATE_FORMATSstatic StringISO8601
-
Constructor Summary
Constructors Constructor Description LogPanelPreferenceModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddColumn(TableColumn column)voidaddPropertyChangeListener(PropertyChangeListener listener)voidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener)voidapply(LogPanelPreferenceModel model)Applies all the properties of another model to this modelvoidclearColumns()StringgetAlwaysDisplayExpression()StringgetClearTableExpression()ListgetColumns()Returns an unmodifiable list of the columns.StringgetDateFormatPattern()Returns the Date Pattern string for the alternate date formatter.StringgetHiddenExpression()CollectiongetHiddenLoggers()StringgetLoggerPrecision()Returns the Logger precision.StringgetTimeZone()ListgetVisibleColumnOrder()ListgetVisibleColumns()Returns an unmodifiable list of the visible columns.booleanisColumnVisible(TableColumn column)Returns true if the named column should be made visible otherwise false.booleanisCustomDateFormat()booleanisCyclic()booleanisDetailPaneVisible()booleanisHighlightSearchMatchText()booleanisLevelIcons()booleanisLogTreePanelVisible()booleanisScrollToBottom()booleanisSearchResultsVisible()booleanisShowMillisDeltaAsGap()booleanisThumbnailBarToolTips()booleanisToolTips()booleanisUseISO8601Format()Returns true if this the fast ISO8601DateFormat object should be used instead of SimpleDateFormatbooleanisWrapMessage()voidremovePropertyChangeListener(PropertyChangeListener listener)voidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener)voidsetAlwaysDisplayExpression(String alwaysDisplayExpression)voidsetClearTableExpression(String clearTableExpression)voidsetColumnVisible(String columnName, boolean isVisible)voidsetCyclic(boolean cyclic)voidsetDateFormatPattern(String dateFormatPattern)voidsetDefaultDatePatternFormat()voidsetDetailPaneVisible(boolean detailPaneVisible)voidsetHiddenExpression(String hiddenExpression)voidsetHiddenLoggers(Collection hiddenSet)voidsetHighlightSearchMatchText(boolean highlightSearchMatchText)voidsetLevelIcons(boolean levelIcons)voidsetLoggerPrecision(String loggerPrecision)voidsetLogTreePanelVisible(boolean logTreePanelVisible)voidsetScrollToBottom(boolean scrollToBottom)voidsetSearchResultsVisible(boolean searchResultsVisible)voidsetShowMillisDeltaAsGap(boolean showMillisDeltaAsGap)voidsetThumbnailBarToolTips(boolean thumbnailBarToolTips)voidsetTimeZone(String timeZone)voidsetToolTips(boolean toolTips)voidsetVisibleColumnOrder(List visibleColumnOrder)voidsetWrapMessage(boolean wrapMsg)voidtoggleColumn(TableColumn column)Toggles the state between visible, non-visible for a particular Column name
-
-
-
Field Detail
-
ISO8601
public static final String ISO8601
- See Also:
- Constant Field Values
-
DATE_FORMATS
public static final Collection DATE_FORMATS
-
-
Method Detail
-
getColumns
public List getColumns()
Returns an unmodifiable list of the columns.The reason it is unmodifiable is to enforce the requirement that the List is actually unique columns. IT _could_ be a set, but we need to maintain the order of insertion.
- Returns:
-
setCyclic
public void setCyclic(boolean cyclic)
-
isCyclic
public boolean isCyclic()
-
getVisibleColumns
public List getVisibleColumns()
Returns an unmodifiable list of the visible columns.The reason it is unmodifiable is to enforce the requirement that the List is actually unique columns. IT _could_ be a set, but we need to maintain the order of insertion.
- Returns:
-
clearColumns
public void clearColumns()
-
setVisibleColumnOrder
public void setVisibleColumnOrder(List visibleColumnOrder)
-
getVisibleColumnOrder
public List getVisibleColumnOrder()
-
addColumn
public boolean addColumn(TableColumn column)
-
getDateFormatPattern
public final String getDateFormatPattern()
Returns the Date Pattern string for the alternate date formatter.- Returns:
- date pattern
-
setDefaultDatePatternFormat
public final void setDefaultDatePatternFormat()
-
setDateFormatPattern
public final void setDateFormatPattern(String dateFormatPattern)
- Parameters:
dateFormatPattern-
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
- Parameters:
listener-
-
addPropertyChangeListener
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
- Parameters:
propertyName-listener-
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
- Parameters:
listener-
-
removePropertyChangeListener
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
- Parameters:
propertyName-listener-
-
apply
public void apply(LogPanelPreferenceModel model)
Applies all the properties of another model to this model- Parameters:
model- the model to copy all the properties from
-
isUseISO8601Format
public boolean isUseISO8601Format()
Returns true if this the fast ISO8601DateFormat object should be used instead of SimpleDateFormat- Returns:
- use ISO8601 format flag
-
isLevelIcons
public boolean isLevelIcons()
- Returns:
- level icons flag
-
isWrapMessage
public boolean isWrapMessage()
-
isHighlightSearchMatchText
public boolean isHighlightSearchMatchText()
-
setLevelIcons
public void setLevelIcons(boolean levelIcons)
- Parameters:
levelIcons-
-
setSearchResultsVisible
public void setSearchResultsVisible(boolean searchResultsVisible)
-
isSearchResultsVisible
public boolean isSearchResultsVisible()
-
setWrapMessage
public void setWrapMessage(boolean wrapMsg)
- Parameters:
wrapMsg-
-
setHighlightSearchMatchText
public void setHighlightSearchMatchText(boolean highlightSearchMatchText)
- Parameters:
highlightSearchMatchText-
-
setLoggerPrecision
public void setLoggerPrecision(String loggerPrecision)
- Parameters:
loggerPrecision- - an integer representing the number of packages to display, or an empty string representing 'display all packages'
-
getLoggerPrecision
public final String getLoggerPrecision()
Returns the Logger precision.- Returns:
- logger precision
-
isColumnVisible
public boolean isColumnVisible(TableColumn column)
Returns true if the named column should be made visible otherwise false.- Parameters:
column-- Returns:
- column visible flag
-
setColumnVisible
public void setColumnVisible(String columnName, boolean isVisible)
-
toggleColumn
public void toggleColumn(TableColumn column)
Toggles the state between visible, non-visible for a particular Column name- Parameters:
column-
-
isDetailPaneVisible
public final boolean isDetailPaneVisible()
- Returns:
- detail pane visible flag
-
setDetailPaneVisible
public final void setDetailPaneVisible(boolean detailPaneVisible)
- Parameters:
detailPaneVisible-
-
isScrollToBottom
public final boolean isScrollToBottom()
- Returns:
- scroll to bottom flag
-
isShowMillisDeltaAsGap
public final boolean isShowMillisDeltaAsGap()
-
setScrollToBottom
public final void setScrollToBottom(boolean scrollToBottom)
- Parameters:
scrollToBottom-
-
setShowMillisDeltaAsGap
public final void setShowMillisDeltaAsGap(boolean showMillisDeltaAsGap)
- Parameters:
showMillisDeltaAsGap-
-
setThumbnailBarToolTips
public final void setThumbnailBarToolTips(boolean thumbnailBarToolTips)
-
isThumbnailBarToolTips
public final boolean isThumbnailBarToolTips()
-
isToolTips
public final boolean isToolTips()
- Returns:
- tool tips enabled flag
-
setToolTips
public final void setToolTips(boolean toolTips)
- Parameters:
toolTips-
-
isLogTreePanelVisible
public final boolean isLogTreePanelVisible()
- Returns:
- log tree panel visible flag
-
setLogTreePanelVisible
public final void setLogTreePanelVisible(boolean logTreePanelVisible)
- Parameters:
logTreePanelVisible-
-
isCustomDateFormat
public boolean isCustomDateFormat()
- Returns:
- custom date format flag
-
setHiddenLoggers
public void setHiddenLoggers(Collection hiddenSet)
-
getHiddenLoggers
public Collection getHiddenLoggers()
-
getTimeZone
public String getTimeZone()
-
setTimeZone
public void setTimeZone(String timeZone)
-
setHiddenExpression
public void setHiddenExpression(String hiddenExpression)
-
getHiddenExpression
public String getHiddenExpression()
-
setAlwaysDisplayExpression
public void setAlwaysDisplayExpression(String alwaysDisplayExpression)
-
getAlwaysDisplayExpression
public String getAlwaysDisplayExpression()
-
setClearTableExpression
public void setClearTableExpression(String clearTableExpression)
-
getClearTableExpression
public String getClearTableExpression()
-
-