|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.geeboss.view.EffectTabFolder
public class EffectTabFolder
This is the TabFolder that holds the currently edited effect
Field Summary | |
---|---|
static int |
DISPLAY_MODE_FOCUS
Display Mode: Focus Feed |
static int |
DISPLAY_MODE_FOCUS_FIRST
Display Mode: Focus Feed that is on Tabposition 1 |
static int |
DISPLAY_MODE_NO_FOCUS
Display Mode: Do not Focus Feed |
Constructor Summary | |
---|---|
EffectTabFolder(org.eclipse.swt.widgets.Display display,
org.eclipse.swt.widgets.Shell shell,
org.eclipse.swt.custom.SashForm contentPane,
MainView geebossGui,
EventManager eventManager)
Create a new EffectTabFolder. |
Method Summary | |
---|---|
void |
addEffectToLastOpened(Effect effect)
|
void |
closeAll()
Close all opened tabs |
void |
closeCurrent()
Close current opened tab |
void |
closeTab(org.eclipse.swt.custom.CTabItem tabItem)
Close the given tabItem |
void |
displayEffect(Effect effect,
int displayMode)
Display the selected effect int tab folder |
boolean |
focusTab()
Check wether new tabs should get focus. |
org.eclipse.swt.custom.CTabFolder |
getEffectHeaderTabFolder()
Let other objects access this controll (for example to focus on it) |
EffectTabFolderDnd |
getEffectTabFolderDnd()
Get the DND class that allows drag and drop on this tabfolder |
java.util.ArrayList<Effect> |
getLastOpenedEffects()
Get the List with the last opened effects. |
org.eclipse.swt.custom.CTabItem |
getTabItem(Effect effect)
Get the tabitem for the given effect or null. |
org.eclipse.swt.custom.CTabItem |
getTabItem(java.lang.String title)
Get the tabitem for the given title or NULL. |
void |
gotoNextTab()
Goto next tab |
void |
gotoPreviousTab()
Goto previous tab |
boolean |
isTabOpened(java.lang.String title)
Check if a tab with the given title is opened in the tabfolder. |
void |
onMouseDoubleClick(org.eclipse.swt.events.MouseEvent e)
Called whenever the tabfolder is doubleclicked |
void |
setMaximized(boolean maximize)
Maximize the header Tabfolder if maximized is true, otherwise restore the normal state. |
void |
showErrorTab(org.eclipse.swt.custom.CTabItem tabItem,
java.lang.Exception e)
Display an error as a new tab in the tab folder |
void |
showErrorTab(java.lang.String url,
java.lang.Exception e)
Display an warning as a new tab in the tab folder |
void |
showLicenseTab(java.io.InputStream inS,
org.eclipse.swt.graphics.Image icon)
Display the License in a new tab |
void |
showMessageTab(java.lang.String message,
java.lang.String title,
org.eclipse.swt.graphics.Image icon)
Display a message in a new tab |
void |
updateI18N()
Update all controlls text with i18n |
void |
updateTabFolderState()
Update the state of the TabFolder and tell the MenuManager. |
void |
updateViewFormBorder()
Update state of 3D Border outside the ViewForm if neccessary |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DISPLAY_MODE_FOCUS
public static final int DISPLAY_MODE_FOCUS_FIRST
public static final int DISPLAY_MODE_NO_FOCUS
Constructor Detail |
---|
public EffectTabFolder(org.eclipse.swt.widgets.Display display, org.eclipse.swt.widgets.Shell shell, org.eclipse.swt.custom.SashForm contentPane, MainView geebossGui, EventManager eventManager)
display
- The displayshell
- The shellcontentPane
- The Sashform where to add the ViewFormgeebossGui
- Access some methods of the main controllereventManager
- The event managerMethod Detail |
---|
public void addEffectToLastOpened(Effect effect)
public void displayEffect(Effect effect, int displayMode)
effect
- the effectdisplayMode
- one of the supported displaymodespublic boolean focusTab()
public java.util.ArrayList<Effect> getLastOpenedEffects()
public org.eclipse.swt.custom.CTabFolder getEffectHeaderTabFolder()
public EffectTabFolderDnd getEffectTabFolderDnd()
public org.eclipse.swt.custom.CTabItem getTabItem(Effect effect)
effect
- The effect that is aggregated
public org.eclipse.swt.custom.CTabItem getTabItem(java.lang.String title)
title
- The title of the tab
public boolean isTabOpened(java.lang.String title)
title
- The title to look for
public void showErrorTab(org.eclipse.swt.custom.CTabItem tabItem, java.lang.Exception e)
tabItem
- The tabitem to load the error intoe
- The exception that occuredpublic void showErrorTab(java.lang.String url, java.lang.Exception e)
url
- URL / Path that caused the exceptione
- The exception that occuredpublic void showLicenseTab(java.io.InputStream inS, org.eclipse.swt.graphics.Image icon)
inS
- Source of the license fileicon
- The icon to use for the tabpublic void updateI18N()
updateI18N
in interface Translatable
public void updateTabFolderState()
public void closeAll()
public void closeCurrent()
public void closeTab(org.eclipse.swt.custom.CTabItem tabItem)
tabItem
- Selected tabItempublic void gotoNextTab()
public void gotoPreviousTab()
public void onMouseDoubleClick(org.eclipse.swt.events.MouseEvent e)
e
- The occuring MouseEventpublic void setMaximized(boolean maximize)
maximize
- true if maximizedpublic void showMessageTab(java.lang.String message, java.lang.String title, org.eclipse.swt.graphics.Image icon)
message
- Message Stringtitle
- Title Stringicon
- The image icon to displaypublic void updateViewFormBorder()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |