Lines Matching defs:tw

713         ToolWindow tw = new ToolWindow(new PolicyTool());
714 tw.displayToolWindow(args);
1247 final ToolDialog tw = new ToolDialog
1251 tw.setBounds(location.x + 75, location.y + 100, 400, 150);
1252 tw.setLayout(new GridBagLayout());
1256 addNewComponent(tw, ta, 0,
1270 tw.setVisible(false);
1271 tw.dispose();
1282 tw.setVisible(false);
1283 tw.dispose();
1290 addNewComponent(tw, panel, 1,
1293 tw.pack();
1294 tw.setVisible(true);
1433 ToolWindow tw;
1472 ToolDialog(String title, PolicyTool tool, ToolWindow tw, boolean modal) {
1473 super(tw, modal);
1476 this.tw = tw;
1540 (new EditPrinButtonListener(tool, tw, this, edit));
1545 (new EditPermButtonListener(tool, tw, this, edit));
1548 Point location = tw.getLocationOnScreen();
1556 List policyList = (List)tw.getComponent(tw.MW_POLICY_LIST);
1582 tw.addNewComponent(this, label, PE_CODEBASE_LABEL,
1590 tw.addNewComponent(this, tf, PE_CODEBASE_TEXTFIELD,
1595 tw.addNewComponent(this, label, PE_SIGNEDBY_LABEL,
1602 tw.addNewComponent(this, tf, PE_SIGNEDBY_TEXTFIELD,
1611 (new AddPrinButtonListener(tool, tw, this, edit));
1612 tw.addNewComponent(panel, button, PE_ADD_PRIN_BUTTON,
1617 (tool, tw, this, edit));
1618 tw.addNewComponent(panel, button, PE_EDIT_PRIN_BUTTON,
1623 (tool, tw, this, edit));
1624 tw.addNewComponent(panel, button, PE_REMOVE_PRIN_BUTTON,
1627 tw.addNewComponent(this, panel, PE_PANEL0,
1632 tw.addNewComponent(this, label, PE_PRIN_LABEL,
1634 tw.BOTTOM_PADDING);
1635 tw.addNewComponent(this, prinList, PE_PRIN_LIST,
1637 tw.BOTTOM_PADDING);
1645 (tool, tw, this, edit));
1646 tw.addNewComponent(panel, button, PE_ADD_PERM_BUTTON,
1651 (tool, tw, this, edit));
1652 tw.addNewComponent(panel, button, PE_EDIT_PERM_BUTTON,
1658 (tool, tw, this, edit));
1659 tw.addNewComponent(panel, button, PE_REMOVE_PERM_BUTTON,
1662 tw.addNewComponent(this, panel, PE_PANEL1,
1664 tw.LITE_BOTTOM_PADDING);
1667 tw.addNewComponent(this, permList, PE_PERM_LIST,
1669 tw.BOTTOM_PADDING);
1679 (new AddEntryDoneButtonListener(tool, tw, this, edit));
1680 tw.addNewComponent(panel, button, PE_DONE_BUTTON,
1682 tw.LR_PADDING);
1687 tw.addNewComponent(panel, button, PE_CANCEL_BUTTON,
1689 tw.LR_PADDING);
1692 tw.addNewComponent(this, panel, PE_PANEL2,
1752 Point location = tw.getLocationOnScreen();
1761 tw.addNewComponent(this, label, KSD_NAME_LABEL,
1763 tw.BOTTOM_PADDING);
1769 tw.addNewComponent(this, tf, KSD_NAME_TEXTFIELD,
1771 tw.BOTTOM_PADDING);
1775 tw.addNewComponent(this, label, KSD_TYPE_LABEL,
1777 tw.BOTTOM_PADDING);
1781 tw.addNewComponent(this, tf, KSD_TYPE_TEXTFIELD,
1783 tw.BOTTOM_PADDING);
1788 tw.addNewComponent(this, label, KSD_PROVIDER_LABEL,
1790 tw.BOTTOM_PADDING);
1794 tw.addNewComponent(this, tf, KSD_PROVIDER_TEXTFIELD,
1796 tw.BOTTOM_PADDING);
1801 tw.addNewComponent(this, label, KSD_PWD_URL_LABEL,
1803 tw.BOTTOM_PADDING);
1807 tw.addNewComponent(this, tf, KSD_PWD_URL_TEXTFIELD,
1809 tw.BOTTOM_PADDING);
1814 (new ChangeKeyStoreOKButtonListener(tool, tw, this));
1815 tw.addNewComponent(this, okButton, KSD_OK_BUTTON,
1821 tw.addNewComponent(this, cancelButton, KSD_CANCEL_BUTTON,
1850 (PolicyTool.rb.getString("Principals"), tool, tw, true);
1863 tw.addNewComponent(newTD, label, PRD_DESC_LABEL,
1865 tw.TOP_BOTTOM_PADDING);
1889 tw.addNewComponent(newTD, choice, PRD_PRIN_CHOICE,
1891 tw.LR_PADDING);
1899 tw.addNewComponent(newTD, tf, PRD_PRIN_TEXTFIELD,
1901 tw.LR_PADDING);
1910 tw.addNewComponent(newTD, label, PRD_NAME_LABEL,
1912 tw.LR_PADDING);
1913 tw.addNewComponent(newTD, tf, PRD_NAME_TEXTFIELD,
1915 tw.LR_PADDING);
1921 (tool, tw, this, newTD, edit));
1922 tw.addNewComponent(newTD, okButton, PRD_OK_BUTTON,
1924 tw.TOP_BOTTOM_PADDING);
1928 tw.addNewComponent(newTD, cancelButton, PRD_CANCEL_BUTTON,
1930 tw.TOP_BOTTOM_PADDING);
1957 (PolicyTool.rb.getString("Permissions"), tool, tw, true);
1970 tw.addNewComponent(newTD, label, PD_DESC_LABEL,
1972 tw.TOP_BOTTOM_PADDING);
1983 tw.addNewComponent(newTD, choice, PD_PERM_CHOICE,
1985 tw.LR_PADDING);
1997 tw.addNewComponent(newTD, tf, PD_PERM_TEXTFIELD,
1999 tw.LR_PADDING);
2011 tw.addNewComponent(newTD, choice, PD_NAME_CHOICE,
2013 tw.LR_PADDING);
2014 tw.addNewComponent(newTD, tf, PD_NAME_TEXTFIELD,
2016 tw.LR_PADDING);
2028 tw.addNewComponent(newTD, choice, PD_ACTIONS_CHOICE,
2030 tw.LR_PADDING);
2031 tw.addNewComponent(newTD, tf, PD_ACTIONS_TEXTFIELD,
2033 tw.LR_PADDING);
2037 tw.addNewComponent(newTD, label, PD_SIGNEDBY_LABEL,
2039 tw.LR_PADDING);
2043 tw.addNewComponent(newTD, tf, PD_SIGNEDBY_TEXTFIELD,
2045 tw.LR_PADDING);
2051 (tool, tw, this, newTD, edit));
2052 tw.addNewComponent(newTD, okButton, PD_OK_BUTTON,
2054 tw.TOP_BOTTOM_PADDING);
2059 tw.addNewComponent(newTD, cancelButton, PD_CANCEL_BUTTON,
2061 tw.TOP_BOTTOM_PADDING);
2116 tw.displayStatusDialog(this,
2152 char result = tw.displayYesNoDialog(this,
2192 tw.displayStatusDialog(this, form.format(source));
2195 tw.displayErrorDialog(this, e);
2208 List list = (List)tw.getComponent(tw.MW_POLICY_LIST);
2213 Point location = tw.getLocationOnScreen();
2220 tw.addNewComponent(this, label, CRPE_LABEL1,
2222 tw.BOTTOM_PADDING);
2226 tw.addNewComponent(this, label, CRPE_LABEL2,
2229 tw.addNewComponent(this, label, CRPE_LABEL2+1,
2238 tw.addNewComponent(this, label, CRPE_LABEL2 + 2 + i,
2240 GridBagConstraints.BOTH, tw.BOTTOM_PADDING);
2242 tw.addNewComponent(this, label, CRPE_LABEL2 + 2 + i,
2256 (new ConfirmRemovePolicyEntryOKButtonListener(tool, tw, this));
2257 tw.addNewComponent(panel, okButton, CRPE_PANEL_OK,
2259 GridBagConstraints.VERTICAL, tw.LR_PADDING);
2264 tw.addNewComponent(panel, cancelButton, CRPE_PANEL_CANCEL,
2266 GridBagConstraints.VERTICAL, tw.LR_PADDING);
2268 tw.addNewComponent(this, panel, CRPE_LABEL2 + 2 + perms.size(),
2270 GridBagConstraints.VERTICAL, tw.TOP_BOTTOM_PADDING);
2283 (tw, PolicyTool.rb.getString("Save.As"), FileDialog.SAVE);
2309 tw.displayStatusDialog(null, form.format(source));
2312 TextField newFilename = (TextField)tw.getComponent
2313 (tw.MW_FILENAME_TEXTFIELD);
2315 tw.setVisible(true);
2319 userSaveContinue(tool, tw, this, nextEvent);
2323 tw.displayErrorDialog(null, new FileNotFoundException
2326 tw.displayErrorDialog(null, fnfe);
2329 tw.displayErrorDialog(null, ee);
2341 Point location = tw.getLocationOnScreen();
2347 tw.addNewComponent(this, label, USC_LABEL,
2349 tw.L_TOP_BOTTOM_PADDING);
2356 (new UserSaveYesButtonListener(this, tool, tw, select));
2357 tw.addNewComponent(panel, yesButton, USC_YES_BUTTON,
2360 tw.LR_BOTTOM_PADDING);
2363 (new UserSaveNoButtonListener(this, tool, tw, select));
2364 tw.addNewComponent(panel, noButton, USC_NO_BUTTON,
2367 tw.LR_BOTTOM_PADDING);
2371 tw.addNewComponent(panel, cancelButton, USC_CANCEL_BUTTON,
2374 tw.LR_BOTTOM_PADDING);
2376 tw.addNewComponent(this, panel, USC_PANEL,
2383 userSaveContinue(tool, tw, this, select);
2394 void userSaveContinue(PolicyTool tool, ToolWindow tw,
2401 tw.setVisible(false);
2402 tw.dispose();
2411 tw.displayErrorDialog(null, ee);
2416 list.addActionListener(new PolicyListListener(tool, tw));
2417 tw.replacePolicyList(list);
2421 tw.getComponent(tw.MW_FILENAME_TEXTFIELD);
2423 tw.setVisible(true);
2430 (tw, PolicyTool.rb.getString("Open"), FileDialog.LOAD);
2452 list.addActionListener(new PolicyListListener(tool, tw));
2458 tw.replacePolicyList(list);
2463 tw.getComponent(tw.MW_FILENAME_TEXTFIELD);
2465 tw.setVisible(true);
2469 tw.displayStatusDialog(null, PolicyTool.rb.getString
2476 list.addActionListener(new PolicyListListener(tool, tw));
2477 tw.replacePolicyList(list);
2483 tw.getComponent(tw.MW_FILENAME_TEXTFIELD);
2485 tw.setVisible(true);
2491 tw.displayErrorDialog(null, form.format(source));
2584 private ToolWindow tw;
2586 ToolWindowListener(ToolWindow tw) {
2587 this.tw = tw;
2601 tw.setVisible(false);
2602 tw.dispose();
2629 private ToolWindow tw;
2631 PolicyListListener(PolicyTool tool, ToolWindow tw) {
2633 this.tw = tw;
2641 (PolicyTool.rb.getString("Policy.Entry"), tool, tw, true);
2652 private ToolWindow tw;
2654 FileMenuListener(PolicyTool tool, ToolWindow tw) {
2656 this.tw = tw;
2661 if (PolicyTool.collator.compare(e.getActionCommand(), tw.QUIT) == 0) {
2665 (PolicyTool.rb.getString("Save.Changes"), tool, tw, true);
2672 tw.NEW_POLICY_FILE) == 0) {
2676 (PolicyTool.rb.getString("Save.Changes"), tool, tw, true);
2683 tw.OPEN_POLICY_FILE) == 0) {
2687 (PolicyTool.rb.getString("Save.Changes"), tool, tw, true);
2694 tw.SAVE_POLICY_FILE) == 0) {
2698 tw.getComponent(tw.MW_FILENAME_TEXTFIELD)).getText();
2704 (PolicyTool.rb.getString("Save.As"), tool, tw, true);
2716 tw.displayStatusDialog(null, form.format(source));
2719 tw.displayErrorDialog(null, new FileNotFoundException
2722 tw.displayErrorDialog(null, fnfe);
2725 tw.displayErrorDialog(null, ee);
2729 tw.SAVE_AS_POLICY_FILE) == 0) {
2733 (PolicyTool.rb.getString("Save.As"), tool, tw, true);
2737 tw.VIEW_WARNINGS) == 0) {
2738 tw.displayWarningLog(null);
2749 private ToolWindow tw;
2751 MainWindowListener(PolicyTool tool, ToolWindow tw) {
2753 this.tw = tw;
2759 tw.ADD_POLICY_ENTRY) == 0) {
2763 (PolicyTool.rb.getString("Policy.Entry"), tool, tw, true);
2767 tw.REMOVE_POLICY_ENTRY) == 0) {
2770 List list = (List)tw.getComponent(tw.MW_POLICY_LIST);
2773 tw.displayErrorDialog(null, new Exception
2780 ("Remove.Policy.Entry"), tool, tw, true);
2784 tw.EDIT_POLICY_ENTRY) == 0) {
2787 List list = (List)tw.getComponent(tw.MW_POLICY_LIST);
2790 tw.displayErrorDialog(null, new Exception
2797 (PolicyTool.rb.getString("Policy.Entry"), tool, tw, true);
2801 tw.EDIT_KEYSTORE) == 0) {
2805 (PolicyTool.rb.getString("KeyStore"), tool, tw, true);
2822 private ToolWindow tw;
2826 AddEntryDoneButtonListener(PolicyTool tool, ToolWindow tw,
2829 this.tw = tw;
2852 tw.displayStatusDialog(td, form.format(source));
2858 List policyList = (List)tw.getComponent(tw.MW_POLICY_LIST);
2876 tw.displayErrorDialog(td, eee);
2887 private ToolWindow tw;
2890 ChangeKeyStoreOKButtonListener(PolicyTool tool, ToolWindow tw,
2893 this.tw = tw;
2919 tw.displayErrorDialog(td, form.format(source));
2933 private ToolWindow tw;
2937 AddPrinButtonListener(PolicyTool tool, ToolWindow tw,
2940 this.tw = tw;
2958 private ToolWindow tw;
2962 AddPermButtonListener(PolicyTool tool, ToolWindow tw,
2965 this.tw = tw;
2983 private ToolWindow tw;
2989 ToolWindow tw,
2994 this.tw = tw;
3016 tw.displayStatusDialog(infoDialog, form.format(source));
3035 tw.displayErrorDialog(infoDialog, ee);
3046 private ToolWindow tw;
3052 ToolWindow tw,
3057 this.tw = tw;
3077 tw.displayStatusDialog(infoDialog, form.format(source));
3096 tw.displayErrorDialog(infoDialog, ite.getTargetException());
3098 tw.displayErrorDialog(infoDialog, ee);
3109 private ToolWindow tw;
3113 RemovePrinButtonListener(PolicyTool tool, ToolWindow tw,
3116 this.tw = tw;
3128 tw.displayErrorDialog(td, new Exception
3143 private ToolWindow tw;
3147 RemovePermButtonListener(PolicyTool tool, ToolWindow tw,
3150 this.tw = tw;
3162 tw.displayErrorDialog(td, new Exception
3184 private ToolWindow tw;
3188 EditPrinButtonListener(PolicyTool tool, ToolWindow tw,
3191 this.tw = tw;
3203 tw.displayErrorDialog(td, new Exception
3223 private ToolWindow tw;
3227 EditPermButtonListener(PolicyTool tool, ToolWindow tw,
3230 this.tw = tw;
3242 tw.displayErrorDialog(td, new Exception
3506 private ToolWindow tw;
3510 ToolWindow tw, int select) {
3513 this.tw = tw;
3525 tw.getComponent(tw.MW_FILENAME_TEXTFIELD)).getText();
3540 tw.displayStatusDialog(null, form.format(source));
3544 us.userSaveContinue(tool, tw, us, select);
3548 tw.displayErrorDialog(null, ee);
3559 private ToolWindow tw;
3564 ToolWindow tw, int select) {
3567 this.tw = tw;
3577 us.userSaveContinue(tool, tw, us, select);
3607 private ToolWindow tw;
3611 ToolWindow tw, ToolDialog us) {
3613 this.tw = tw;
3619 List list = (List)tw.getComponent(tw.MW_POLICY_LIST);
3626 list.addActionListener(new PolicyListListener(tool, tw));
3632 tw.replacePolicyList(list);