|
||||||||||
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.JPanel
at.tuwien.ifs.commons.gui.controls.TitledCollapsiblePanel
at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractViewerControl
at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractSelectionPanel
public abstract class AbstractSelectionPanel
Nested Class Summary |
---|
Nested classes/interfaces inherited from class at.tuwien.ifs.commons.gui.controls.TitledCollapsiblePanel |
---|
TitledCollapsiblePanel.Orientation |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected Vector<String>[] |
absPathVectors
|
protected int |
currentSelectionArea
|
protected ItemSelectionListener |
itemListener
|
protected JScrollPane[] |
listScrollers
|
protected Vector<GeneralUnitPNode> |
markedUnits
units graphically marked on the map. |
protected DefaultListModel[] |
playlistmodels
|
protected JList[] |
playlists
|
private int |
selectionAreaCount
|
protected GeneralUnitPNode[][] |
selections
|
private static long |
serialVersionUID
|
protected Vector<Unit> |
unitsInPlaylist
units that contribute to the current playlist. |
Fields inherited from class at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractViewerControl |
---|
SMALL_INSETS, smallerFont, smallFont, state |
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 | |
---|---|
AbstractSelectionPanel(LayoutManager layout,
CommonSOMViewerStateData state,
String title)
|
|
AbstractSelectionPanel(LayoutManager layout,
CommonSOMViewerStateData state,
String title,
int selectionAreaCount)
|
Method Summary | |
---|---|
protected void |
addListScrollPanels(GridBagConstraints c)
|
protected void |
addSingleListScrollPanel(Object constraints)
|
void |
addToList(String elementName,
String fileNamePrefix,
Unit u)
adds an element to the current playlist and the absPathVectors |
void |
addToList(String elementName,
Unit u)
adds an element to the current playlist and the absPathVectors |
void |
clearList()
Clears the current playlist and the absPathVectors. If there are units currently marked on the map, the mark is removed. |
ItemSelectionListener |
getItemListener()
|
protected Object[] |
getSelectedSongs()
get a String[] containing all objects (absolute paths) in current selection panel |
protected Object[] |
getSelectedSongs(int selectionArea)
get a String[] containing all objects (absolute paths) in the given selection panel |
protected void |
markUnit(int x,
int y)
graphically marks a unit on the map, and preserves the list of marked units for later clearance |
void |
setItemListener(ItemSelectionListener itemListener)
|
void |
unitSelectionChanged(Object[] selection,
boolean newSelection)
called whenever the selection has changed, the new selection is added to the JList and to the list of the file's absolute pathnames |
protected void |
unmarkUnits()
Unmarks all currently marked units on the map. Which units are marked is determined by the vector markedUnits |
void |
valueChanged(ListSelectionEvent e)
|
Methods inherited from class at.tuwien.ifs.somtoolbox.apps.viewer.controls.AbstractViewerControl |
---|
isFullFunctional, setIcon, setSelected, setVisible |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
protected ItemSelectionListener itemListener
protected DefaultListModel[] playlistmodels
protected JList[] playlists
protected Vector<String>[] absPathVectors
protected Vector<GeneralUnitPNode> markedUnits
protected Vector<Unit> unitsInPlaylist
protected JScrollPane[] listScrollers
protected int currentSelectionArea
private int selectionAreaCount
protected GeneralUnitPNode[][] selections
Constructor Detail |
---|
public AbstractSelectionPanel(LayoutManager layout, CommonSOMViewerStateData state, String title)
public AbstractSelectionPanel(LayoutManager layout, CommonSOMViewerStateData state, String title, int selectionAreaCount)
Method Detail |
---|
public ItemSelectionListener getItemListener()
public void setItemListener(ItemSelectionListener itemListener)
protected Object[] getSelectedSongs()
protected Object[] getSelectedSongs(int selectionArea)
public void clearList()
public void addToList(String elementName, Unit u)
public void addToList(String elementName, String fileNamePrefix, Unit u)
fileNamePrefix
- an alternative fileNamePrefixprotected void markUnit(int x, int y)
protected void unmarkUnits()
markedUnits
public void unitSelectionChanged(Object[] selection, boolean newSelection)
unitSelectionChanged
in interface UnitSelectionListener
protected void addListScrollPanels(GridBagConstraints c)
protected void addSingleListScrollPanel(Object constraints)
public void valueChanged(ListSelectionEvent e)
valueChanged
in interface ListSelectionListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |