1 package com.explosion.expf.menusandtools.menu.segmented;
2
3 import java.awt.Component;
4
5 import com.explosion.expf.menusandtools.menu.InvalidOrUnknownSegmentException;
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 /***
28 * @author Stephen Cowx
29 */
30
31 public interface ExpSegmentedMenu
32 {
33 /***
34 * Creates a new segment in this menu
35 */
36 public ExpMenuSegment createNewSegment(int relativePositionOfSegmentOnMenu) throws Exception;
37
38 /***
39 * adds an item to the specified segment
40 */
41 public void addElementToSegment(ExpMenuSegment segment, Component item) throws InvalidOrUnknownSegmentException;
42
43 /***
44 * Removes all the elements except the separator from this menu
45 * @param segment
46 * @param item
47 * @throws InvalidOrUnknownSegmentException
48 */
49 public void removeSegment(ExpMenuSegment segment) throws InvalidOrUnknownSegmentException;
50
51 }
52