37 | | ^(Describe your design here.)^ |
| 37 | == Menu == |
| 38 | * Create a !SaveBookOnServer menu item. It's text is "Save On Server..." and the hot key will be Ctrl+Alt+S. |
| 39 | * It's logic operation def will be in !ServersTabLogic's constant !ON_SAVE_BOOK_ON_SERVER. |
| 40 | * The logic is to open a server resource dialog choose a server and path and save the book creating an !AutoAction which changes the model of the server's top resyurce. |
| 41 | == Server Resource Dialog == |
| 42 | * A !BaseCustomModalDialog base abstract class is created |
| 43 | * It's is the base class for non !JOptionPane custom modal dialogs. |
| 44 | * This dialogs are !BaseVisualElement |
| 45 | * They can access application visual elements hierarchy |
| 46 | * They must be registered somewhere in that hierarchy |
| 47 | * It has swingDialog, okButton, cancelButton, etc. |
| 48 | * Abstract validation logic so when ok button is clicked a subclass have to provide validation method. if it returns ok (true) the dialog is closed, otherwise it can |
| 49 | be closed only by cancel button and/or Esc key. |
| 50 | * !ServerResourceDialog dialog class is created |
| 51 | * Extends !Dialog |
| 52 | * Defines three inner classes for dialog input and output, and for a concrete implementation of !BaseCustomModalDialog. |
| 53 | == Icons == |
| 54 | * Changes on !DocView hierarchy. |