KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > cheatsheets > data > SubItem


1 /*******************************************************************************
2  * Copyright (c) 2002, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.ui.internal.cheatsheets.data;
12
13 public class SubItem extends AbstractSubItem implements IExecutableItem, IPerformWhenItem {
14     
15     private String JavaDoc label;
16     private boolean skip;
17     private String JavaDoc when;
18
19     private AbstractExecutable executable;
20     private PerformWhen performWhen;
21
22     public SubItem() {
23         super();
24     }
25
26     /**
27      * This method returns the label to be shown for the sub item.
28      * @return the label
29      */

30     public String JavaDoc getLabel() {
31         return label;
32     }
33
34     /**
35      * This method sets the label that will be shown for the sub item.
36      * @param label the label to be shown
37      */

38     public void setLabel(String JavaDoc string) {
39         label = string;
40     }
41
42     /**
43      * This method returns the skip state for the sub item.
44      * @return the label
45      */

46     public boolean isSkip() {
47         return skip;
48     }
49
50     /**
51      * This method sets whether the sub item can be skipped.
52      * @param value the new value for skip
53      */

54     public void setSkip(boolean value) {
55         skip = value;
56     }
57
58     /**
59      * This method returns the when expression for the sub item.
60      * @return the label
61      */

62     public String JavaDoc getWhen() {
63         return when;
64     }
65
66     /**
67      * This method sets the when expression for the sub item.
68      * @param string the when expression to set
69      */

70     public void setWhen(String JavaDoc string) {
71         when = string;
72     }
73
74     /**
75      * @return Returns the action.
76      */

77     public AbstractExecutable getExecutable() {
78         return executable;
79     }
80     
81     /**
82      * @param Executable The Executable to set.
83      */

84     public void setExecutable(AbstractExecutable executable) {
85         this.executable = executable;
86     }
87     
88     /**
89      * @return Returns the performWhen.
90      */

91     public PerformWhen getPerformWhen() {
92         return performWhen;
93     }
94     
95     /**
96      * @param performWhen The performWhen to set.
97      */

98     public void setPerformWhen(PerformWhen performWhen) {
99         this.performWhen = performWhen;
100     }
101 }
102
Popular Tags