public class RecommendedModifierVocabulariesCollectionSection extends AbstractUnboundEntityCollectionSection<eu.etaxonomy.cdm.model.description.Feature,eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm>>
AbstractFormSection.ExpandListener
container
DEFAULT_NUM_COLUMNS, formFactory
CLIENT_INDENT, clientVerticalSpacing, COMPACT, descriptionVerticalSpacing, EXPANDED, FOCUS_TITLE, GAP, LEFT_TEXT_CLIENT_ALIGNMENT, marginHeight, marginWidth, NO_TITLE, NO_TITLE_FOCUS_BOX, SHORT_TITLE_BAR, textLabel, TITLE_BAR, titleBarTextMarginWidth, toggle, TREE_NODE, TWISTIE, VGAP
NOT_SELECTED, SELECTED
Constructor and Description |
---|
RecommendedModifierVocabulariesCollectionSection(CdmFormFactory formFactory,
eu.etaxonomy.cdm.api.conversation.ConversationHolder conversation,
ICdmFormElement parentElement,
int style) |
Modifier and Type | Method and Description |
---|---|
void |
addElement(eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm> element)
Add an element to the entities collection
|
eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm> |
addExisting()
Add an existing element to the entities collection.
|
boolean |
allowAddExisting()
If
true the section will also display
a browse icon to choose from existing elements. |
eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm> |
createNewElement()
Create a new Element for this collection
|
java.util.Comparator<eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm>> |
getComparator()
Returns the
Comparator specific for the ELEMENTs
which is used to sort the elements |
java.lang.String |
getEmptyString()
String to display when the collection is empty
|
protected java.util.Collection<eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm>> |
getEntityCollection(eu.etaxonomy.cdm.model.description.Feature entity)
Get all the elements that are represented by this section.
|
protected java.lang.String |
getTooltipString()
getTooltipString
|
void |
removeElement(eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm> element)
Remove an element from the entities collection
|
createToolbar, getCollection
createDynamicContents, createElementComposite, createEmptyContent, expansionStateChanged, expansionStateChanging, getEntityCollectionElement, getTitleString, internalUpdateSection, removeElementAndUpdate, removeToolbar, setBackground, setEntity, setSectionTitle, setTitleString, showToolbar, update
addElement, addExpandListener, addSelectionListener, containsFormElement, dispose, firePropertyChangeEvent, firePropertyChangeEvent, firePropertyChangeEvent, getControls, getConversationHolder, getElements, getEntity, getFormFactory, getLayoutComposite, getParentElement, getPersistentBackground, getPropertyChangeListeners, getSection, getToggle, propertyChange, refresh, removeElement, removeElements, removeSelectionListener, selectionChanged, setFocus, setPersistentBackground, setPropertyChangeListeners, setSelected, update, widgetSelected
getDescription, getDescriptionControl, getSeparatorControl, getTitleBarBackground, getTitleBarBorderColor, getTitleBarGradientBackground, internalSetExpanded, onPaint, reflow, setBackgroundImage, setDescription, setDescriptionControl, setForeground, setSeparatorControl, setTitleBarBackground, setTitleBarBorderColor, setTitleBarGradientBackground
addExpansionListener, computeSize, forceFocus, getClient, getExpansionStyle, getText, getTextClient, getTextClientHeightDifference, getTitleBarForeground, hasTitleBar, isExpanded, isFixedStyle, removeExpansionListener, setActiveToggleColor, setClient, setEnabled, setExpanded, setFont, setLayout, setMenu, setText, setTextClient, setTitleBarForeground, setToggleColor, setToolTipText
drawBackground, getCaret, getIME, scroll, setCaret, setIME
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayoutDeferred, setTabList
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isAutoScalable, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBounds, setBounds, setCapture, setCursor, setDragDetect, setLayoutData, setLocation, setLocation, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
addDisposeListener, addListener, checkWidget, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
public RecommendedModifierVocabulariesCollectionSection(CdmFormFactory formFactory, eu.etaxonomy.cdm.api.conversation.ConversationHolder conversation, ICdmFormElement parentElement, int style)
protected java.util.Collection<eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm>> getEntityCollection(eu.etaxonomy.cdm.model.description.Feature entity)
getEntityCollection
in class AbstractUnboundEntityCollectionSection<eu.etaxonomy.cdm.model.description.Feature,eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm>>
entity
- the entity which is represented by the parent sectionpublic java.util.Comparator<eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm>> getComparator()
AbstractEntityCollectionSection
Comparator
specific for the ELEMENTs
which is used to sort the elementsgetComparator
in class AbstractEntityCollectionSection<eu.etaxonomy.cdm.model.description.Feature,eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm>>
public eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm> createNewElement()
createNewElement
in class AbstractEntityCollectionSection<eu.etaxonomy.cdm.model.description.Feature,eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm>>
public void addElement(eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm> element)
addElement
in class AbstractEntityCollectionSection<eu.etaxonomy.cdm.model.description.Feature,eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm>>
element
- a ELEMENT object.public void removeElement(eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm> element)
removeElement
in class AbstractEntityCollectionSection<eu.etaxonomy.cdm.model.description.Feature,eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm>>
element
- a ELEMENT object.public java.lang.String getEmptyString()
getEmptyString
in class AbstractEntityCollectionSection<eu.etaxonomy.cdm.model.description.Feature,eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm>>
String
object.protected java.lang.String getTooltipString()
getTooltipString
getTooltipString
in class AbstractEntityCollectionSection<eu.etaxonomy.cdm.model.description.Feature,eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm>>
public eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm> addExisting()
addExisting
in class AbstractEntityCollectionSection<eu.etaxonomy.cdm.model.description.Feature,eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm>>
public boolean allowAddExisting()
true
the section will also display
a browse icon to choose from existing elements.
AbstractEntityCollectionSection.addExisting()
methodallowAddExisting
in class AbstractEntityCollectionSection<eu.etaxonomy.cdm.model.description.Feature,eu.etaxonomy.cdm.model.common.TermVocabulary<eu.etaxonomy.cdm.model.common.DefinedTerm>>
Copyright © 2007-2018. All Rights Reserved.