Class LogPanelPreferenceModel
java.lang.Object
org.apache.log4j.chainsaw.LogPanelPreferenceModel
- All Implemented Interfaces:
Serializable
Used to encapsulate all the preferences for a given LogPanel
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Listprivate Stringprivate Stringprivate booleanstatic final Collectionprivate Stringprivate booleanprivate Stringprivate Collectionprivate booleanstatic final Stringprivate booleanprivate Stringprivate booleanprivate final PropertyChangeSupportprivate booleanprivate booleanprivate static final longprivate booleanprivate booleanprivate Stringprivate booleanprivate Listprivate Listprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddColumn(TableColumn column) voidvoidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) voidapply(LogPanelPreferenceModel model) Applies all the properties of another model to this modelvoidprivate TableColumnfindColumnByHeader(List list, String header) Returns an unmodifiable list of the columns.final StringReturns the Date Pattern string for the alternate date formatter.final StringReturns the Logger precision.Returns an unmodifiable list of the visible columns.booleanisColumnVisible(TableColumn column) Returns true if the named column should be made visible otherwise false.booleanbooleanisCyclic()final booleanbooleanbooleanfinal booleanfinal booleanbooleanfinal booleanfinal booleanfinal booleanbooleanReturns true if this the fast ISO8601DateFormat object should be used instead of SimpleDateFormatbooleanvoidvoidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) voidsetAlwaysDisplayExpression(String alwaysDisplayExpression) voidsetClearTableExpression(String clearTableExpression) private voidsetColumns(List columns) voidsetColumnVisible(String columnName, boolean isVisible) voidsetCyclic(boolean cyclic) final voidsetDateFormatPattern(String dateFormatPattern) final voidfinal voidsetDetailPaneVisible(boolean detailPaneVisible) voidsetHiddenExpression(String hiddenExpression) voidsetHiddenLoggers(Collection hiddenSet) voidsetHighlightSearchMatchText(boolean highlightSearchMatchText) voidsetLevelIcons(boolean levelIcons) voidsetLoggerPrecision(String loggerPrecision) final voidsetLogTreePanelVisible(boolean logTreePanelVisible) final voidsetScrollToBottom(boolean scrollToBottom) voidsetSearchResultsVisible(boolean searchResultsVisible) final voidsetShowMillisDeltaAsGap(boolean showMillisDeltaAsGap) final voidsetThumbnailBarToolTips(boolean thumbnailBarToolTips) voidsetTimeZone(String timeZone) final voidsetToolTips(boolean toolTips) voidsetVisibleColumnOrder(List visibleColumnOrder) private voidsetVisibleColumns(List visibleColumns) voidsetWrapMessage(boolean wrapMsg) voidtoggleColumn(TableColumn column) Toggles the state between visible, non-visible for a particular Column name
-
Field Details
-
ISO8601
- See Also:
-
DATE_FORMATS
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
propertySupport
-
dateFormatPattern
-
levelIcons
private boolean levelIcons -
allColumns
-
visibleColumns
-
visibleColumnOrder
-
detailPaneVisible
private boolean detailPaneVisible -
toolTips
private boolean toolTips -
thumbnailBarToolTips
private boolean thumbnailBarToolTips -
scrollToBottom
private boolean scrollToBottom -
logTreePanelVisible
private boolean logTreePanelVisible -
loggerPrecision
-
timeZone
-
wrapMsg
private boolean wrapMsg -
highlightSearchMatchText
private boolean highlightSearchMatchText -
alwaysDisplayExpression
-
clearTableExpression
-
cyclic
private boolean cyclic -
showMillisDeltaAsGap
private boolean showMillisDeltaAsGap -
searchResultsVisible
private boolean searchResultsVisible
-
-
Constructor Details
-
LogPanelPreferenceModel
public LogPanelPreferenceModel()
-
-
Method Details
-
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
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() -
findColumnByHeader
-
setVisibleColumnOrder
-
getVisibleColumnOrder
-
addColumn
-
setColumns
-
getDateFormatPattern
Returns the Date Pattern string for the alternate date formatter.- Returns:
- date pattern
-
setDefaultDatePatternFormat
public final void setDefaultDatePatternFormat() -
setDateFormatPattern
- Parameters:
dateFormatPattern-
-
addPropertyChangeListener
- Parameters:
listener-
-
addPropertyChangeListener
- Parameters:
propertyName-listener-
-
removePropertyChangeListener
- Parameters:
listener-
-
removePropertyChangeListener
- Parameters:
propertyName-listener-
-
apply
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
- Parameters:
loggerPrecision- - an integer representing the number of packages to display, or an empty string representing 'display all packages'
-
getLoggerPrecision
-
isColumnVisible
Returns true if the named column should be made visible otherwise false.- Parameters:
column-- Returns:
- column visible flag
-
setVisibleColumns
-
setColumnVisible
-
toggleColumn
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
-
getHiddenLoggers
-
getTimeZone
-
setTimeZone
-
setHiddenExpression
-
getHiddenExpression
-
setAlwaysDisplayExpression
-
getAlwaysDisplayExpression
-
setClearTableExpression
-
getClearTableExpression
-