public class HierarchyFilter extends AuditModelFilter
AuditModelFilter
which passes all violation rows and filters other
rows by type of construct. The construct type is determined by
AuditModel.getType(Object)
.Constructor and Description |
---|
HierarchyFilter() |
HierarchyFilter(boolean hierarchy,
boolean emptyHierarchy) |
HierarchyFilter(java.lang.String persistenceKey) |
HierarchyFilter(java.lang.String persistenceKey,
ModelTypeFactory factory,
boolean hierarchy,
boolean emptyHierarchy) |
Modifier and Type | Method and Description |
---|---|
javax.swing.Icon |
getIcon(java.lang.Class<?> type)
Gets the icon for a presentation type.
|
java.lang.String |
getLabel(java.lang.Class<?> type)
Gets the label for a presentation type.
|
ModelType |
getModelType(java.lang.Class<?> type)
Gets the model type for a presentation type.
|
java.util.Collection<ModelType> |
getModelTypes()
Gets the model types known to this filter.
|
java.lang.String |
getSummary(java.lang.Class<?> type)
Gets the summary for a presentation type.
|
boolean |
isEmptyHierarchy() |
boolean |
isHierarchy() |
boolean |
isVisible(java.lang.Object object)
Gets whether a row in an
AuditModel is visible. |
void |
setAll(boolean hierarchy,
boolean emptyHierarchy,
java.util.Map<java.lang.Class<?>,java.lang.Boolean> visibilities)
Sets whether a collection of view types is visible.
|
void |
setEmptyHierarchy(boolean emptyHierarchy) |
void |
setHierarchy(boolean hierarchy) |
void |
setTypeVisibilities(java.util.Map<java.lang.Class<?>,java.lang.Boolean> visibilities)
Sets whether a collection of view types is visible.
|
void |
setTypeVisibility(java.lang.Class<?> type,
boolean visible)
Sets whether a view type is visible.
|
void |
setVisibleTypes(java.lang.Class<?>... types)
Sets whether a list of presentation types is visible.
|
addChangeListener, fireStateChanged, getModel, removeChangeListener, setModel
public HierarchyFilter()
public HierarchyFilter(boolean hierarchy, boolean emptyHierarchy)
public HierarchyFilter(java.lang.String persistenceKey)
public HierarchyFilter(java.lang.String persistenceKey, ModelTypeFactory factory, boolean hierarchy, boolean emptyHierarchy)
public void setHierarchy(boolean hierarchy)
public void setEmptyHierarchy(boolean emptyHierarchy)
public boolean isHierarchy()
public boolean isEmptyHierarchy()
public boolean isVisible(java.lang.Object object)
AuditModelFilter
AuditModel
is visible.isVisible
in class AuditModelFilter
public void setTypeVisibility(java.lang.Class<?> type, boolean visible)
type
- A presentation type of this filter.public void setTypeVisibilities(java.util.Map<java.lang.Class<?>,java.lang.Boolean> visibilities)
visibilities
- A map from type to visibility.public void setAll(boolean hierarchy, boolean emptyHierarchy, java.util.Map<java.lang.Class<?>,java.lang.Boolean> visibilities)
visibilities
- A map from type to visibility.public void setVisibleTypes(java.lang.Class<?>... types)
types
- A collection of presentation types to set visible.public java.util.Collection<ModelType> getModelTypes()
public ModelType getModelType(java.lang.Class<?> type)
public java.lang.String getLabel(java.lang.Class<?> type)
public java.lang.String getSummary(java.lang.Class<?> type)
public javax.swing.Icon getIcon(java.lang.Class<?> type)