svn-gvsig-desktop / trunk / applications / appgvSIG / src / com / iver / cit / gvsig / gui / styling / AbstractStyleSelectorFilter.java @ 27580
History | View | Annotate | Download (563 Bytes)
1 | 22951 | vcaballero | package com.iver.cit.gvsig.gui.styling; |
---|---|---|---|
2 | |||
3 | import com.iver.cit.gvsig.fmap.core.styles.IStyle; |
||
4 | |||
5 | public class AbstractStyleSelectorFilter implements StyleSelectorFilter { |
||
6 | |||
7 | IStyle allowedStyle = null;
|
||
8 | |||
9 | public AbstractStyleSelectorFilter(IStyle sty) {
|
||
10 | this.allowedStyle = sty;
|
||
11 | } |
||
12 | |||
13 | public boolean accepts(Object obj) { |
||
14 | return obj.getClass().equals(allowedStyle.getClass());
|
||
15 | } |
||
16 | |||
17 | public IStyle getAllowedObject() {
|
||
18 | return allowedStyle;
|
||
19 | } |
||
20 | |||
21 | public void setAllowedObject(IStyle allowedObject) { |
||
22 | this.allowedStyle = allowedObject;
|
||
23 | } |
||
24 | |||
25 | } |