T
- The edited type.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.
Modifier and Type | Class and Description |
---|---|
class |
ImageListEditor.Entry |
Modifier and Type | Field and Description |
---|---|
ImageListEditorView<T> |
view |
Constructor and Description |
---|
ImageListEditor(ImageListEditorView<T> view,
javax.enterprise.event.Event<ValueChangeEvent<T>> valueChangeEvent) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.user.client.ui.Widget |
asWidget() |
void |
clear() |
T |
getValue() |
void |
init() |
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) |
void |
setEntries(Collection<ImageListEditor.Entry> entries) |
void |
setHelpContent(String title,
String content,
org.gwtbootstrap3.client.ui.constants.Placement placement) |
void |
setImageSize(String w,
String h) |
void |
setValue(T value) |
void |
setValue(T value,
boolean fireEvents) |
protected void |
showElements()
PRIVATE EDITOR METHODS **
|
void |
showErrors(List<com.google.gwt.editor.client.EditorError> errors)
GWT EDITOR CONTRACT METHODS **
|
public ImageListEditorView<T> view
public ImageListEditor(ImageListEditorView<T> view, javax.enterprise.event.Event<ValueChangeEvent<T>> valueChangeEvent)
@PostConstruct public void init()
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)
public void setEntries(Collection<ImageListEditor.Entry> entries)
public void setHelpContent(String title, String content, org.gwtbootstrap3.client.ui.constants.Placement placement)
public void showErrors(List<com.google.gwt.editor.client.EditorError> errors)
showErrors
in interface com.google.gwt.editor.client.HasEditorErrors<T>
public T getValue()
getValue
in interface com.google.gwt.user.client.TakesValue<T>
public void setValue(T value)
setValue
in interface com.google.gwt.user.client.TakesValue<T>
public void setValue(T value, boolean fireEvents)
public com.google.gwt.user.client.ui.Widget asWidget()
asWidget
in interface com.google.gwt.user.client.ui.IsWidget
public void clear()
protected void showElements()
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.