Class AutoFilter
- java.lang.Object
-
- org.openstreetmap.josm.gui.autofilter.AutoFilter
-
public class AutoFilter extends Object
An auto filter is a graphical shortcut to enable a filter for a specific tag.- Since:
- 12400
-
-
Field Summary
Fields Modifier and Type Field Description private String
description
private AutoFilterManager.CompiledFilter
filter
private String
label
-
Constructor Summary
Constructors Constructor Description AutoFilter(String label, String description, AutoFilterManager.CompiledFilter filter)
Constructs a newAutoFilter
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getDescription()
Returns the button tooltip.AutoFilterManager.CompiledFilter
getFilter()
Returns the filter.String
getLabel()
Returns the button label.int
hashCode()
String
toString()
-
-
-
Field Detail
-
description
private final String description
-
filter
private final AutoFilterManager.CompiledFilter filter
-
-
Constructor Detail
-
AutoFilter
public AutoFilter(String label, String description, AutoFilterManager.CompiledFilter filter)
Constructs a newAutoFilter
.- Parameters:
label
- button labeldescription
- button tooltipfilter
- associated filter
-
-
Method Detail
-
getDescription
public String getDescription()
Returns the button tooltip.- Returns:
- the button tooltip
-
getFilter
public AutoFilterManager.CompiledFilter getFilter()
Returns the filter.- Returns:
- the filter
-
-