Class AbstractListEditor<D,V extends AbstractListItemView<D>>
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.google.gwt.user.client.ui.FlowPanel
de.knightsoftnet.mtwidgets.client.ui.widget.helper.AbstractListEditor<D,V>
- Type Parameters:
D- type of item data to editV- type of view of the single items
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.logical.shared.HasValueChangeHandlers<List<D>>,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.HasWidgets,com.google.gwt.user.client.ui.HasWidgets.ForIsWidget,com.google.gwt.user.client.ui.IndexedPanel,com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget,com.google.gwt.user.client.ui.InsertPanel,com.google.gwt.user.client.ui.InsertPanel.ForIsWidget,com.google.gwt.user.client.ui.IsWidget,HasValidationMessageElement<List<D>,,ListValidationEditor<D, V>> Iterable<com.google.gwt.user.client.ui.Widget>,org.gwtproject.editor.client.Editor<List<D>>,org.gwtproject.editor.client.HasEditorErrors<List<D>>,org.gwtproject.editor.client.IsEditor<ListValidationEditor<D,V>>
public abstract class AbstractListEditor<D,V extends AbstractListItemView<D>>
extends com.google.gwt.user.client.ui.FlowPanel
implements com.google.gwt.event.logical.shared.HasValueChangeHandlers<List<D>>, HasValidationMessageElement<List<D>,ListValidationEditor<D,V>>
editor to show a list of items entries.
- Author:
- Manfred Tremmel
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabledNested classes/interfaces inherited from interface org.gwtproject.editor.client.Editor
org.gwtproject.editor.client.Editor.Ignore, org.gwtproject.editor.client.Editor.PathNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidgetNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.IndexedPanel
com.google.gwt.user.client.ui.IndexedPanel.ForIsWidgetNested classes/interfaces inherited from interface com.google.gwt.user.client.ui.InsertPanel
com.google.gwt.user.client.ui.InsertPanel.ForIsWidget -
Field Summary
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd a new entry at the end of the list.com.google.gwt.event.shared.HandlerRegistrationaddValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<List<D>> handler) protected abstract Dcreate new instance of a data element.com.google.gwt.user.client.ui.HTMLPanelget validation message element.voidmove one entry in the list.voidremoveEntry(int pos) remove an existing entry.voidremoveEntry(V entry) remove an existing entry.voidsetCustomValidity(String message) set custom validity value.final voidsetParentDriver(BeanValidationEditorDriver<?, ?> parentDriver) set parent editor driver.voidsetValidationMessageElement(com.google.gwt.user.client.ui.HTMLPanel element) set validation message element.Methods inherited from class com.google.gwt.user.client.ui.FlowPanel
add, clear, insert, insertMethods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, add, adjustIndex, checkIndexBoundsForAccess, checkIndexBoundsForInsertion, getChildren, getWidget, getWidgetCount, getWidgetIndex, getWidgetIndex, insert, insert, iterator, remove, removeMethods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, doAttachChildren, doDetachChildren, orphan, removeMethods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEventMethods inherited from interface de.knightsoftnet.mtwidgets.client.ui.widget.features.HasValidationMessageElement
editorErrorMatches, setTitle, showErrors, showErrorsMethods inherited from interface com.google.gwt.user.client.ui.IndexedPanel
getWidget, getWidgetCount, getWidgetIndex, removeMethods inherited from interface com.google.gwt.user.client.ui.IndexedPanel.ForIsWidget
getWidgetIndexMethods inherited from interface com.google.gwt.user.client.ui.InsertPanel.ForIsWidget
addMethods inherited from interface org.gwtproject.editor.client.IsEditor
asEditorMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AbstractListEditor
public AbstractListEditor()
-
-
Method Details
-
removeEntry
public void removeEntry(int pos) remove an existing entry.- Parameters:
pos- position of the entry to remove
-
removeEntry
remove an existing entry.- Parameters:
entry- the entry to remove
-
addNewEntry
public void addNewEntry()add a new entry at the end of the list. -
moveEntry
move one entry in the list.- Parameters:
entry- the entry we want to movenewPos- new position in the list
-
createData
create new instance of a data element.- Returns:
- data element
-
setParentDriver
set parent editor driver.- Parameters:
parentDriver- BeanValidationEditorDriver to set
-
setCustomValidity
Description copied from interface:HasValidationMessageElementset custom validity value.- Specified by:
setCustomValidityin interfaceHasValidationMessageElement<D,V extends AbstractListItemView<D>> - Parameters:
message- message to show
-
setValidationMessageElement
public void setValidationMessageElement(com.google.gwt.user.client.ui.HTMLPanel element) Description copied from interface:HasValidationMessageElementset validation message element.- Specified by:
setValidationMessageElementin interfaceHasValidationMessageElement<D,V extends AbstractListItemView<D>> - Parameters:
element- element to set
-
getValidationMessageElement
public com.google.gwt.user.client.ui.HTMLPanel getValidationMessageElement()Description copied from interface:HasValidationMessageElementget validation message element.- Specified by:
getValidationMessageElementin interfaceHasValidationMessageElement<D,V extends AbstractListItemView<D>> - Returns:
- element or null if non is set
-