Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: javax/ide/menu/spi/Positionable.java


1   package javax.ide.menu.spi;
2   
3   import javax.ide.Identifiable;
4   
5   /**
6    * Menu model elements that can be positioned relative to other items of the
7    * same type are Positionable. They provide one of 'before' or 'after', or 
8    * neither.
9    */
10  abstract class Positionable implements Identifiable
11  {
12    private final String _id;
13    private String _before;
14    private String _after;
15    
16    protected Positionable( String id )
17    {
18      _id = id;
19    }
20  
21    public final String getBefore()
22    {
23      return _before;
24    }
25    
26    public final String getAfter()
27    {
28      return _after;
29    }
30    
31    public final String getID()
32    {
33      return _id;
34    }
35    
36    void setBefore( String before )
37    {
38      _before = before;
39    }
40    
41    void setAfter( String after )
42    {
43      _after = after;
44    }
45  }