|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.AbstractAction
kawigi.cmd.DefaultAction
kawigi.cmd.TestCasesAction
public class TestCasesAction
Implementation of all actions for editing test cases.
| Field Summary | |
|---|---|
protected static javax.swing.JCheckBox |
ansBox
|
protected static java.lang.Object |
answerFld
|
protected static EditorDataType |
arrayBaseType
|
protected static javax.swing.JDialog |
arrayDlg
Dialog for editing array parameter of test case. |
protected static javax.swing.JTextField |
arrayField
|
protected static javax.swing.JLabel |
arrayLabel
All visual controls in dialog for editing array parameter of test case. |
protected static javax.swing.JTextArea |
arrayText
|
protected static java.util.ArrayList<Dispatcher> |
caseDisps
|
protected static javax.swing.JDialog |
caseDlg
Dialog for editing single test case. |
protected static int |
caseNum
Number of test case which is edited at nowtime (if test case will be added this variable is setted to -1). |
protected static java.util.ArrayList<javax.swing.JButton> |
delButs
|
protected static GridPanel |
delsPan
|
protected static java.util.ArrayList<javax.swing.JButton> |
editButs
|
protected static java.util.ArrayList<java.lang.Object> |
editFields
All visual controls and its dispatchers in dialog for editing single test case. |
protected static GridPanel |
editsPan
|
protected static int |
fieldNum
Number of an array field in test case which is edited at nowtime. |
protected static boolean |
isChangingTexts
Flag needed in synchronizing TextArea and TextBox when editing array parameter. |
protected static GridPanel |
labelsPan
All visual controls in main dialog for editing test cases. |
protected static java.util.ArrayList<javax.swing.JLabel> |
labsLabels
|
protected static javax.swing.JDialog |
mainDlg
Main dialog for editing test cases. |
protected static Test |
testCase
Test case edited at nowtime. |
protected java.lang.Object |
thisField
TextBox or Button in dialog for editing single test case for which this action was created. |
| Fields inherited from class kawigi.cmd.DefaultAction |
|---|
cmdid, COLOR, enableSet, FONT, LARGE_ICON, SELECTED, SPINNER_MODEL, SPINNER_VALUE, TEXT, visible, VISIBLE, visibleSet |
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
TestCasesAction(ActID cmdid)
Constructs a new TestCasesAction for the given ActID. |
|
TestCasesAction(ActID cmdid,
ActionTextField field)
Constructs a new TestCasesAction for the given ActID and given TextField. |
|
TestCasesAction(ActID cmdid,
javax.swing.JButton field)
Constructs a new TestCasesAction for the given ActID and given Button. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
All commands gathered here. |
protected void |
adjustCBoxProps(javax.swing.JCheckBox cbox)
Some code to change default checkbox colors in plugin mode. |
protected void |
adjustLabelProps(javax.swing.JLabel lab)
Some code to change default label colors in plugin mode. |
protected void |
ansBoxChanged()
Doing some UI changes after clicking on checkbox near answer (is it needed to check it). |
protected javax.swing.JDialog |
createArrayDialog(ClassDecl cl)
Creates the dialog for editing array parameter. |
protected javax.swing.JDialog |
createCaseDialog(ClassDecl cl)
Creates the dialog for editing single test case. |
protected javax.swing.JDialog |
createMainDialog(ClassDecl cl)
Creates the main dialog for editing test cases. |
protected void |
fieldChanged()
Changes text in TextArea (array one-element-in-line) after editing TextBox (array comma-separated). |
java.lang.Object |
getValue(java.lang.String key)
Getting text for parameter value TextBox. |
boolean |
isEnabled()
Returns true if this action is available. |
boolean |
isNeedTrackEnabled()
I think it's very critical to not play with focus during contest. |
void |
putValue(java.lang.String key,
java.lang.Object value)
Saving text for parameter value TextBox after changing. |
protected void |
textChanged()
Changes text in TextBox (array comma-separated) after editing TextArea (array one-element-in-line). |
protected void |
updateArrayLabel(int num_items)
Changes the label text when number of elements in the array changed. |
protected void |
updateButtonState(java.lang.String val)
Changes text on the button for array parameter ("create" array if it's empty or "modify" if not). |
| Methods inherited from class kawigi.cmd.DefaultAction |
|---|
equals, getID, isVisible, reportError, setVisible, UIRefresh |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static javax.swing.JDialog mainDlg
protected static javax.swing.JDialog caseDlg
protected static javax.swing.JDialog arrayDlg
protected static GridPanel labelsPan
protected static GridPanel editsPan
protected static GridPanel delsPan
protected static java.util.ArrayList<javax.swing.JLabel> labsLabels
protected static java.util.ArrayList<javax.swing.JButton> editButs
protected static java.util.ArrayList<javax.swing.JButton> delButs
protected static int caseNum
protected static Test testCase
protected static java.util.ArrayList<java.lang.Object> editFields
protected static javax.swing.JCheckBox ansBox
protected static java.lang.Object answerFld
protected static java.util.ArrayList<Dispatcher> caseDisps
protected java.lang.Object thisField
protected static int fieldNum
protected static javax.swing.JLabel arrayLabel
protected static javax.swing.JTextArea arrayText
protected static javax.swing.JTextField arrayField
protected static EditorDataType arrayBaseType
protected static boolean isChangingTexts
| Constructor Detail |
|---|
public TestCasesAction(ActID cmdid)
public TestCasesAction(ActID cmdid,
ActionTextField field)
public TestCasesAction(ActID cmdid,
javax.swing.JButton field)
| Method Detail |
|---|
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListeneractionPerformed in class DefaultActionpublic boolean isEnabled()
isEnabled in interface javax.swing.ActionisEnabled in class javax.swing.AbstractActionpublic boolean isNeedTrackEnabled()
isNeedTrackEnabled in class DefaultActionprotected void adjustLabelProps(javax.swing.JLabel lab)
protected void adjustCBoxProps(javax.swing.JCheckBox cbox)
protected javax.swing.JDialog createMainDialog(ClassDecl cl)
protected javax.swing.JDialog createCaseDialog(ClassDecl cl)
protected void ansBoxChanged()
protected void updateButtonState(java.lang.String val)
public java.lang.Object getValue(java.lang.String key)
getValue in interface javax.swing.ActiongetValue in class javax.swing.AbstractAction
public void putValue(java.lang.String key,
java.lang.Object value)
putValue in interface javax.swing.ActionputValue in class javax.swing.AbstractActionprotected javax.swing.JDialog createArrayDialog(ClassDecl cl)
protected void updateArrayLabel(int num_items)
protected void textChanged()
protected void fieldChanged()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||