|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.log4j.chainsaw.LogPanelPreferenceModel
public class LogPanelPreferenceModel
Used to encapsulate all the preferences for a given LogPanel
Field Summary | |
---|---|
static java.util.Collection |
DATE_FORMATS
|
static java.lang.String |
ISO8601
|
Constructor Summary | |
---|---|
LogPanelPreferenceModel()
|
Method Summary | |
---|---|
boolean |
addColumn(javax.swing.table.TableColumn column)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
addPropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
|
void |
apply(LogPanelPreferenceModel model)
Applies all the properties of another model to this model |
void |
clearColumns()
|
java.util.List |
getColumns()
Returns an unmodifiable list of the columns. |
java.lang.String |
getDateFormatPattern()
Returns the Date Pattern string for the alternate date formatter. |
java.util.Collection |
getHiddenLoggers()
|
java.lang.String |
getLoggerPrecision()
Returns the Logger precision. |
java.util.List |
getVisibleColumnOrder()
|
java.util.List |
getVisibleColumns()
Returns an unmodifiable list of the visible columns. |
boolean |
isColumnVisible(javax.swing.table.TableColumn column)
Returns true if the named column should be made visible otherwise false. |
boolean |
isCustomDateFormat()
|
boolean |
isDetailPaneVisible()
|
boolean |
isLevelIcons()
|
boolean |
isLogTreePanelVisible()
|
boolean |
isScrollToBottom()
|
boolean |
isToolTips()
|
boolean |
isUseISO8601Format()
Returns true if this the fast ISO8601DateFormat object should be used instead of SimpleDateFormat |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
|
void |
setColumnVisible(java.lang.String columnName,
boolean isVisible)
|
void |
setDateFormatPattern(java.lang.String dateFormatPattern)
|
void |
setDefaultDatePatternFormat()
|
void |
setDetailPaneVisible(boolean detailPaneVisible)
|
void |
setHiddenLoggers(java.util.Collection hiddenSet)
|
void |
setLevelIcons(boolean levelIcons)
|
void |
setLoggerPrecision(java.lang.String loggerPrecision)
|
void |
setLogTreePanelVisible(boolean logTreePanelVisible)
|
void |
setScrollToBottom(boolean scrollToBottom)
|
void |
setToolTips(boolean toolTips)
|
void |
setVisibleColumnOrder(java.util.List visibleColumnOrder)
|
void |
toggleColumn(javax.swing.table.TableColumn column)
Toggles the state between visible, non-visible for a particular Column name |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ISO8601
public static final java.util.Collection DATE_FORMATS
Constructor Detail |
---|
public LogPanelPreferenceModel()
Method Detail |
---|
public java.util.List getColumns()
public java.util.List getVisibleColumns()
public void clearColumns()
public void setVisibleColumnOrder(java.util.List visibleColumnOrder)
public java.util.List getVisibleColumnOrder()
public boolean addColumn(javax.swing.table.TableColumn column)
public final java.lang.String getDateFormatPattern()
public final void setDefaultDatePatternFormat()
public final void setDateFormatPattern(java.lang.String dateFormatPattern)
dateFormatPattern
- public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- listener
- public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- listener
- public void apply(LogPanelPreferenceModel model)
model
- the model to copy
all the properties frompublic boolean isUseISO8601Format()
public boolean isLevelIcons()
public void setLevelIcons(boolean levelIcons)
levelIcons
- public void setLoggerPrecision(java.lang.String loggerPrecision)
loggerPrecision
- - an integer representing the number of packages to display,
or an empty string representing 'display all packages'public final java.lang.String getLoggerPrecision()
public boolean isColumnVisible(javax.swing.table.TableColumn column)
columnName
-
public void setColumnVisible(java.lang.String columnName, boolean isVisible)
public void toggleColumn(javax.swing.table.TableColumn column)
column
- public final boolean isDetailPaneVisible()
public final void setDetailPaneVisible(boolean detailPaneVisible)
detailPaneVisible
- public final boolean isScrollToBottom()
public final void setScrollToBottom(boolean scrollToBottom)
scrollToBottom
- public final boolean isToolTips()
public final void setToolTips(boolean toolTips)
toolTips
- public final boolean isLogTreePanelVisible()
public final void setLogTreePanelVisible(boolean logTreePanelVisible)
logTreePanelVisible
- public boolean isCustomDateFormat()
public void setHiddenLoggers(java.util.Collection hiddenSet)
public java.util.Collection getHiddenLoggers()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |