public abstract class TagListWithDropDownComposite
extends org.eclipse.swt.widgets.Composite
Constructor and Description |
---|
TagListWithDropDownComposite(org.eclipse.swt.widgets.Composite parent,
int style,
java.util.List<java.lang.String> initialValues) |
Modifier and Type | Method and Description |
---|---|
protected void |
callOpenEditor(java.lang.String tagKey)
Overwrite to call the relevant open editor command, does nothing by
default
|
java.util.List<java.lang.String> |
getChosenValues() |
protected java.lang.String |
getDecodedTagValue(java.lang.String tagValue)
Overwrite to get the stored value from the displayed label, we expect a
bijection between the 2 of them
|
protected java.lang.String |
getEncodedTagValue(java.lang.String tagKey)
Overwrite to display a label rather than the stored value
|
protected abstract java.util.List<java.lang.String> |
getFilteredValues(java.lang.String filter)
Overwrite to provide a filtered list of relevant possible new values
|
protected java.lang.String |
getTagKey(Node tagDefinition)
Overwrite to store the tag key in another property
|
void |
populate(org.eclipse.swt.widgets.Composite parent) |
protected boolean |
tagExists(java.lang.String tagKey)
Overwrite to perform a check prior to effectively creating the new value
|
changed, computeSize, getAdapter, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addTouchListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getShell, getSize, getToolTipText, getTouchEnabled, getVisible, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCursor, setData, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setSize, setSize, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, update
addDisposeListener, addListener, checkSubclass, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, toString
public TagListWithDropDownComposite(org.eclipse.swt.widgets.Composite parent, int style, java.util.List<java.lang.String> initialValues)
parent
- style
- toolkit
- form
- peopleService
- peopleWorkbenchService
- taggable
- tagId
- newTagMsg
- public java.util.List<java.lang.String> getChosenValues()
public void populate(org.eclipse.swt.widgets.Composite parent)
protected abstract java.util.List<java.lang.String> getFilteredValues(java.lang.String filter)
protected boolean tagExists(java.lang.String tagKey)
protected java.lang.String getTagKey(Node tagDefinition)
protected java.lang.String getEncodedTagValue(java.lang.String tagKey)
protected java.lang.String getDecodedTagValue(java.lang.String tagValue)
protected void callOpenEditor(java.lang.String tagKey)
Copyright © 2007–2020. All rights reserved.