/ Developer CD Series 2000 November: Tool Chest
/ Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Java / SlideShow / Source Clippings / ImageButton / ImageButton Action Management ![]() | next > |
MacBinary | 2000-09-28 | 1.9 KB | [clpt/drag] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
100% | file | MacBinary II, inited, Sat May 8 16:19:16 1999, modified Thu Sep 28 11:56:40 2000, creator 'drag', type 'clpt' "ImageButton Action Management", at 0x80 1679 bytes resource Apple HFS/HFS+ resource fork, map offset 0x635, map length 0x5a, data length 0x535, at 16 0xe80008a0, nextResourceMap 0x5aae168, fileRef 0x4624, list offset 0x1c, name offset 0x5a, 3 types, 0x54455854 'TEXT' * 1 resource offset 0x1a | default (weak) | |
99% | file | data | default | |
74% | TrID | Mac Text clippings (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [clpt] |
macFileCreator | [drag] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 1d 49 6d 61 67 65 42 | 75 74 74 6f 6e 20 41 63 |..ImageB|utton Ac|
|00000010| 74 69 6f 6e 20 4d 61 6e | 61 67 65 6d 65 6e 74 00 |tion Man|agement.|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 63 6c 70 74 64 72 61 | 67 01 00 00 00 00 00 00 |.clptdra|g.......|
|00000050| 00 00 00 00 00 00 00 00 | 00 06 8f b3 5a 4c c4 b5 |........|....ZL..|
|00000060| f9 1a b8 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 2a 25 00 00 |........|....*%..|
|00000080| 00 00 01 00 00 00 06 35 | 00 00 05 35 00 00 00 5a |.......5|...5...Z|
|00000090| e8 00 08 a0 c5 00 04 7d | 28 3a 14 b0 c9 00 04 48 |.......}|(:.....H|
|000000a0| 00 00 10 7c 68 4a 14 48 | 00 15 d9 80 41 00 14 38 |...|hJ.H|....A..8|
|000000b0| 1d 49 6d 61 67 65 42 75 | 74 74 6f 6e 20 41 63 74 |.ImageBu|tton Act|
|000000c0| 69 6f 6e 20 4d 61 6e 61 | 67 65 6d 65 6e 74 6e 72 |ion Mana|gementnr|
|000000d0| 02 00 63 6c 70 74 64 72 | 61 67 00 00 ff ff ff ff |..clptdr|ag......|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 b3 5a 45 bc 00 00 | 00 00 00 00 06 8f 00 48 |...ZE...|.......H|
|00000100| 00 18 39 80 41 00 14 38 | 60 00 03 48 00 02 74 38 |..9.A..8|`..H..t8|
|00000110| 60 00 03 48 00 02 6c 83 | be 00 0c 81 3d 00 00 28 |`..H..l.|....=..(|
|00000120| 09 00 1c 40 82 00 c4 80 | bf 00 2c 7f c3 f3 78 3b |...@....|..,...x;|
|00000130| a5 00 0c 38 a0 00 01 7f | a4 eb 78 48 00 16 1d 80 |...8....|..xH....|
|00000140| 41 00 14 7c 7c 1b 78 28 | 1c 00 00 39 20 00 0c 40 |A..||.x(|...9 ..@|
|00000150| 82 00 20 7f e3 fb 78 7f | c4 f3 78 7f a5 eb 78 4b |.. ...x.|..x...xK|
|00000160| ff fa 39 60 00 00 00 38 | 60 00 01 48 00 02 14 81 |..9`...8|`..H....|
|00000170| 1c 00 0c 38 60 00 1d 90 | 68 00 00 91 28 00 08 39 |...8`...|h...(..9|
|00000180| 00 00 04 e5 20 20 20 20 | 2f 2a 2a 0d 20 20 20 20 |.... |/**. |
|00000190| 20 2a 20 53 65 74 73 20 | 74 68 65 20 63 6f 6d 6d | * Sets |the comm|
|000001a0| 61 6e 64 20 6e 61 6d 65 | 20 6f 66 20 74 68 65 20 |and name| of the |
|000001b0| 61 63 74 69 6f 6e 20 65 | 76 65 6e 74 20 66 69 72 |action e|vent fir|
|000001c0| 65 64 20 62 79 20 74 68 | 69 73 20 62 75 74 74 6f |ed by th|is butto|
|000001d0| 6e 2e 0d 20 20 20 20 20 | 2a 20 40 70 61 72 61 6d |n.. |* @param|
|000001e0| 20 63 6f 6d 6d 61 6e 64 | 20 54 68 65 20 6e 61 6d | command| The nam|
|000001f0| 65 20 6f 66 20 74 68 65 | 20 61 63 74 69 6f 6e 20 |e of the| action |
|00000200| 65 76 65 6e 74 20 63 6f | 6d 6d 61 6e 64 20 66 69 |event co|mmand fi|
|00000210| 72 65 64 20 62 79 20 74 | 68 69 73 20 62 75 74 74 |red by t|his butt|
|00000220| 6f 6e 0d 20 20 20 20 20 | 2a 2f 0d 20 20 20 20 70 |on. |*/. p|
|00000230| 75 62 6c 69 63 20 76 6f | 69 64 20 73 65 74 41 63 |ublic vo|id setAc|
|00000240| 74 69 6f 6e 43 6f 6d 6d | 61 6e 64 28 53 74 72 69 |tionComm|and(Stri|
|00000250| 6e 67 20 63 6f 6d 6d 61 | 6e 64 29 0d 20 20 20 20 |ng comma|nd). |
|00000260| 7b 0d 20 20 20 20 20 20 | 20 20 61 63 74 69 6f 6e |{. | action|
|00000270| 43 6f 6d 6d 61 6e 64 20 | 3d 20 63 6f 6d 6d 61 6e |Command |= comman|
|00000280| 64 3b 0d 20 20 20 20 7d | 0d 0d 20 20 20 20 2f 2a |d;. }|.. /*|
|00000290| 2a 0d 20 20 20 20 20 2a | 20 52 65 74 75 72 6e 73 |*. *| Returns|
|000002a0| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 6e 61 6d | the com|mand nam|
|000002b0| 65 20 6f 66 20 74 68 65 | 20 61 63 74 69 6f 6e 20 |e of the| action |
|000002c0| 65 76 65 6e 74 20 66 69 | 72 65 64 20 62 79 20 74 |event fi|red by t|
|000002d0| 68 69 73 20 62 75 74 74 | 6f 6e 2e 0d 20 20 20 20 |his butt|on.. |
|000002e0| 20 2a 20 40 72 65 74 75 | 72 6e 20 74 68 65 20 61 | * @retu|rn the a|
|000002f0| 63 74 69 6f 6e 20 63 6f | 6d 6d 61 6e 64 20 6e 61 |ction co|mmand na|
|00000300| 6d 65 0d 20 20 20 20 20 | 2a 2f 0d 20 20 20 20 70 |me. |*/. p|
|00000310| 75 62 6c 69 63 20 53 74 | 72 69 6e 67 20 67 65 74 |ublic St|ring get|
|00000320| 41 63 74 69 6f 6e 43 6f | 6d 6d 61 6e 64 28 29 0d |ActionCo|mmand().|
|00000330| 20 20 20 20 7b 0d 20 20 | 20 20 20 20 20 20 72 65 | {. | re|
|00000340| 74 75 72 6e 20 61 63 74 | 69 6f 6e 43 6f 6d 6d 61 |turn act|ionComma|
|00000350| 6e 64 3b 0d 20 20 20 20 | 7d 0d 0d 20 20 20 20 2f |nd;. |}.. /|
|00000360| 2a 2a 0d 20 20 20 20 20 | 2a 20 41 64 64 73 20 74 |**. |* Adds t|
|00000370| 68 65 20 73 70 65 63 69 | 66 69 65 64 20 61 63 74 |he speci|fied act|
|00000380| 69 6f 6e 20 6c 69 73 74 | 65 6e 65 72 20 74 6f 20 |ion list|ener to |
|00000390| 72 65 63 65 69 76 65 20 | 61 63 74 69 6f 6e 20 65 |receive |action e|
|000003a0| 76 65 6e 74 73 0d 20 20 | 20 20 20 2a 20 66 72 6f |vents. | * fro|
|000003b0| 6d 20 74 68 69 73 20 62 | 75 74 74 6f 6e 2e 0d 20 |m this b|utton.. |
|000003c0| 20 20 20 20 2a 20 40 70 | 61 72 61 6d 20 6c 20 74 | * @p|aram l t|
|000003d0| 68 65 20 61 63 74 69 6f | 6e 20 6c 69 73 74 65 6e |he actio|n listen|
|000003e0| 65 72 0d 20 20 20 20 20 | 2a 2f 0d 09 70 75 62 6c |er. |*/..publ|
|000003f0| 69 63 20 76 6f 69 64 20 | 61 64 64 41 63 74 69 6f |ic void |addActio|
|00000400| 6e 4c 69 73 74 65 6e 65 | 72 28 41 63 74 69 6f 6e |nListene|r(Action|
|00000410| 4c 69 73 74 65 6e 65 72 | 20 6c 29 0d 09 7b 0d 09 |Listener| l)..{..|
|00000420| 09 61 63 74 69 6f 6e 4c | 69 73 74 65 6e 65 72 20 |.actionL|istener |
|00000430| 3d 20 41 57 54 45 76 65 | 6e 74 4d 75 6c 74 69 63 |= AWTEve|ntMultic|
|00000440| 61 73 74 65 72 2e 61 64 | 64 28 61 63 74 69 6f 6e |aster.ad|d(action|
|00000450| 4c 69 73 74 65 6e 65 72 | 2c 20 6c 29 3b 0d 09 7d |Listener|, l);..}|
|00000460| 0d 0d 20 20 20 20 2f 2a | 2a 0d 20 20 20 20 20 2a |.. /*|*. *|
|00000470| 20 52 65 6d 6f 76 65 73 | 20 74 68 65 20 73 70 65 | Removes| the spe|
|00000480| 63 69 66 69 65 64 20 61 | 63 74 69 6f 6e 20 6c 69 |cified a|ction li|
|00000490| 73 74 65 6e 65 72 20 73 | 6f 20 69 74 20 6e 6f 20 |stener s|o it no |
|000004a0| 6c 6f 6e 67 65 72 20 72 | 65 63 65 69 76 65 73 0d |longer r|eceives.|
|000004b0| 20 20 20 20 20 2a 20 61 | 63 74 69 6f 6e 20 65 76 | * a|ction ev|
|000004c0| 65 6e 74 73 20 66 72 6f | 6d 20 74 68 69 73 20 62 |ents fro|m this b|
|000004d0| 75 74 74 6f 6e 2e 0d 20 | 20 20 20 20 2a 20 40 70 |utton.. | * @p|
|000004e0| 61 72 61 6d 20 6c 20 74 | 68 65 20 61 63 74 69 6f |aram l t|he actio|
|000004f0| 6e 20 6c 69 73 74 65 6e | 65 72 0d 20 20 20 20 20 |n listen|er. |
|00000500| 2a 2f 0d 09 70 75 62 6c | 69 63 20 76 6f 69 64 20 |*/..publ|ic void |
|00000510| 72 65 6d 6f 76 65 41 63 | 74 69 6f 6e 4c 69 73 74 |removeAc|tionList|
|00000520| 65 6e 65 72 28 41 63 74 | 69 6f 6e 4c 69 73 74 65 |ener(Act|ionListe|
|00000530| 6e 65 72 20 6c 29 0d 09 | 7b 0d 09 09 61 63 74 69 |ner l)..|{...acti|
|00000540| 6f 6e 4c 69 73 74 65 6e | 65 72 20 3d 20 41 57 54 |onListen|er = AWT|
|00000550| 45 76 65 6e 74 4d 75 6c | 74 69 63 61 73 74 65 72 |EventMul|ticaster|
|00000560| 2e 72 65 6d 6f 76 65 28 | 61 63 74 69 6f 6e 4c 69 |.remove(|actionLi|
|00000570| 73 74 65 6e 65 72 2c 20 | 6c 29 3b 0d 09 7d 0d 09 |stener, |l);..}..|
|00000580| 0d 09 2f 2a 2a 0d 20 20 | 20 20 20 2a 20 46 69 72 |../**. | * Fir|
|00000590| 65 20 61 6e 20 61 63 74 | 69 6f 6e 20 65 76 65 6e |e an act|ion even|
|000005a0| 74 20 74 6f 20 74 68 65 | 20 6c 69 73 74 65 6e 65 |t to the| listene|
|000005b0| 72 73 2e 0d 20 20 20 20 | 20 2a 2f 0d 09 70 72 6f |rs.. | */..pro|
|000005c0| 74 65 63 74 65 64 20 76 | 6f 69 64 20 66 69 72 65 |tected v|oid fire|
|000005d0| 41 63 74 69 6f 6e 45 76 | 65 6e 74 28 29 0d 09 7b |ActionEv|ent()..{|
|000005e0| 0d 09 09 69 66 20 28 61 | 63 74 69 6f 6e 4c 69 73 |...if (a|ctionLis|
|000005f0| 74 65 6e 65 72 20 21 3d | 20 6e 75 6c 6c 29 0d 09 |tener !=| null)..|
|00000600| 09 09 61 63 74 69 6f 6e | 4c 69 73 74 65 6e 65 72 |..action|Listener|
|00000610| 2e 61 63 74 69 6f 6e 50 | 65 72 66 6f 72 6d 65 64 |.actionP|erformed|
|00000620| 28 6e 65 77 20 41 63 74 | 69 6f 6e 45 76 65 6e 74 |(new Act|ionEvent|
|00000630| 28 74 68 69 73 2c 20 41 | 63 74 69 6f 6e 45 76 65 |(this, A|ctionEve|
|00000640| 6e 74 2e 41 43 54 49 4f | 4e 5f 50 45 52 46 4f 52 |nt.ACTIO|N_PERFOR|
|00000650| 4d 45 44 2c 20 61 63 74 | 69 6f 6e 43 6f 6d 6d 61 |MED, act|ionComma|
|00000660| 6e 64 29 29 3b 0d 09 7d | 0d 00 00 00 20 00 00 00 |nd));..}|.... ...|
|00000670| 01 00 00 00 04 00 00 00 | 00 00 00 00 01 54 45 58 |........|.....TEX|
|00000680| 54 00 00 01 00 00 00 00 | 00 00 00 00 00 00 00 00 |T.......|........|
|00000690| 24 00 00 00 05 00 01 04 | 07 00 2f 02 0d 00 f7 03 |$.......|../.....|
|000006a0| 39 00 03 00 00 00 00 01 | 50 8c 00 00 00 05 21 60 |9.......|P.....!`|
|000006b0| 60 00 00 00 00 00 00 01 | 00 00 00 06 35 00 00 05 |`.......|....5...|
|000006c0| 35 00 00 00 5a 05 aa e1 | 68 46 24 00 00 00 1c 00 |5...Z...|hF$.....|
|000006d0| 5a 00 02 54 45 58 54 00 | 00 00 1a 64 72 61 67 00 |Z..TEXT.|...drag.|
|000006e0| 00 00 26 6b 77 73 74 00 | 00 00 32 01 00 ff ff 00 |..&kwst.|..2.....|
|000006f0| 00 00 00 00 00 00 00 00 | 80 ff ff 00 00 04 e9 00 |........|........|
|00000700| 00 00 00 bf 4c ff ff 00 | 00 05 0d 00 89 c9 78 00 |....L...|......x.|
|00000710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+