Source code: com/arranger/jarl/widget/filter/BaseFilterWidget.java
1 package com.arranger.jarl.widget.filter;
2
3 import com.arranger.jarl.widget.BaseSegmentWidget;
4 import com.arranger.jarl.base.IContext;
5
6 /**
7 * BaseFilterWidget basically just ensures that
8 * nobody tries to use Strokes
9 */
10 public abstract class BaseFilterWidget extends BaseSegmentWidget {
11
12 /**
13 * Always remember some attrs might not be there
14 * @param context
15 */
16 protected void initAttributes(IContext context) {
17 super.initAttributes(context);
18 if (!m_strokes.isEmpty()) {
19 throw new IllegalStateException(getName() + " is not allowed " +
20 "to have any strokes");
21 }
22 }
23 }