Package org.apache.log4j.chainsaw
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 List
private String
private String
private boolean
static final Collection
private String
private boolean
private String
private Collection
private boolean
static final String
private boolean
private String
private boolean
private final PropertyChangeSupport
private boolean
private boolean
private static final long
private boolean
private boolean
private String
private boolean
private List
private List
private boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
addColumn
(TableColumn column) void
void
addPropertyChangeListener
(String propertyName, PropertyChangeListener listener) void
apply
(LogPanelPreferenceModel model) Applies all the properties of another model to this modelvoid
private TableColumn
findColumnByHeader
(List list, String header) Returns an unmodifiable list of the columns.final String
Returns the Date Pattern string for the alternate date formatter.final String
Returns the Logger precision.Returns an unmodifiable list of the visible columns.boolean
isColumnVisible
(TableColumn column) Returns true if the named column should be made visible otherwise false.boolean
boolean
isCyclic()
final boolean
boolean
boolean
final boolean
final boolean
boolean
final boolean
final boolean
final boolean
boolean
Returns true if this the fast ISO8601DateFormat object should be used instead of SimpleDateFormatboolean
void
void
removePropertyChangeListener
(String propertyName, PropertyChangeListener listener) void
setAlwaysDisplayExpression
(String alwaysDisplayExpression) void
setClearTableExpression
(String clearTableExpression) private void
setColumns
(List columns) void
setColumnVisible
(String columnName, boolean isVisible) void
setCyclic
(boolean cyclic) final void
setDateFormatPattern
(String dateFormatPattern) final void
final void
setDetailPaneVisible
(boolean detailPaneVisible) void
setHiddenExpression
(String hiddenExpression) void
setHiddenLoggers
(Collection hiddenSet) void
setHighlightSearchMatchText
(boolean highlightSearchMatchText) void
setLevelIcons
(boolean levelIcons) void
setLoggerPrecision
(String loggerPrecision) final void
setLogTreePanelVisible
(boolean logTreePanelVisible) final void
setScrollToBottom
(boolean scrollToBottom) void
setSearchResultsVisible
(boolean searchResultsVisible) final void
setShowMillisDeltaAsGap
(boolean showMillisDeltaAsGap) final void
setThumbnailBarToolTips
(boolean thumbnailBarToolTips) void
setTimeZone
(String timeZone) final void
setToolTips
(boolean toolTips) void
setVisibleColumnOrder
(List visibleColumnOrder) private void
setVisibleColumns
(List visibleColumns) void
setWrapMessage
(boolean wrapMsg) void
toggleColumn
(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
Returns the Logger precision.- Returns:
- logger precision
-
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
-