Class FieldItemViewImpl
- java.lang.Object
-
- org.drools.workbench.screens.scenariosimulation.client.rightpanel.FieldItemViewImpl
-
- All Implemented Interfaces:
FieldItemView
@Templated public class FieldItemViewImpl extends Object implements FieldItemView
This class is used to represent a simple (i.e. not expandable) property, like for example java primitives
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.drools.workbench.screens.scenariosimulation.client.rightpanel.FieldItemView
FieldItemView.Presenter
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.gwt.dom.client.SpanElementcheckElementprotected com.google.gwt.dom.client.LIElementfieldElementprotected com.google.gwt.dom.client.SpanElementfieldNameElement
-
Constructor Summary
Constructors Constructor Description FieldItemViewImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetClassName()StringgetClassTypeName()StringgetFactName()StringgetFieldName()List<String>getFullPath()com.google.gwt.dom.client.LIElementgetLIElement()inthashCode()voidhide()booleanisCheckShown()voidonFieldElementClick(com.google.gwt.event.dom.client.ClickEvent clickEvent)voidonFieldElementSelected()It manages the fieldElement when is automatically selected.voidsetFieldData(List<String> fullPath, String factName, String fieldName, String className, String classTypeName)voidsetPresenter(FieldItemView.Presenter fieldItemPresenter)voidshow()voidshowCheck(boolean show)StringtoString()voidunselect()
-
-
-
Field Detail
-
fieldElement
@DataField("fieldElement") protected com.google.gwt.dom.client.LIElement fieldElement
-
fieldNameElement
@DataField("fieldNameElement") protected com.google.gwt.dom.client.SpanElement fieldNameElement
-
checkElement
@DataField("checkElement") protected com.google.gwt.dom.client.SpanElement checkElement
-
-
Method Detail
-
setFieldData
public void setFieldData(List<String> fullPath, String factName, String fieldName, String className, String classTypeName)
- Specified by:
setFieldDatain interfaceFieldItemView- Parameters:
fullPath- The parent path (empty if the properties belongs to a top-level element)
-
getFullPath
public List<String> getFullPath()
- Specified by:
getFullPathin interfaceFieldItemView
-
getFactName
public String getFactName()
- Specified by:
getFactNamein interfaceFieldItemView
-
getFieldName
public String getFieldName()
- Specified by:
getFieldNamein interfaceFieldItemView
-
getClassName
public String getClassName()
- Specified by:
getClassNamein interfaceFieldItemView
-
getClassTypeName
public String getClassTypeName()
- Specified by:
getClassTypeNamein interfaceFieldItemView
-
setPresenter
public void setPresenter(FieldItemView.Presenter fieldItemPresenter)
- Specified by:
setPresenterin interfaceFieldItemView
-
getLIElement
public com.google.gwt.dom.client.LIElement getLIElement()
- Specified by:
getLIElementin interfaceFieldItemView
-
onFieldElementClick
@EventHandler("fieldElement") public void onFieldElementClick(com.google.gwt.event.dom.client.ClickEvent clickEvent)
-
onFieldElementSelected
public void onFieldElementSelected()
Description copied from interface:FieldItemViewIt manages the fieldElement when is automatically selected.- Specified by:
onFieldElementSelectedin interfaceFieldItemView
-
showCheck
public void showCheck(boolean show)
- Specified by:
showCheckin interfaceFieldItemView
-
isCheckShown
public boolean isCheckShown()
- Specified by:
isCheckShownin interfaceFieldItemView
-
unselect
public void unselect()
- Specified by:
unselectin interfaceFieldItemView
-
hide
public void hide()
- Specified by:
hidein interfaceFieldItemView
-
show
public void show()
- Specified by:
showin interfaceFieldItemView
-
-