|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.emboss.jemboss.gui.startup.ProgList
Used on startup of Jemboss to retrieve the alphabetical list of programs and uses the programs groups to create the menu structure based on the program type. This uses the output of the EMBOSS program wossname.
Nested Class Summary | |
(package private) class |
ProgList.HorizontalMenu
HorizontalMenu extends JMenu to produces horizontal menus. |
Field Summary | |
private java.lang.String[] |
allDescription
array of program one line descriptions |
private java.lang.String[] |
allProgs
array of the program names |
private java.awt.Font |
menuFont
font used for the menu items |
private javax.swing.JMenuItem[] |
mItem
used to create the program menus |
private int |
nm
number of JMenuItem created |
private int |
npG
number of primary group programs |
private int |
numProgs
number of programs |
private java.util.Hashtable |
programGroup
program group |
Constructor Summary | |
ProgList(java.lang.String woss,
javax.swing.JMenuBar menuBar)
|
Method Summary | |
javax.swing.JMenuItem[] |
getMenuItems()
Returns the program menu items |
int |
getNumberMenuItems()
Returns the number of program menu items |
int |
getNumPrimaryGroups()
Returns the number of primary menu groups |
int |
getNumProgs()
Returns the number of programs |
java.lang.String[] |
getProgDescription()
Returns the array of the program descriptions |
java.lang.String |
getProgramGroup(java.lang.String app)
Returns the groups for the given application |
java.lang.String[] |
getProgsList()
Returns the array of all the program names |
void |
writeList()
Writes to screen the program names |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private java.lang.String[] allProgs
private java.lang.String[] allDescription
private int numProgs
private int nm
private int npG
private javax.swing.JMenuItem[] mItem
private java.awt.Font menuFont
private java.util.Hashtable programGroup
Constructor Detail |
public ProgList(java.lang.String woss, javax.swing.JMenuBar menuBar)
woss
- output from wossnamemenuBar
- menu barMethod Detail |
public int getNumProgs()
public java.lang.String[] getProgsList()
public java.lang.String[] getProgDescription()
public java.lang.String getProgramGroup(java.lang.String app)
app
- program name
public void writeList()
public javax.swing.JMenuItem[] getMenuItems()
public int getNumberMenuItems()
public int getNumPrimaryGroups()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |