001: /*******************************************************************************
002: * Copyright (c) 2006 IBM Corporation and others.
003: * All rights reserved. This program and the accompanying materials
004: * are made available under the terms of the Eclipse Public License v1.0
005: * which accompanies this distribution, and is available at
006: * http://www.eclipse.org/legal/epl-v10.html
007: *
008: * Contributors:
009: * IBM Corporation - initial API and implementation
010: *******************************************************************************/package org.eclipse.pde.internal.core.icheatsheet.simple;
011:
012: /**
013: * ISimpleCS
014: *
015: */
016: public interface ISimpleCS extends ISimpleCSObject {
017:
018: /**
019: * Attribute: title
020: * @return
021: */
022: public String getTitle();
023:
024: /**
025: * Attribute: title
026: * @param title
027: */
028: public void setTitle(String title);
029:
030: /**
031: * Element: intro
032: * @return
033: */
034: public ISimpleCSIntro getIntro();
035:
036: /**
037: * Element: intro
038: * @param intro
039: */
040: public void setIntro(ISimpleCSIntro intro);
041:
042: /**
043: * Element: item
044: * @return
045: */
046: public ISimpleCSItem[] getItems();
047:
048: /**
049: * Element: item
050: * @param item
051: */
052: public void addItem(ISimpleCSItem item);
053:
054: /**
055: * Element: item
056: * @param item
057: * @param index
058: */
059: public void addItem(int index, ISimpleCSItem item);
060:
061: /**
062: * Element: item
063: * @param item
064: */
065: public void removeItem(ISimpleCSItem item);
066:
067: /**
068: * Element: item
069: * @param index
070: */
071: public void removeItem(int index);
072:
073: /**
074: * Element: item
075: * @param item
076: * @param newRelativeIndex
077: */
078: public void moveItem(ISimpleCSItem item, int newRelativeIndex);
079:
080: /**
081: * Element: item
082: * @param item
083: */
084: public boolean isFirstItem(ISimpleCSItem item);
085:
086: /**
087: * Element: item
088: * @param item
089: */
090: public boolean isLastItem(ISimpleCSItem item);
091:
092: /**
093: * @param item
094: * @return
095: */
096: public int indexOfItem(ISimpleCSItem item);
097:
098: /**
099: * Element: item
100: * @return
101: */
102: public int getItemCount();
103:
104: /**
105: * Element: item
106: * @return
107: */
108: public boolean hasItems();
109:
110: /**
111: * Element: item
112: * @param item
113: * @return
114: */
115: public ISimpleCSItem getNextSibling(ISimpleCSItem item);
116:
117: /**
118: * Element: item
119: * @param item
120: * @return
121: */
122: public ISimpleCSItem getPreviousSibling(ISimpleCSItem item);
123:
124: }
|