PamView
Class GroupedSourcePanel

java.lang.Object
  extended by PamView.SourcePanel
      extended by PamView.GroupedSourcePanel
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener
Direct Known Subclasses:
WhistleParametersDialog.GroupedWhistleSourcePanel

public class GroupedSourcePanel
extends SourcePanel


Nested Class Summary
private  class GroupedSourcePanel.GroupAction
           
 
Nested classes/interfaces inherited from class PamView.SourcePanel
SourcePanel.SelectionListener
 
Field Summary
private  javax.swing.JRadioButton allSingles
           
private  javax.swing.JRadioButton allTogether
           
private  boolean autoGrouping
           
(package private)  javax.swing.JPanel autoGroupPanel
           
static int GROUP_ALL
           
static int GROUP_SINGLES
           
static int GROUP_USER
           
private  javax.swing.JComboBox[] groupList
           
private  javax.swing.JRadioButton userGrouped
           
 
Fields inherited from class PamView.SourcePanel
borderTitle, channelBoxes, excludedBlocks, hasChannels, includeSubClasses, ownerWindow, panel, sourceList, sourceType
 
Constructor Summary
GroupedSourcePanel(java.awt.Window ownerWindow, java.lang.Class sourceType, boolean hasChannels, boolean includeSubClasses, boolean autoGrouping)
           
GroupedSourcePanel(java.awt.Window ownerWindow, java.lang.String borderTitle, java.lang.Class sourceType, boolean hasChannels, boolean includeSubClasses, boolean autoGrouping)
           
 
Method Summary
static void addComponent(javax.swing.JPanel panel, java.awt.Component p, java.awt.GridBagConstraints constraints)
           
static int countChannelGroups(int channelMap, int[] groupList)
           
protected  void createPanel()
           
 void enableGroupBoxes()
           
 int[] getChannelGroups()
           
static int getGroupChannels(int group, int channelMap, int[] groupList)
           
static int getGroupIndex(int groupMap, int channelMap, int[] groupList)
           
 int getGrouping()
           
static java.lang.String getGroupList(int group, int channelMap, int[] groupList)
           
static int getGroupMap(int channelMap, int[] groupList)
           
 boolean getParams(GroupedSourceParameters params)
           
 boolean isAutoGrouping()
           
protected  void selectionChanged(int channel)
           
 void setAutoGrouping(boolean autoGrouping)
           
 void setChannelGroups(int[] channelGroups)
           
 void setGrouping(int groupType)
           
 void setParams(GroupedSourceParameters params)
           
protected  void showChannels()
           
 
Methods inherited from class PamView.SourcePanel
actionPerformed, addSelectionListener, addSourcePanelMonitor, clearExcludeList, excludeDataBlock, getChannelBoxes, getChannelList, getLocalisationRequirements, getPanel, getSource, getSourceCount, getSourceIndex, getSourceType, removeSourcePanelMonitor, rePackOwner, setChannelList, setEnabled, setLocalisationRequirements, setSource, setSource, setSourceList, setSourceList, setSourceType, sourceChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groupList

private javax.swing.JComboBox[] groupList

autoGrouping

private boolean autoGrouping

GROUP_SINGLES

public static final int GROUP_SINGLES
See Also:
Constant Field Values

GROUP_ALL

public static final int GROUP_ALL
See Also:
Constant Field Values

GROUP_USER

public static final int GROUP_USER
See Also:
Constant Field Values

allSingles

private javax.swing.JRadioButton allSingles

allTogether

private javax.swing.JRadioButton allTogether

userGrouped

private javax.swing.JRadioButton userGrouped

autoGroupPanel

javax.swing.JPanel autoGroupPanel
Constructor Detail

GroupedSourcePanel

public GroupedSourcePanel(java.awt.Window ownerWindow,
                          java.lang.Class sourceType,
                          boolean hasChannels,
                          boolean includeSubClasses,
                          boolean autoGrouping)

GroupedSourcePanel

public GroupedSourcePanel(java.awt.Window ownerWindow,
                          java.lang.String borderTitle,
                          java.lang.Class sourceType,
                          boolean hasChannels,
                          boolean includeSubClasses,
                          boolean autoGrouping)
Method Detail

createPanel

protected void createPanel()
Overrides:
createPanel in class SourcePanel

showChannels

protected void showChannels()
Overrides:
showChannels in class SourcePanel

setChannelGroups

public void setChannelGroups(int[] channelGroups)

addComponent

public static void addComponent(javax.swing.JPanel panel,
                                java.awt.Component p,
                                java.awt.GridBagConstraints constraints)

isAutoGrouping

public boolean isAutoGrouping()

setAutoGrouping

public void setAutoGrouping(boolean autoGrouping)

setGrouping

public void setGrouping(int groupType)

selectionChanged

protected void selectionChanged(int channel)
Overrides:
selectionChanged in class SourcePanel

enableGroupBoxes

public void enableGroupBoxes()

getGrouping

public int getGrouping()

getChannelGroups

public int[] getChannelGroups()

setParams

public void setParams(GroupedSourceParameters params)

getParams

public boolean getParams(GroupedSourceParameters params)

getGroupMap

public static int getGroupMap(int channelMap,
                              int[] groupList)

countChannelGroups

public static int countChannelGroups(int channelMap,
                                     int[] groupList)

getGroupChannels

public static int getGroupChannels(int group,
                                   int channelMap,
                                   int[] groupList)

getGroupList

public static java.lang.String getGroupList(int group,
                                            int channelMap,
                                            int[] groupList)

getGroupIndex

public static int getGroupIndex(int groupMap,
                                int channelMap,
                                int[] groupList)