org.LexGrid.LexBIG.gui.plugin
Interface TabbedContent


public interface TabbedContent

This interface allows an implementor to add a custom tab to the lower right hand palette of tabs. Example usage: // create a tab with a checkbox. The checkbox text is whatever concept is selected in the UI TabbedContent tc = new TabbedContent() { private Composite c; private Button b; public void conceptSelected(ResolvedConceptReference rcr) { b.setText(rcr.getConceptCode() + ": " + rcr.getEntityDescription().getContent()); } public Control getControl() { if (b == null) { b = new Button(c, SWT.CHECK); } return b; } public String getTabName() { return "Checkbox Tab"; } public void setParentComposite(Composite c) { this.c = c; } };

Author:
Jason Leisch

Method Summary
 void conceptSelected(ResolvedConceptReference rcr)
          Notifies the implentor that the concept identified by rcr has been selected in the left-side pane of the UI.
 org.eclipse.swt.widgets.Control getControl()
          Returns the Control that is placed in the tab
 java.lang.String getTabName()
          Returns the name of the tab.
 void setParentComposite(org.eclipse.swt.widgets.Composite c)
          This method will be called before getControl so that the implementing class can create a control that has the correct parent.
 

Method Detail

conceptSelected

void conceptSelected(ResolvedConceptReference rcr)
Notifies the implentor that the concept identified by rcr has been selected in the left-side pane of the UI.

Parameters:
rcr - the ResolvedConceptReference that has been selected in the left side pane of the UI.

getTabName

java.lang.String getTabName()
Returns the name of the tab.


getControl

org.eclipse.swt.widgets.Control getControl()
Returns the Control that is placed in the tab


setParentComposite

void setParentComposite(org.eclipse.swt.widgets.Composite c)
This method will be called before getControl so that the implementing class can create a control that has the correct parent. If the Control returned by the getControl method is not created with "c" as its parent, the control will not show up in the interface.

Parameters:
c - the Composite that is expected to be the parent of the control retrieved from getControl.

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.