@Dependent public class AdvancedAnnotationListEditor extends Object implements com.google.gwt.user.client.ui.IsWidget, AdvancedAnnotationListEditorView.Presenter
| Constructor and Description |
|---|
AdvancedAnnotationListEditor(AdvancedAnnotationListEditorView view,
org.jboss.errai.common.client.api.Caller<DataModelerService> modelerService,
javax.enterprise.inject.Instance<ValuePairEditorPopup> valuePairEditorInstance,
javax.enterprise.inject.Instance<AnnotationListItem> itemInstance) |
@Inject public AdvancedAnnotationListEditor(AdvancedAnnotationListEditorView view, org.jboss.errai.common.client.api.Caller<DataModelerService> modelerService, javax.enterprise.inject.Instance<ValuePairEditorPopup> valuePairEditorInstance, javax.enterprise.inject.Instance<AnnotationListItem> itemInstance)
public com.google.gwt.user.client.ui.Widget asWidget()
asWidget in interface com.google.gwt.user.client.ui.IsWidgetpublic void init(KieModule module, ElementType elementType)
public void loadAnnotations(List<Annotation> annotations)
public void loadAnnotations(List<Annotation> annotations, Map<String,AnnotationSource> annotationSources)
public boolean isReadonly()
public void setReadonly(boolean readonly)
public void onAddAnnotation()
onAddAnnotation in interface AdvancedAnnotationListEditorView.Presenterprotected org.uberfire.client.callbacks.Callback<Annotation> getAddAnnotationCallback()
protected void onDeleteAnnotation(Annotation annotation)
protected org.uberfire.mvp.Command getDeleteAnnotationCommand(Annotation annotation)
protected org.uberfire.mvp.Command getNoActionCommand()
protected void onEditValuePair(Annotation annotation, String valuePair)
protected void onClearValuePair(Annotation annotation, String valuePair)
protected void onCollapseChange(Annotation currentAnnotation, boolean collapsed)
public void addDeleteAnnotationHandler(AdvancedAnnotationListEditorView.DeleteAnnotationHandler deleteAnnotationHandler)
public void addClearValuePairHandler(AdvancedAnnotationListEditorView.ClearValuePairHandler clearValuePairHandler)
public void addValuePairChangeHandler(AdvancedAnnotationListEditorView.ValuePairChangeHandler valuePairChangeHandler)
public void addAddAnnotationHandler(AdvancedAnnotationListEditorView.AddAnnotationHandler addAnnotationHandler)
public void clear()
public void removeAnnotation(Annotation annotation)
protected void doValuePairChange(ValuePairEditorPopup valuePairEditor, Object value)
protected void doValuePairNoAction(ValuePairEditorPopup valuePairEditor)
@PreDestroy protected void destroy()
protected AnnotationListItem createListItem()
protected ValuePairEditorPopup createValuePairEditor()
Copyright © 2001–2021 JBoss by Red Hat. All rights reserved.