| 100 | * In every class that extends AppMenuItem class will be introduced new method called defineSkin which specifies values to certain properties (like title, toolips, shortcuts, mnemonics, etc.) of the skin's element. Example: |
| 101 | |
| 102 | {{{ |
| 103 | @SkinPartDef |
| 104 | private static void defineSkin(ElementSkinPart part) { |
| 105 | part.add(TITLE_PROP_ID, "PDF"); //title property defined as "PDF" |
| 106 | part.add(TOOL_TIP_PROP_ID, "Exports current book to pdf file"); //Tool tip property defined |
| 107 | part.add(MNEMONIC_PROP_ID, KeyEvent.VK_P); //Mnemonic - i.e. when P is pressed, combined with Alt. |
| 108 | } |
| 109 | }}} |
| 110 | * Classes Affected by this change are as follow: |
| 111 | * NewBookItem |
| 112 | * OpenBookItem |
| 113 | * CloseBookItem |
| 114 | |