public abstract class BaseCardComponent<R extends BaseIncludedModelActiveRecord,V extends BaseCardComponent.ContentView> extends Object implements CardComponent
Modifier and Type | Class and Description |
---|---|
static interface |
BaseCardComponent.ContentView |
Modifier and Type | Field and Description |
---|---|
protected V |
contentView |
protected DMNCardsGridComponent |
grid |
protected R |
includedModel |
protected javax.enterprise.event.Event<RefreshDecisionComponents> |
refreshDecisionComponentsEvent |
DEFAULT_FUNCTION
Constructor and Description |
---|
BaseCardComponent(V contentView,
javax.enterprise.event.Event<RefreshDecisionComponents> refreshDecisionComponentsEvent) |
Modifier and Type | Method and Description |
---|---|
elemental2.dom.HTMLElement |
getContent() |
com.google.gwt.dom.client.Style.HasCssName |
getIcon() |
String |
getTitle() |
protected String |
getTruncatedSubTitle() |
String |
getUUID() |
void |
init() |
Function<String,Boolean> |
onTitleChanged() |
protected void |
refreshView() |
void |
remove() |
void |
setup(DMNCardsGridComponent grid,
R includedModel) |
protected final V extends BaseCardComponent.ContentView contentView
protected final javax.enterprise.event.Event<RefreshDecisionComponents> refreshDecisionComponentsEvent
protected R extends BaseIncludedModelActiveRecord includedModel
protected DMNCardsGridComponent grid
public BaseCardComponent(V contentView, javax.enterprise.event.Event<RefreshDecisionComponents> refreshDecisionComponentsEvent)
@PostConstruct public void init()
public void setup(DMNCardsGridComponent grid, R includedModel)
protected void refreshView()
public com.google.gwt.dom.client.Style.HasCssName getIcon()
getIcon
in interface CardComponent
public String getTitle()
getTitle
in interface CardComponent
public String getUUID()
getUUID
in interface CardComponent
public elemental2.dom.HTMLElement getContent()
getContent
in interface CardComponent
public Function<String,Boolean> onTitleChanged()
onTitleChanged
in interface CardComponent
protected String getTruncatedSubTitle()
public void remove()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.