Package org.pentaho.xul.swt.tab
Class TabSet
- java.lang.Object
-
- org.pentaho.xul.swt.tab.TabSet
-
- All Implemented Interfaces:
EventListener
,org.eclipse.swt.custom.CTabFolder2Listener
,org.eclipse.swt.events.SelectionListener
,org.eclipse.swt.internal.SWTEventListener
public class TabSet extends Object implements org.eclipse.swt.events.SelectionListener, org.eclipse.swt.custom.CTabFolder2Listener
-
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.swt.graphics.Font
changedFont
List<TabItem>
lastUsedTabs
protected int
selectedIndex
protected org.eclipse.swt.custom.CTabFolder
tabfolder
protected List<TabItem>
tabList
protected org.eclipse.swt.graphics.Font
unchangedFont
-
Constructor Summary
Constructors Constructor Description TabSet(org.eclipse.swt.widgets.Composite parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addKeyListener(org.eclipse.swt.events.KeyAdapter keys)
void
addListener(TabListener listener)
void
addTab(TabItem item)
void
close(org.eclipse.swt.custom.CTabFolderEvent event)
protected org.eclipse.swt.custom.CTabFolder
createTabFolder(org.eclipse.swt.widgets.Composite parent)
org.eclipse.swt.graphics.Font
getChangedFont()
TabItem
getSelected()
int
getSelectedIndex()
org.eclipse.swt.custom.CTabFolder
getSwtTabset()
org.eclipse.swt.graphics.Font
getUnchangedFont()
int
indexOf(TabItem item)
void
maximize(org.eclipse.swt.custom.CTabFolderEvent event)
void
minimize(org.eclipse.swt.custom.CTabFolderEvent event)
boolean
notifyCloseListeners(TabItem item)
void
notifyDeselectListeners(TabItem item)
void
notifySelectListeners(TabItem item)
void
remove(TabItem item)
void
removeListener(TabListener listener)
void
restore(org.eclipse.swt.custom.CTabFolderEvent event)
void
setChangedFont(org.eclipse.swt.graphics.Font changedFont)
void
setSelected(int index)
void
setSelected(TabItem item)
void
showList(org.eclipse.swt.custom.CTabFolderEvent event)
void
widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent event)
void
widgetSelected(org.eclipse.swt.events.SelectionEvent event)
-
-
-
Method Detail
-
widgetSelected
public void widgetSelected(org.eclipse.swt.events.SelectionEvent event)
- Specified by:
widgetSelected
in interfaceorg.eclipse.swt.events.SelectionListener
-
widgetDefaultSelected
public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent event)
- Specified by:
widgetDefaultSelected
in interfaceorg.eclipse.swt.events.SelectionListener
-
close
public void close(org.eclipse.swt.custom.CTabFolderEvent event)
- Specified by:
close
in interfaceorg.eclipse.swt.custom.CTabFolder2Listener
-
maximize
public void maximize(org.eclipse.swt.custom.CTabFolderEvent event)
- Specified by:
maximize
in interfaceorg.eclipse.swt.custom.CTabFolder2Listener
-
minimize
public void minimize(org.eclipse.swt.custom.CTabFolderEvent event)
- Specified by:
minimize
in interfaceorg.eclipse.swt.custom.CTabFolder2Listener
-
showList
public void showList(org.eclipse.swt.custom.CTabFolderEvent event)
- Specified by:
showList
in interfaceorg.eclipse.swt.custom.CTabFolder2Listener
-
restore
public void restore(org.eclipse.swt.custom.CTabFolderEvent event)
- Specified by:
restore
in interfaceorg.eclipse.swt.custom.CTabFolder2Listener
-
notifySelectListeners
public void notifySelectListeners(TabItem item)
-
createTabFolder
protected org.eclipse.swt.custom.CTabFolder createTabFolder(org.eclipse.swt.widgets.Composite parent)
-
notifyDeselectListeners
public void notifyDeselectListeners(TabItem item)
-
notifyCloseListeners
public boolean notifyCloseListeners(TabItem item)
-
getSwtTabset
public org.eclipse.swt.custom.CTabFolder getSwtTabset()
-
addTab
public void addTab(TabItem item)
-
addKeyListener
public void addKeyListener(org.eclipse.swt.events.KeyAdapter keys)
-
getSelectedIndex
public int getSelectedIndex()
-
getSelected
public TabItem getSelected()
-
indexOf
public int indexOf(TabItem item)
-
setSelected
public void setSelected(int index)
-
setSelected
public void setSelected(TabItem item)
-
remove
public void remove(TabItem item)
-
getChangedFont
public org.eclipse.swt.graphics.Font getChangedFont()
-
setChangedFont
public void setChangedFont(org.eclipse.swt.graphics.Font changedFont)
-
getUnchangedFont
public org.eclipse.swt.graphics.Font getUnchangedFont()
-
addListener
public void addListener(TabListener listener)
-
removeListener
public void removeListener(TabListener listener)
-
-