|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JComboBox
org.ceryle.ui.graph.FavoritesList
public class FavoritesList
Extends JComboBox acting as a Topic favorites list.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComboBox |
|---|
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManager |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected boolean |
favInTransition
A boolean indicating that the favorites list is in transition. |
protected FrequencyModel |
m_freqmodel
|
| Fields inherited from class javax.swing.JComboBox |
|---|
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
FavoritesList(TMLayoutPanel tmlpanel,
FrequencyModel list)
Constructor for a favorites list provided with a Frequency Model. |
|
| Method Summary | |
|---|---|
void |
addToFavorites(GraphNode node)
Adds GraphNode node to the favorites list, if it has been initialized. |
void |
clear()
Clears the TMLayoutPanel of any content. |
ComboBoxModel |
getModel()
Returns the FrequencyModel backing the 'favorites' list, as a ComboBoxModel. |
JPanel |
getPanel()
Returns a panelized version of this FavoritesList, including a label. |
void |
restoreFavorites(TopicMap topicmap)
Restores the favorites list from the metadata container Topic in the provided TopicMap topicmap. |
void |
selectByLabel(String label)
This calls TMLayoutPanel.findTNodeByLabel(String) if the
currently-selected node's label does not match label, and also
manages a boolean in-transition variable to keep echoes from happening. |
void |
selectFavorite()
If the favorites list is populated, selects the favorite (first item) Topic in the graph. |
void |
storeFavorites(TopicMap topicmap)
Stores the current favorites list to the metadata container Topic for the provided TopicMap topicmap. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean favInTransition
protected FrequencyModel m_freqmodel
| Constructor Detail |
|---|
public FavoritesList(TMLayoutPanel tmlpanel,
FrequencyModel list)
| Method Detail |
|---|
public JPanel getPanel()
public ComboBoxModel getModel()
getModel in class JComboBoxpublic void storeFavorites(TopicMap topicmap)
public void restoreFavorites(TopicMap topicmap)
public void selectFavorite()
public void addToFavorites(GraphNode node)
public void clear()
public void selectByLabel(String label)
TMLayoutPanel.findTNodeByLabel(String) if the
currently-selected node's label does not match label, and also
manages a boolean in-transition variable to keep echoes from happening.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||