@Dependent @Templated public class DataTypeListItemView extends Object implements DataTypeListItem.View
Modifier and Type | Field and Description |
---|---|
static String |
NAME_DATA_FIELD |
static String |
UUID_ATTR |
Constructor and Description |
---|
DataTypeListItemView(elemental2.dom.HTMLDivElement view,
org.jboss.errai.ui.client.local.spi.TranslationService translationService) |
Modifier and Type | Method and Description |
---|---|
void |
collapse() |
void |
disableFocusMode() |
void |
enableFocusMode() |
void |
expand() |
elemental2.dom.HTMLElement |
getElement() |
String |
getName() |
void |
hideDataTypeNameInput() |
void |
hideListContainer() |
void |
hideListYesLabel() |
void |
init(DataTypeListItem presenter) |
boolean |
isCollapsed() |
boolean |
isOnFocusMode() |
void |
setDataType(DataType dataType) |
void |
setName(String name) |
void |
setupConstraintComponent(DataTypeConstraint dataTypeConstraintComponent) |
void |
setupListComponent(SmallSwitchComponent dataTypeListComponent) |
void |
setupSelectComponent(DataTypeSelect typeSelect) |
void |
showDataTypeNameInput() |
void |
showEditButton() |
void |
showListContainer() |
void |
showListYesLabel() |
void |
showSaveButton() |
void |
toggleArrow(boolean show) |
public static final String UUID_ATTR
public static final String NAME_DATA_FIELD
@Inject public DataTypeListItemView(elemental2.dom.HTMLDivElement view, org.jboss.errai.ui.client.local.spi.TranslationService translationService)
public void init(DataTypeListItem presenter)
init
in interface org.uberfire.client.mvp.HasPresenter<DataTypeListItem>
public elemental2.dom.HTMLElement getElement()
getElement
in interface org.jboss.errai.common.client.api.elemental2.IsElement
public void toggleArrow(boolean show)
toggleArrow
in interface DataTypeListItem.View
public void expand()
expand
in interface DataTypeListItem.View
public void collapse()
collapse
in interface DataTypeListItem.View
public void showEditButton()
showEditButton
in interface DataTypeListItem.View
public void showSaveButton()
showSaveButton
in interface DataTypeListItem.View
public void enableFocusMode()
enableFocusMode
in interface DataTypeListItem.View
public void disableFocusMode()
disableFocusMode
in interface DataTypeListItem.View
public boolean isOnFocusMode()
isOnFocusMode
in interface DataTypeListItem.View
public String getName()
getName
in interface DataTypeListItem.View
public void setName(String name)
setName
in interface DataTypeListItem.View
public void showDataTypeNameInput()
showDataTypeNameInput
in interface DataTypeListItem.View
public void hideDataTypeNameInput()
hideDataTypeNameInput
in interface DataTypeListItem.View
public void setupSelectComponent(DataTypeSelect typeSelect)
setupSelectComponent
in interface DataTypeListItem.View
public void setupConstraintComponent(DataTypeConstraint dataTypeConstraintComponent)
setupConstraintComponent
in interface DataTypeListItem.View
public void setupListComponent(SmallSwitchComponent dataTypeListComponent)
setupListComponent
in interface DataTypeListItem.View
public void showListContainer()
showListContainer
in interface DataTypeListItem.View
public void hideListContainer()
hideListContainer
in interface DataTypeListItem.View
public void showListYesLabel()
showListYesLabel
in interface DataTypeListItem.View
public void hideListYesLabel()
hideListYesLabel
in interface DataTypeListItem.View
public boolean isCollapsed()
isCollapsed
in interface DataTypeListItem.View
public void setDataType(DataType dataType)
setDataType
in interface DataTypeListItem.View
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.