Class ImageListEditor<T>
- java.lang.Object
-
- org.dashbuilder.common.client.editor.list.ImageListEditor<T>
-
- Type Parameters:
T- The edited type.
- All Implemented Interfaces:
com.google.gwt.editor.client.Editor<T>,com.google.gwt.editor.client.HasEditorErrors<T>,com.google.gwt.editor.client.LeafValueEditor<T>,com.google.gwt.user.client.TakesValue<T>,com.google.gwt.user.client.ui.IsWidget,LeafAttributeEditor<T>
- Direct Known Subclasses:
DropDownImageListEditor,HorizImageListEditor
public abstract class ImageListEditor<T> extends Object implements com.google.gwt.user.client.ui.IsWidget, LeafAttributeEditor<T>
Presenter for a gwt editor component that accepts multiple values and display each one using a given image.
The validation error messages are displayed by changing border color to RED and showing the message using a tooltip.
This component is typically used for handling enums.
- Since:
- 0.4.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classImageListEditor.Entry
-
Field Summary
Fields Modifier and Type Field Description ImageListEditorView<T>view
-
Constructor Summary
Constructors Constructor Description ImageListEditor(ImageListEditorView<T> view, javax.enterprise.event.Event<ValueChangeEvent<T>> valueChangeEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwt.user.client.ui.WidgetasWidget()voidclear()TgetValue()voidinit()ImageListEditor.EntrynewEntry(T value, com.google.gwt.safehtml.shared.SafeUri uri, com.google.gwt.safehtml.shared.SafeHtml heading, com.google.gwt.safehtml.shared.SafeHtml text)voidsetEntries(Collection<ImageListEditor.Entry> entries)voidsetHelpContent(String title, String content, org.gwtbootstrap3.client.ui.constants.Placement placement)voidsetImageSize(String w, String h)voidsetValue(T value)voidsetValue(T value, boolean fireEvents)protected voidshowElements()PRIVATE EDITOR METHODS **voidshowErrors(List<com.google.gwt.editor.client.EditorError> errors)GWT EDITOR CONTRACT METHODS **
-
-
-
Field Detail
-
view
public ImageListEditorView<T> view
-
-
Constructor Detail
-
ImageListEditor
public ImageListEditor(ImageListEditorView<T> view, javax.enterprise.event.Event<ValueChangeEvent<T>> valueChangeEvent)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
newEntry
public ImageListEditor.Entry newEntry(T value, com.google.gwt.safehtml.shared.SafeUri uri, com.google.gwt.safehtml.shared.SafeHtml heading, com.google.gwt.safehtml.shared.SafeHtml text)
-
setEntries
public void setEntries(Collection<ImageListEditor.Entry> entries)
-
setHelpContent
public void setHelpContent(String title, String content, org.gwtbootstrap3.client.ui.constants.Placement placement)
-
showErrors
public void showErrors(List<com.google.gwt.editor.client.EditorError> errors)
GWT EDITOR CONTRACT METHODS **- Specified by:
showErrorsin interfacecom.google.gwt.editor.client.HasEditorErrors<T>
-
getValue
public T getValue()
- Specified by:
getValuein interfacecom.google.gwt.user.client.TakesValue<T>
-
setValue
public void setValue(T value)
- Specified by:
setValuein interfacecom.google.gwt.user.client.TakesValue<T>
-
setValue
public void setValue(T value, boolean fireEvents)
-
asWidget
public com.google.gwt.user.client.ui.Widget asWidget()
- Specified by:
asWidgetin interfacecom.google.gwt.user.client.ui.IsWidget
-
clear
public void clear()
-
showElements
protected void showElements()
PRIVATE EDITOR METHODS **
-
-