|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.emboss.jemboss.gui.form.SectionPanel
Responsible for displaying the Jemboss application form generated from the ACD file. This also handles events related to dependent parameters.
Field Summary | |
private AlignFormat |
af
alignment format |
static int |
ajaxLength
sequence length |
static boolean |
ajaxProtein
sequence type |
static float |
ajaxWeight
sequence weight |
private java.lang.String |
appName
application name |
private javax.swing.JCheckBox[] |
checkBox
boolean fields |
private java.lang.String[] |
db
available databases |
private javax.swing.JFrame |
f
Jemboss frame |
private JembossComboPopup[] |
fieldOption
checkbox popup field for list and select |
private ListFilePanel[] |
filelist
list file panel |
private SetInFileCard[] |
inSeq
input sequence field |
private InputSequenceAttributes[] |
inSeqAttr
input sequence attributes |
private boolean |
isAdd
true if the additional section |
private boolean |
isAdv
true if the advanced section |
private boolean |
isInp
true if the input section |
private boolean |
isOut
true if the output section |
private boolean |
isReq
true if the required section |
private boolean |
isShadedGUI
true if shading disabled fields, otherwise they are removed from the form |
private javax.swing.Box[] |
lab
field label container |
static java.awt.Color |
labelColor
label colour |
static java.awt.Font |
labfont
label font |
static java.awt.Font |
labfont2
small label font |
private int |
maxSectionWidth
maximum width of the form |
private javax.swing.JList[] |
multiOption
multiple option field for list and select |
private JembossParams |
mysettings
jemboss properties |
private int |
nf
field number to start from |
private int |
numofFields
number of fields in the ACD |
private javax.swing.JPanel |
p3
Jemboss form panel |
private ParseAcd |
parseAcd
ACD parser for the application selected |
private javax.swing.JTextField[] |
rangeField
range field |
private ReportFormat |
rf
report format |
private javax.swing.Box |
sectionBox
container for this ACD section |
private javax.swing.JPanel |
sectionPane
container for this ACD section |
private TextFieldSink[] |
textf
text field sink |
private TextFieldFloat[] |
textFloat
float field sink |
private TextFieldInt[] |
textInt
integer field sink |
private boolean |
withSoap
true if in client-server mode |
Constructor Summary | |
protected |
SectionPanel(javax.swing.JFrame f,
javax.swing.JPanel p3,
javax.swing.Box fieldPane,
ParseAcd parseAcd,
int nff,
TextFieldSink[] textf,
TextFieldInt[] textInt,
TextFieldFloat[] textFloat,
javax.swing.JTextField[] rangeField,
javax.swing.JCheckBox[] checkBox,
InputSequenceAttributes[] inSeqAttr,
JembossComboPopup[] fieldOption,
javax.swing.JList[] multiOption,
SetInFileCard[] inSeq,
ListFilePanel[] filelist,
java.lang.String[] db,
java.lang.String des,
javax.swing.Box[] lab,
int numofFields,
JembossParams mysettings,
boolean withSoap,
java.lang.String[] envp)
|
Method Summary | |
private void |
checkDependents(javax.swing.Box section,
java.lang.String[] envp)
Checks for dependent variables and adds in action listeners |
private boolean |
cygwinSeqAttr(java.lang.String fc,
java.lang.String[] envp,
java.lang.String att)
Cygwin uses infoseq to get sequence length and type and uses infoalign to get the sequence weight. |
protected AlignFormat |
getAlignFormat()
Get the alignment format |
protected int |
getFieldNum()
Get the current field |
private java.lang.String |
getMinMaxDefault(java.lang.String min,
java.lang.String max,
java.lang.String def,
int nfield)
Get the min, max and default values for a field in the ACD as a string representation in the form (min: max: default:) |
protected ReportFormat |
getReportFormat()
Get the report format |
protected javax.swing.Box |
getSectionBox()
get the box or this section |
protected javax.swing.JPanel |
getSectionPanel()
get the panel for this section |
protected boolean |
isAdditionalSection()
|
protected boolean |
isAdvancedSection()
|
protected boolean |
isAlignFormat()
Determine if alignment formats are used in the EMBOSS program |
protected boolean |
isInputSection()
|
protected boolean |
isOutputSection()
|
protected boolean |
isReportFormat()
Determine if report formats are used in the EMBOSS program |
protected boolean |
isRequiredSection()
|
private void |
resolveDependents(int nod,
Dependent[] dep,
java.lang.String textVal,
java.lang.String varName)
Given an ACD variable and the value it takes, resolve any dependent attribute values. |
private void |
sectionResize(javax.swing.JPanel p)
Resize the section panel |
private void |
setAppTitle(java.lang.String des,
javax.swing.JPanel p3)
Set the application title panel |
private void |
setShadingAndVisibility(java.awt.Component c,
boolean useThis,
int field)
Set the shading or visibility of a component |
private boolean |
updateBeginEnd(java.lang.String s,
java.lang.String e)
Check sbeg and send values before updating in the panel to avoid overriding user selection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private TextFieldSink[] textf
private TextFieldInt[] textInt
private TextFieldFloat[] textFloat
private javax.swing.JTextField[] rangeField
private javax.swing.JCheckBox[] checkBox
private InputSequenceAttributes[] inSeqAttr
private ListFilePanel[] filelist
private JembossComboPopup[] fieldOption
private javax.swing.JList[] multiOption
private SetInFileCard[] inSeq
private javax.swing.Box[] lab
private java.lang.String[] db
private ParseAcd parseAcd
private int numofFields
private int nf
public static int ajaxLength
public static float ajaxWeight
public static boolean ajaxProtein
private boolean withSoap
private java.lang.String appName
private javax.swing.JPanel p3
private javax.swing.JPanel sectionPane
private javax.swing.Box sectionBox
private JembossParams mysettings
private boolean isInp
private boolean isReq
private boolean isAdv
private boolean isAdd
private boolean isOut
private boolean isShadedGUI
public static java.awt.Color labelColor
public static java.awt.Font labfont
public static java.awt.Font labfont2
private final int maxSectionWidth
private javax.swing.JFrame f
private ReportFormat rf
private AlignFormat af
Constructor Detail |
protected SectionPanel(javax.swing.JFrame f, javax.swing.JPanel p3, javax.swing.Box fieldPane, ParseAcd parseAcd, int nff, TextFieldSink[] textf, TextFieldInt[] textInt, TextFieldFloat[] textFloat, javax.swing.JTextField[] rangeField, javax.swing.JCheckBox[] checkBox, InputSequenceAttributes[] inSeqAttr, JembossComboPopup[] fieldOption, javax.swing.JList[] multiOption, SetInFileCard[] inSeq, ListFilePanel[] filelist, java.lang.String[] db, java.lang.String des, javax.swing.Box[] lab, int numofFields, JembossParams mysettings, boolean withSoap, java.lang.String[] envp)
f
- Jemboss framep3
- JPanel ACD form panelfieldPane
- containing all the fieldsparseAcd
- representing the ACD file to display as a formnff
- field numbertextf
- text fields in the formtextInt
- integer fields in the formtextFloat
- float fields in the formrangeField
- ranges in the formcheckBox
- for the boolean switchesinSeqAttr
- the input sequence(s) attributesfieldOption
- for the list/selection data typesmultiOption
- for multiple selection listsinSeq
- the input sequence(s)filelist
- list file paneldb
- String array containing the databasesdes
- String containing the one line description for the applicationlab
- Box for all the component labelsnumofFields
- total number of fieldsmysettings
- jemboss propertieswithSoap
- true if using a soap serverMethod Detail |
protected ReportFormat getReportFormat()
protected boolean isReportFormat()
protected AlignFormat getAlignFormat()
protected boolean isAlignFormat()
protected javax.swing.JPanel getSectionPanel()
protected javax.swing.Box getSectionBox()
protected boolean isInputSection()
protected boolean isOutputSection()
protected boolean isRequiredSection()
protected boolean isAdvancedSection()
protected boolean isAdditionalSection()
protected int getFieldNum()
private void setAppTitle(java.lang.String des, javax.swing.JPanel p3)
des
- short description of the programp3
- JPanel for the ACD formprivate java.lang.String getMinMaxDefault(java.lang.String min, java.lang.String max, java.lang.String def, int nfield)
min
- minimum value for parametermax
- maximum value for parameterdef
- default value for parameternfield
- field number in ACD
private void checkDependents(javax.swing.Box section, java.lang.String[] envp)
section
- form container for parametersprivate boolean cygwinSeqAttr(java.lang.String fc, java.lang.String[] envp, java.lang.String att)
private boolean updateBeginEnd(java.lang.String s, java.lang.String e)
s
- starte
- end
private void resolveDependents(int nod, Dependent[] dep, java.lang.String textVal, java.lang.String varName)
nod
- number of dependent valuestextVal
- value of variablevarName
- variable nameprivate void setShadingAndVisibility(java.awt.Component c, boolean useThis, int field)
c
- componentuseThis
- true if enabled/visiblefield
- field number in the ACDprivate void sectionResize(javax.swing.JPanel p)
p
- section panel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |