|
|
@ -9,10 +9,9 @@ import com.fr.form.ui.Widget; |
|
|
|
public class ListenerEffectItem extends BaseEffectItem<Listener> { |
|
|
|
public class ListenerEffectItem extends BaseEffectItem<Listener> { |
|
|
|
private Listener listener; |
|
|
|
private Listener listener; |
|
|
|
|
|
|
|
|
|
|
|
public ListenerEffectItem(Listener listener, SourceNode sourceNode, String name) { |
|
|
|
public ListenerEffectItem(Listener listener, SourceNode sourceNode) { |
|
|
|
this.listener = listener; |
|
|
|
this.listener = listener; |
|
|
|
this.setSourceNode(sourceNode); |
|
|
|
this.setSourceNode(sourceNode); |
|
|
|
this.setName(name); |
|
|
|
|
|
|
|
init(); |
|
|
|
init(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -24,6 +23,8 @@ public class ListenerEffectItem extends BaseEffectItem<Listener> { |
|
|
|
object = new Listener(listener.getTargetWidget(), listener.getEventName(), listener.getAction(), listener.isInvokeOnce()); |
|
|
|
object = new Listener(listener.getTargetWidget(), listener.getEventName(), listener.getAction(), listener.isInvokeOnce()); |
|
|
|
} |
|
|
|
} |
|
|
|
setObject(object); |
|
|
|
setObject(object); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setName(listener.getName()); |
|
|
|
this.setNameableCreator(new EventCreator(Widget.EVENT_STATECHANGE, EventPropertyTable.WidgetEventListenerUpdatePane.class)); |
|
|
|
this.setNameableCreator(new EventCreator(Widget.EVENT_STATECHANGE, EventPropertyTable.WidgetEventListenerUpdatePane.class)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -32,7 +33,13 @@ public class ListenerEffectItem extends BaseEffectItem<Listener> { |
|
|
|
setObject((Listener) bean); |
|
|
|
setObject((Listener) bean); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setName(String name) { |
|
|
|
|
|
|
|
super.setName(name); |
|
|
|
|
|
|
|
getObject().setName(name); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void save() { |
|
|
|
public void save() { |
|
|
|
|
|
|
|
listener.setName(getObject().getName()); |
|
|
|
listener.setEventName(getObject().getEventName()); |
|
|
|
listener.setEventName(getObject().getEventName()); |
|
|
|
listener.setAction(getObject().getAction()); |
|
|
|
listener.setAction(getObject().getAction()); |
|
|
|
listener.setInvokeOnce(getObject().isInvokeOnce()); |
|
|
|
listener.setInvokeOnce(getObject().isInvokeOnce()); |
|
|
|