| Modifier and Type | Field and Description |
|---|---|
static FilterChain |
CHAIN
FilterChain的单例实例,它总是包含一个RefreshFilter,
它不会调用链中的下一个过滤器。如果一个文档只是从一种格式转换成另一种格式,那么应该使用这个链. |
static RefreshFilter |
INSTANCE
刷新过滤器的单例实例,它不会调用链中的下一个过滤器.
|
| Constructor and Description |
|---|
RefreshFilter()
创建一个新的刷新筛选器.
|
RefreshFilter(boolean lastFilter)
创建一个新的刷新筛选器,它将根据指定的参数调用或不调用链中的下一个筛选器.
|
| Modifier and Type | Method and Description |
|---|---|
void |
doFilter(Context context,
com.sun.star.lang.XComponent document,
FilterChain chain)
由于转换请求,每次通过链传递文档时,都会调用过滤器的doFilter方法。
传入此方法的筛选器链允许筛选器将文档传递给链中的下一个实体.
|
public static final RefreshFilter INSTANCE
public static final FilterChain CHAIN
FilterChain的单例实例,它总是包含一个RefreshFilter,
它不会调用链中的下一个过滤器。如果一个文档只是从一种格式转换成另一种格式,那么应该使用这个链.public RefreshFilter()
public RefreshFilter(boolean lastFilter)
lastFilter - 如果true,那么过滤器将不会调用链中的下一个过滤器.
如果false,则应用链中的下一个过滤器(如果有).public void doFilter(Context context, com.sun.star.lang.XComponent document, FilterChain chain)
FilterCopyright © 2019. All rights reserved.