com.vaadin.ui.Tree.@Deprecated public class Tree extends AbstractSelect implements Container.Hierarchical, Action.Container, ItemClickEvent.ItemClickNotifier, DragSource, DropTarget
| Modifier and Type | Class and Description |
|---|---|
static class |
Tree.CollapseEvent
Deprecated.
|
static interface |
Tree.CollapseListener
Deprecated.
|
static class |
Tree.ExpandEvent
Deprecated.
|
static interface |
Tree.ExpandListener
Deprecated.
|
static interface |
Tree.ItemStyleGenerator
Deprecated.
|
class |
Tree.TargetInSubtree
Deprecated.
|
static class |
Tree.TargetItemAllowsChildren
Deprecated.
|
static class |
Tree.TreeContextClickEvent
Deprecated.
|
static class |
Tree.TreeDragMode
Deprecated.
|
static class |
Tree.TreeDropCriterion
Deprecated.
|
class |
Tree.TreeTargetDetails
Deprecated.
|
protected class |
Tree.TreeTransferable
Deprecated.
|
AbstractSelect.AbstractSelectTargetDetails, AbstractSelect.AcceptItem, AbstractSelect.CaptionChangeListener, AbstractSelect.DefaultNewItemHandler, AbstractSelect.Filtering, AbstractSelect.ItemCaptionMode, AbstractSelect.ItemDescriptionGenerator, AbstractSelect.NewItemHandler, AbstractSelect.TargetItemIs, AbstractSelect.VerticalLocationIsAbstractField.FocusShortcut, AbstractField.ReadOnlyStatusChangeEventContainer.Editor, Container.Filter, Container.Filterable, Container.Hierarchical, Container.Indexed, Container.ItemSetChangeEvent, Container.ItemSetChangeListener, Container.ItemSetChangeNotifier, Container.Ordered, Container.PropertySetChangeEvent, Container.PropertySetChangeListener, Container.PropertySetChangeNotifier, Container.SimpleFilterable, Container.Sortable, Container.ViewerComponent.ErrorEvent, Component.Event, Component.Focusable, Component.ListenerClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListenerSizeable.UnitField.ValueChangeEventBuffered.SourceExceptionProperty.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.ViewerITEM_CAPTION_MODE_EXPLICIT, ITEM_CAPTION_MODE_EXPLICIT_DEFAULTS_ID, ITEM_CAPTION_MODE_ICON_ONLY, ITEM_CAPTION_MODE_ID, ITEM_CAPTION_MODE_INDEX, ITEM_CAPTION_MODE_ITEM, ITEM_CAPTION_MODE_PROPERTY, itemIdMapper, itemsDESIGN_ATTR_PLAIN_TEXTSIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS| Constructor and Description |
|---|
Tree()
Deprecated.
Creates a new empty tree.
|
Tree(String caption)
Deprecated.
Creates a new empty tree with caption.
|
Tree(String caption,
Container dataSource)
Deprecated.
Creates a new tree with caption and connect it to a Container.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActionHandler(Action.Handler actionHandler)
Deprecated.
Adds an action handler.
|
void |
addCollapseListener(Tree.CollapseListener listener)
Deprecated.
Adds the collapse listener.
|
void |
addExpandListener(Tree.ExpandListener listener)
Deprecated.
Adds the expand listener.
|
void |
addItemClickListener(ItemClickEvent.ItemClickListener listener)
Deprecated.
Register a listener to handle
ItemClickEvents. |
void |
addListener(ItemClickEvent.ItemClickListener listener)
Deprecated.
As of 7.0, replaced by
#addItemClickListener(ItemClickListener) |
void |
addListener(Tree.CollapseListener listener)
Deprecated.
As of 7.0, replaced by
addCollapseListener(CollapseListener) |
void |
addListener(Tree.ExpandListener listener)
Deprecated.
As of 7.0, replaced by
addExpandListener(ExpandListener) |
boolean |
areChildrenAllowed(Object itemId)
Deprecated.
Tests if the Item with given ID can have any children.
|
void |
changeVariables(Object source,
Map<String,Object> variables)
Deprecated.
Invoked when the value of a variable has changed.
|
boolean |
collapseItem(Object itemId)
Deprecated.
Collapses an item.
|
boolean |
collapseItemsRecursively(Object startItemId)
Deprecated.
Collapses the items recursively.
|
void |
containerItemSetChange(Container.ItemSetChangeEvent event)
Deprecated.
Lets the listener know a Containers Item set has changed.
|
boolean |
expandItem(Object itemId)
Deprecated.
Expands an item.
|
boolean |
expandItemsRecursively(Object startItemId)
Deprecated.
Expands the items recursively
Expands all the children recursively starting from an item.
|
protected void |
fireCollapseEvent(Object itemId)
Deprecated.
Emits collapse event.
|
protected void |
fireExpandEvent(Object itemId)
Deprecated.
Emits the expand event.
|
Collection<?> |
getChildren(Object itemId)
Deprecated.
Gets the IDs of all Items that are children of the specified Item.
|
Tree.TreeDragMode |
getDragMode()
Deprecated.
|
DropHandler |
getDropHandler()
Deprecated.
|
AbstractSelect.ItemDescriptionGenerator |
getItemDescriptionGenerator()
Deprecated.
Get the item description generator which generates tooltips for tree
items.
|
String |
getItemIconAlternateText(Object itemId)
Deprecated.
Return the alternate text of an icon in a tree item.
|
Tree.ItemStyleGenerator |
getItemStyleGenerator()
Deprecated.
|
com.vaadin.shared.ui.MultiSelectMode |
getMultiselectMode()
Deprecated.
Returns the mode the multiselect is in.
|
Object |
getParent(Object itemId)
Deprecated.
Gets the ID of the parent Item of the specified Item.
|
protected TreeState |
getState()
Deprecated.
|
Transferable |
getTransferable(Map<String,Object> payload)
Deprecated.
|
Collection<?> |
getVisibleItemIds()
Deprecated.
Gets the visible item ids.
|
boolean |
hasChildren(Object itemId)
Deprecated.
Tests if the Item specified with
itemId has child Items. |
boolean |
isExpanded(Object itemId)
Deprecated.
Check is an item is expanded.
|
boolean |
isHtmlContentAllowed()
Deprecated.
Checks whether captions are interpreted as html or plain text.
|
boolean |
isRoot(Object itemId)
Deprecated.
Tests if the Item specified with
itemId is a root Item. |
boolean |
isSelectable()
Deprecated.
Returns the current selectable state.
|
void |
markAsDirty()
Deprecated.
|
void |
paintContent(PaintTarget target)
Deprecated.
Paints any needed component-specific things to the given UIDL stream.
|
protected String |
readItem(org.jsoup.nodes.Element node,
Set<String> selected,
DesignContext context)
Deprecated.
Reads an Item from a design and inserts it into the data source.
|
void |
removeActionHandler(Action.Handler actionHandler)
Deprecated.
Removes an action handler.
|
void |
removeAllActionHandlers()
Deprecated.
Removes all action handlers.
|
void |
removeCollapseListener(Tree.CollapseListener listener)
Deprecated.
Removes the collapse listener.
|
void |
removeExpandListener(Tree.ExpandListener listener)
Deprecated.
Removes the expand listener.
|
boolean |
removeItem(Object itemId)
Deprecated.
Removes the Item identified by
ItemId from the Container. |
void |
removeItemClickListener(ItemClickEvent.ItemClickListener listener)
Deprecated.
Removes an ItemClickListener.
|
void |
removeListener(ItemClickEvent.ItemClickListener listener)
Deprecated.
As of 7.0, replaced by
#removeItemClickListener(ItemClickListener) |
void |
removeListener(Tree.CollapseListener listener)
Deprecated.
As of 7.0, replaced by
removeCollapseListener(CollapseListener) |
void |
removeListener(Tree.ExpandListener listener)
Deprecated.
As of 7.0, replaced by
removeExpandListener(ExpandListener) |
Collection<?> |
rootItemIds()
Deprecated.
Gets the IDs of all Items in the container that don't have a parent.
|
boolean |
setChildrenAllowed(Object itemId,
boolean areChildrenAllowed)
Deprecated.
Sets the given Item's capability to have children.
|
void |
setContainerDataSource(Container newDataSource)
Deprecated.
Sets the Container that serves as the data source of the viewer.
|
void |
setDragMode(Tree.TreeDragMode dragMode)
Deprecated.
Sets the drag mode that controls how Tree behaves as a
DragSource
. |
void |
setDropHandler(DropHandler dropHandler)
Deprecated.
|
void |
setHtmlContentAllowed(boolean htmlContentAllowed)
Deprecated.
Sets whether html is allowed in the item captions.
|
void |
setItemDescriptionGenerator(AbstractSelect.ItemDescriptionGenerator generator)
Deprecated.
Set the item description generator which generates tooltips for the tree
items.
|
void |
setItemIcon(Object itemId,
Resource icon)
Deprecated.
Sets the icon for an item.
|
void |
setItemIcon(Object itemId,
Resource icon,
String altText)
Deprecated.
Sets the icon for an item.
|
void |
setItemIconAlternateText(Object itemId,
String altText)
Deprecated.
Set the alternate text for an item.
|
void |
setItemStyleGenerator(Tree.ItemStyleGenerator itemStyleGenerator)
Deprecated.
Sets the
Tree.ItemStyleGenerator to be used with this tree. |
void |
setMultiselectMode(com.vaadin.shared.ui.MultiSelectMode mode)
Deprecated.
Sets the behavior of the multiselect mode.
|
void |
setNewItemsAllowed(boolean allowNewOptions)
Deprecated.
Adding new items is not supported.
|
void |
setNullSelectionItemId(Object nullSelectionItemId)
Deprecated.
Tree does not support
setNullSelectionItemId. |
boolean |
setParent(Object itemId,
Object newParentId)
Deprecated.
Sets the parent of an Item.
|
void |
setSelectable(boolean selectable)
Deprecated.
Sets the selectable state.
|
Tree.TreeTargetDetails |
translateDropTargetDetails(Map<String,Object> clientVariables)
Deprecated.
|
protected org.jsoup.nodes.Element |
writeItem(org.jsoup.nodes.Element design,
Object itemId,
DesignContext context)
Deprecated.
Recursively writes a data source Item and its children to a design.
|
protected void |
writeItems(org.jsoup.nodes.Element design,
DesignContext context)
Deprecated.
Recursively writes the root items and their children to a design.
|
addContainerProperty, addItem, addItem, addItems, addItems, addItemSetChangeListener, addListener, addListener, addPropertySetChangeListener, attach, containerPropertySetChange, containsId, detach, fireItemSetChange, firePropertySetChange, getCaptionChangeListener, getContainerDataSource, getContainerProperty, getContainerPropertyIds, getItem, getItemCaption, getItemCaptionMode, getItemCaptionPropertyId, getItemIcon, getItemIconPropertyId, getItemIds, getListeners, getNewItemHandler, getNullSelectionItemId, getState, getType, getType, getValue, isEmpty, isMultiSelect, isNewItemsAllowed, isNullSelectionAllowed, isSelected, paintItem, readDesign, readItems, removeAllItems, removeContainerProperty, removeItemSetChangeListener, removeListener, removeListener, removePropertySetChangeListener, sanitizeSelection, select, setItemCaption, setItemCaptionMode, setItemCaptionPropertyId, setItemIconPropertyId, setMultiSelect, setNewItemHandler, setNullSelectionAllowed, setValue, setValue, size, unselect, writeDesignaddListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, beforeClientResponse, clear, commit, discard, fireReadOnlyStatusChange, fireValueChange, focus, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getCustomAttributes, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getTabIndex, getValidators, isBuffered, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValid, isValidationVisible, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInternalValue, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setTabIndex, setValidationVisible, setValue, shouldHideErrors, validate, validate, valueChangegetExplicitImmediateValue, isImmediate, setImmediateaddContextClickListener, addListener, addShortcutListener, addStyleName, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setParent, setPrimaryStyleName, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddContainerProperty, addItem, addItem, containsId, getContainerProperty, getContainerPropertyIds, getItem, getItemIds, getType, removeAllItems, removeContainerProperty, sizeaddListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefinedisEnabledaddShortcutListener, removeShortcutListenerpublic Tree()
public Tree(String caption)
caption - public void setItemIcon(Object itemId, Resource icon)
AbstractSelectsetItemIcon in class AbstractSelectitemId - the id of the item to be assigned an icon.icon - the icon to use or null.public void setItemIcon(Object itemId, Resource icon, String altText)
itemId - the id of the item to be assigned an icon.icon - the icon to use or null.altText - the alternative text for the iconpublic void setItemIconAlternateText(Object itemId, String altText)
itemId - the id of the item to be assigned an icon.altText - the alternative text for the iconpublic String getItemIconAlternateText(Object itemId)
itemId - Object with the ID of the itempublic boolean isExpanded(Object itemId)
itemId - the item id.public boolean expandItem(Object itemId)
itemId - the item id.public void markAsDirty()
markAsDirty in interface ClientConnectormarkAsDirty in interface LegacyComponentmarkAsDirty in class AbstractClientConnectorpublic boolean expandItemsRecursively(Object startItemId)
startItemId - public boolean collapseItem(Object itemId)
itemId - the item id.public boolean collapseItemsRecursively(Object startItemId)
startItemId - public boolean isSelectable()
AbstractSelect.setValue(Object) or AbstractSelect.select(Object).
The tree is selectable by default.
public void setSelectable(boolean selectable)
AbstractSelect.setValue(Object) or AbstractSelect.select(Object).
The tree is selectable by default.
selectable - The new selectable state.public void setMultiselectMode(com.vaadin.shared.ui.MultiSelectMode mode)
mode - The mode to setpublic com.vaadin.shared.ui.MultiSelectMode getMultiselectMode()
public void changeVariables(Object source, Map<String,Object> variables)
AbstractSelectchangeVariables in interface VariableOwnerchangeVariables in class AbstractSelectAbstractComponent#changeVariables(java.lang.Object, java.util.Map)public void paintContent(PaintTarget target) throws PaintException
paintContent in interface LegacyComponentpaintContent in class AbstractSelecttarget - the Paint Event.PaintException - if the paint operation failed.AbstractComponent#paintContent(PaintTarget)public boolean areChildrenAllowed(Object itemId)
areChildrenAllowed in interface Container.HierarchicalitemId - ID of the Item in the container whose child capability is
to be testedtrue if the specified Item exists in the
Container and it can have children, false if
it's not found from the container or it can't have children.Container.Hierarchical#areChildrenAllowed(Object)public Collection<?> getChildren(Object itemId)
getChildren in interface Container.HierarchicalitemId - ID of the Item whose children the caller is interested incollection
containing the IDs of all other Items that are children in
the container hierarchy; null if item does not have
any children.Container.Hierarchical#getChildren(Object)public Object getParent(Object itemId)
getParent in interface Container.HierarchicalitemId - ID of the Item whose parent the caller wishes to find out.null if the
specified Item is a root element.Container.Hierarchical#getParent(Object)public boolean hasChildren(Object itemId)
itemId has child Items.hasChildren in interface Container.HierarchicalitemId - ID of the Item to be testedtrue if the specified Item has children,
false if not (is a leaf)Container.Hierarchical#hasChildren(Object)public boolean isRoot(Object itemId)
itemId is a root Item.isRoot in interface Container.HierarchicalitemId - ID of the Item whose root status is to be testedtrue if the specified Item is a root,
false if notContainer.Hierarchical#isRoot(Object)public Collection<?> rootItemIds()
rootItemIds in interface Container.Hierarchicalcollection
containing IDs of all root elements of the containerContainer.Hierarchical#rootItemIds()public boolean setChildrenAllowed(Object itemId, boolean areChildrenAllowed)
setChildrenAllowed in interface Container.HierarchicalitemId - ID of the Item in the container whose child capability is
to be setareChildrenAllowed - boolean value specifying if the Item can have children or
nottrue if the operation succeeded,
false if notContainer.Hierarchical#setChildrenAllowed(Object, boolean)public boolean setParent(Object itemId, Object newParentId)
Container.Hierarchical
Sets the parent of an Item. The new parent item must exist and be
able to have children. (
). It is
also possible to detach a node from the hierarchy (and thus make it
root) by setting the parent Container.Hierarchical.areChildrenAllowed(Object) == truenull.
This operation is optional.
setParent in interface Container.HierarchicalitemId - ID of the item to be set as the child of the Item
identified with newParentIdnewParentId - ID of the Item that's to be the new parent of the Item
identified with itemIdtrue if the operation succeeded,
false if notpublic void setContainerDataSource(Container newDataSource)
setContainerDataSource in interface Container.ViewersetContainerDataSource in class AbstractSelectnewDataSource - the new data source.Container.Viewer#setContainerDataSource(Container)public void containerItemSetChange(Container.ItemSetChangeEvent event)
AbstractSelectcontainerItemSetChange in interface Container.ItemSetChangeListenercontainerItemSetChange in class AbstractSelectevent - change event textContainer.ItemSetChangeListener#containerItemSetChange(Container.ItemSetChangeEvent)public void addExpandListener(Tree.ExpandListener listener)
listener - the Listener to be added.@Deprecated public void addListener(Tree.ExpandListener listener)
addExpandListener(ExpandListener)public void removeExpandListener(Tree.ExpandListener listener)
listener - the Listener to be removed.@Deprecated public void removeListener(Tree.ExpandListener listener)
removeExpandListener(ExpandListener)protected void fireExpandEvent(Object itemId)
itemId - the item id.public void addCollapseListener(Tree.CollapseListener listener)
listener - the Listener to be added.@Deprecated public void addListener(Tree.CollapseListener listener)
addCollapseListener(CollapseListener)public void removeCollapseListener(Tree.CollapseListener listener)
listener - the Listener to be removed.@Deprecated public void removeListener(Tree.CollapseListener listener)
removeCollapseListener(CollapseListener)protected void fireCollapseEvent(Object itemId)
itemId - the item id.public void addActionHandler(Action.Handler actionHandler)
addActionHandler in interface Action.ContainerAction.Container.addActionHandler(Action.Handler)public void removeActionHandler(Action.Handler actionHandler)
removeActionHandler in interface Action.ContainerAction.Container.removeActionHandler(Action.Handler)public void removeAllActionHandlers()
public Collection<?> getVisibleItemIds()
getVisibleItemIds in class AbstractSelectAbstractSelect.getVisibleItemIds()public void setNullSelectionItemId(Object nullSelectionItemId) throws UnsupportedOperationException
setNullSelectionItemId.setNullSelectionItemId in class AbstractSelectnullSelectionItemId - the nullSelectionItemId to set.UnsupportedOperationExceptionAbstractSelect.setNullSelectionItemId(java.lang.Object)public void setNewItemsAllowed(boolean allowNewOptions)
throws UnsupportedOperationException
setNewItemsAllowed in class AbstractSelectallowNewOptions - the New value of property allowNewOptions.UnsupportedOperationException - if set to true.AbstractSelect.setNewItemsAllowed(boolean)public void addItemClickListener(ItemClickEvent.ItemClickListener listener)
ItemClickEvent.ItemClickNotifierItemClickEvents.addItemClickListener in interface ItemClickEvent.ItemClickNotifierlistener - ItemClickListener to be registered@Deprecated public void addListener(ItemClickEvent.ItemClickListener listener)
#addItemClickListener(ItemClickListener)addListener in interface ItemClickEvent.ItemClickNotifierpublic void removeItemClickListener(ItemClickEvent.ItemClickListener listener)
ItemClickEvent.ItemClickNotifierremoveItemClickListener in interface ItemClickEvent.ItemClickNotifierlistener - ItemClickListener to be removed@Deprecated public void removeListener(ItemClickEvent.ItemClickListener listener)
#removeItemClickListener(ItemClickListener)removeListener in interface ItemClickEvent.ItemClickNotifierpublic void setItemStyleGenerator(Tree.ItemStyleGenerator itemStyleGenerator)
Tree.ItemStyleGenerator to be used with this tree.itemStyleGenerator - item style generator or null to remove generatorpublic Tree.ItemStyleGenerator getItemStyleGenerator()
Tree.ItemStyleGenerator for this tree. Null if
Tree.ItemStyleGenerator is not set.public boolean removeItem(Object itemId) throws UnsupportedOperationException
ContainerItemId from the Container.
Containers that support filtering should also allow removing an item that is currently filtered out.
This functionality is optional.
removeItem in interface ContainerremoveItem in interface Container.HierarchicalremoveItem in class AbstractSelectitemId - ID of the Item to removetrue if the operation succeeded, false
if notUnsupportedOperationException - if the container does not support removing individual itemspublic DropHandler getDropHandler()
getDropHandler in interface DropTargetpublic void setDropHandler(DropHandler dropHandler)
public Tree.TreeTargetDetails translateDropTargetDetails(Map<String,Object> clientVariables)
translateDropTargetDetails in interface DropTargetpublic void setDragMode(Tree.TreeDragMode dragMode)
DragSource
.dragMode - public Tree.TreeDragMode getDragMode()
DragSource.Tree.TreeDragModepublic Transferable getTransferable(Map<String,Object> payload)
getTransferable in interface DragSourcepublic void setItemDescriptionGenerator(AbstractSelect.ItemDescriptionGenerator generator)
generator - The generator to use or null to disablepublic AbstractSelect.ItemDescriptionGenerator getItemDescriptionGenerator()
protected String readItem(org.jsoup.nodes.Element node, Set<String> selected, DesignContext context)
readItem in class AbstractSelectnode - an element representing the item (tree node).selected - A set accumulating selected items. If the item that is read is
marked as selected, its item id should be added to this set.context - the DesignContext instance used in parsingDesignException - if the tag name of the node element is not
node.protected void writeItems(org.jsoup.nodes.Element design,
DesignContext context)
writeItems in class AbstractSelectdesign - the element into which to insert the itemscontext - the DesignContext instance used in writingprotected org.jsoup.nodes.Element writeItem(org.jsoup.nodes.Element design,
Object itemId,
DesignContext context)
writeItem in class AbstractSelectdesign - the element into which to insert the itemitemId - the id of the item to writecontext - the DesignContext instance used in writingpublic void setHtmlContentAllowed(boolean htmlContentAllowed)
true, the captions are passed to the browser as html and the
developer is responsible for ensuring no harmful html is used. If set to
false, the content is passed to the browser as plain text.
The default setting is falsehtmlContentAllowed - true if the captions are used as html,
false if used as plain textpublic boolean isHtmlContentAllowed()
true if the captions are displayed as html,
false if displayed as plain textsetHtmlContentAllowed(boolean)protected TreeState getState()
getState in class AbstractSelectCopyright © 2019 Vaadin Ltd. All rights reserved.