org.eclipse.graphiti.palette.impl
Class StackEntry

java.lang.Object
  extended by org.eclipse.graphiti.palette.impl.AbstractPaletteEntry
      extended by org.eclipse.graphiti.palette.impl.StackEntry
All Implemented Interfaces:
IPaletteEntry, IStackToolEntry, IToolEntry

public class StackEntry
extends AbstractPaletteEntry
implements IStackToolEntry

The Class StackEntry creates a compartment entry which visualises as a drawer in the palette containing multiple tools in a drop down list of which one is active and visible.


Field Summary
private  java.util.List<ICreationToolEntry> creationToolEntries
           
private  java.lang.String description
           
 
Constructor Summary
StackEntry(java.lang.String label, java.lang.String description, java.lang.String iconId)
          Creates a new StackEntry.
 
Method Summary
 void addCreationToolEntry(ICreationToolEntry creationToolEntry)
          Adds a creation tool to the stack entry.
 java.util.List<ICreationToolEntry> getCreationToolEntries()
          Returns the creation tools.
 java.lang.String getDescription()
          Gets the description.
 
Methods inherited from class org.eclipse.graphiti.palette.impl.AbstractPaletteEntry
getIconId, getLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.graphiti.palette.IPaletteEntry
getIconId, getLabel
 

Field Detail

description

private java.lang.String description

creationToolEntries

private java.util.List<ICreationToolEntry> creationToolEntries
Constructor Detail

StackEntry

public StackEntry(java.lang.String label,
                  java.lang.String description,
                  java.lang.String iconId)
Creates a new StackEntry.

Parameters:
label - the text to display
description - the tooltip text
iconId - the id for the icon
Method Detail

getDescription

public java.lang.String getDescription()
Gets the description.

Specified by:
getDescription in interface IStackToolEntry
Returns:
the description

getCreationToolEntries

public java.util.List<ICreationToolEntry> getCreationToolEntries()
Returns the creation tools.

Specified by:
getCreationToolEntries in interface IStackToolEntry
Returns:
the creation tool entries

addCreationToolEntry

public void addCreationToolEntry(ICreationToolEntry creationToolEntry)
Adds a creation tool to the stack entry.

Parameters:
creationToolEntry - the creation tool entry


Copyright (c) SAP AG 2005, 2012.