Package com.biglybt.ui.swt.views
Class TaggingView
- java.lang.Object
-
- com.biglybt.ui.swt.views.TaggingView
-
- All Implemented Interfaces:
TagTypeListener
,UISWTViewEventListener
,UISWTViewCoreEventListener
public class TaggingView extends java.lang.Object implements UISWTViewCoreEventListener, TagTypeListener
View showing tags set on selected taggable item(s). Sometimes easier than drag and dropping to buttons/sidebar
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.biglybt.core.tag.TagTypeListener
TagTypeListener.TagEvent
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.swt.widgets.Button
buttonExplain
private org.eclipse.swt.widgets.Composite
mainComposite
static java.lang.String
MSGID_PREFIX
private org.eclipse.swt.widgets.Composite
parent
private org.eclipse.swt.custom.ScrolledComposite
sc
private UISWTView
swtView
private TagButtonsUI
tagButtonsUI
private java.util.List<Taggable>
taggables
-
Constructor Summary
Constructors Constructor Description TaggingView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
askForNewTag()
private void
dataSourceChanged(java.lang.Object ds)
private void
delete()
boolean
eventOccurred(UISWTViewEvent event)
Triggers when an even listed in UISWTViewEvent occursprivate void
explain()
private void
focusGained()
private void
focusLost()
private java.lang.String
getFullTitle()
private java.util.List<Tag>
getTags()
private void
rebuildComposite()
private void
refresh()
private void
swt_updateFields()
void
tagAdded(Tag tag)
void
tagChanged(Tag changedTag)
void
tagEventOccurred(TagTypeListener.TagEvent event)
void
tagRemoved(Tag tag)
void
tagTypeChanged(TagType tag_type)
General change not specific to one tag
-
-
-
Field Detail
-
MSGID_PREFIX
public static final java.lang.String MSGID_PREFIX
- See Also:
- Constant Field Values
-
swtView
private UISWTView swtView
-
sc
private org.eclipse.swt.custom.ScrolledComposite sc
-
taggables
private java.util.List<Taggable> taggables
-
parent
private org.eclipse.swt.widgets.Composite parent
-
tagButtonsUI
private TagButtonsUI tagButtonsUI
-
buttonExplain
private org.eclipse.swt.widgets.Button buttonExplain
-
mainComposite
private org.eclipse.swt.widgets.Composite mainComposite
-
-
Method Detail
-
eventOccurred
public boolean eventOccurred(UISWTViewEvent event)
Description copied from interface:UISWTViewEventListener
Triggers when an even listed in UISWTViewEvent occurs- Specified by:
eventOccurred
in interfaceUISWTViewEventListener
- Parameters:
event
- event that occurred- Returns:
- meaning dependent upon event type
-
focusGained
private void focusGained()
-
focusLost
private void focusLost()
-
delete
private void delete()
-
refresh
private void refresh()
-
dataSourceChanged
private void dataSourceChanged(java.lang.Object ds)
-
rebuildComposite
private void rebuildComposite()
-
getFullTitle
private java.lang.String getFullTitle()
-
swt_updateFields
private void swt_updateFields()
-
getTags
private java.util.List<Tag> getTags()
-
tagTypeChanged
public void tagTypeChanged(TagType tag_type)
Description copied from interface:TagTypeListener
General change not specific to one tag- Specified by:
tagTypeChanged
in interfaceTagTypeListener
-
tagEventOccurred
public void tagEventOccurred(TagTypeListener.TagEvent event)
- Specified by:
tagEventOccurred
in interfaceTagTypeListener
-
tagAdded
public void tagAdded(Tag tag)
-
tagChanged
public void tagChanged(Tag changedTag)
-
tagRemoved
public void tagRemoved(Tag tag)
-
explain
private void explain()
-
askForNewTag
private void askForNewTag()
-
-