/** * Builds a fresh DefaultPlayableNotifier */ public DefaultPlayableNotifier(){ myNotifier = new DefaultNotifier<T>(); }
/** Creates new form ConversationInputPanel */ public ConversationInputPanel() { initComponents(); myNotifier = new DefaultNotifier<String>(); }
/** * Initializes a property with type and value * @param valueClass type of the property * @param value value of the property */ public DefaultConfigProperty(Class<V> valueClass, V value) { myValue = value; myValueClass = valueClass; myNotifier = new DefaultNotifier<ValueChange<V>>(); myListener = new PropertySetter(); mySource = new Source<V>() { @Override public V getValue() { return myValue; } }; }
/** * Builds a DefaultProcessorNode from an Adapter * @param proc */ public DefaultProcessorNode(Adapter<In,Out> proc){ if(proc == null){ throw new NullPointerException(); } myInputListener = new ConditionalListener<In>(this, new DefaultInputListener()); myOutputNotifier = new ConditionalNotifier<Out>(this, new DefaultNotifier<Out>()); myProcessor = proc; }