|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.page.Notebook
Manages a Collection of NotebookPages and the corresponding SWT-TabFolder.
| Constructor Summary | |
Notebook(PageClient parent)
Initializes the Notebook inside the given PageClient. |
|
| Method Summary | |
void |
addPage(int index,
NotebookPage page)
Adds a NotebookPage to the existing NotebookPages at the given index. |
void |
addPage(NotebookPage page)
Adds a NotebookPage to the existing NotebookPages of this Notebook. |
org.eclipse.swt.widgets.Composite |
createComposite(org.eclipse.swt.widgets.Composite parentComp)
Creates the SWT-Composite of the PageClient which is the TabFolder of the Notebook. |
void |
determineStateBase()
Delegates the call of PageClient.determineStateBase() to the active page. |
void |
enterBase()
Notify the active NotebookPage, that the PageClient is becoming visible by calling PageClient.enterBase() on the active NotebookPage. |
NotebookPage |
getActivePage()
Gets the active NotebookPage. |
int |
getActivePageIndex()
Gets the active NotebookPage. |
org.eclipse.swt.widgets.Composite |
getComposite()
Gets the SWT-Composite of the PageClient which is the TabFolder of the Notebook. |
java.lang.String |
getContextString()
|
at.spardat.xma.boot.component.IDialog |
getDialog()
Gets the containing dialog of the PageClient by calling PageClient.getDialog() on the active NotebookPage. |
NotebookPage |
getPage(int index)
Gets the NotebookPage with the given index. |
PageClient |
getParent()
Gets the PageClient containig this Notebook. |
org.eclipse.swt.widgets.TabFolder |
getTabFolder()
Gets the TabFolder of the Notebook. |
void |
helpRequested(org.eclipse.swt.events.HelpEvent event)
Eventhandler called by SWT every time F1 is pressed inside the tabfolder. |
void |
initGUI()
Creates the Widgets of all NotebookPages by calling NotebookPage.initGUI() on all NotebookPages. |
void |
leaveBase()
Notify the active NotebookPage, that the PageClient no longer is visible by calling PageClient.leaveBase() on the active NotebookPage. |
void |
removeModel()
Removes the WidgetModels of all NotebookPages by calling PageClient.removeWidgetModels() on all NotebookPages. |
void |
removePage(NotebookPage page)
Removes a NotebookPage from the exisiting NotebookPages of this Notebook. |
void |
removeWidgetsBase()
Notify all NotebookPages, that the Widgets are disposed by calling PageClient.removeWidgets() on all NotebookPages. |
void |
setActivePage(int index)
Activates the NotebookPage with the given index. |
void |
setActivePage(NotebookPage page)
Activates the given NotebookPage. |
void |
setDialog(at.spardat.xma.boot.component.IDialog dialog)
Sets the containing dialog of the PageClient by calling PageClient.setDialog(IDialog) on all NotebookPages. |
void |
setEventsEnabled(boolean enabled)
Enables/disables GUI-events all NotebookPages. |
void |
stateChangedBase()
Notify the active NotebookPage of a possible Change in the PageModels by calling PageClient.stateChangedBase() the active NotebookPage. |
void |
stateChangedBaseImpl()
Delegates the call of PageClient.stateChangedBaseImpl() to the active page. |
void |
stateChangedExtend()
Delegates the call of PageClient.stateChangedExtend() to the active page. |
void |
widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent event)
Only needed because of the implementet Interface SelectionListener. |
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent event)
Eventhandler called by SWT every time a Tab in the TabFolder is selected by the GUI. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Notebook(PageClient parent)
parent - the PageClient containing this Notebook.| Method Detail |
public org.eclipse.swt.widgets.TabFolder getTabFolder()
public org.eclipse.swt.widgets.Composite createComposite(org.eclipse.swt.widgets.Composite parentComp)
createComposite in interface at.spardat.xma.boot.component.IXMAControlparentComp - the SWT-Composite which shall be the parent of the created SWT-Composite.
public org.eclipse.swt.widgets.Composite getComposite()
getComposite in interface at.spardat.xma.boot.component.IXMAControlpublic PageClient getParent()
public NotebookPage getPage(int index)
index - the index for the NotebookPage.
java.lang.IndexOutOfBoundsException - if the index is out of range.public void addPage(NotebookPage page)
page - the NotebookPage to add.
public void addPage(int index,
NotebookPage page)
index - the index at which the new NotebookPage is to be inserted.page - the NotebookPage to add.public void removePage(NotebookPage page)
page - the NotebookPage to remove.public void setActivePage(int index)
index - the index of the NotebookPage to activate.
java.lang.IndexOutOfBoundsException - if the index is out of range.public void setActivePage(NotebookPage page)
page - the NotebookPage to activate.
java.lang.IllegalArgumentException - if the NotebookPage is not part
of the Notebook.public NotebookPage getActivePage()
public int getActivePageIndex()
public void widgetSelected(org.eclipse.swt.events.SelectionEvent event)
widgetSelected in interface org.eclipse.swt.events.SelectionListenerevent - the SWT-Event that happended.public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent event)
widgetDefaultSelected in interface org.eclipse.swt.events.SelectionListenerpublic void helpRequested(org.eclipse.swt.events.HelpEvent event)
helpRequested in interface org.eclipse.swt.events.HelpListenerevent - the SWT-Event that happened.public void setDialog(at.spardat.xma.boot.component.IDialog dialog)
PageClient.setDialog(IDialog) on all NotebookPages.
setDialog in interface IEmbeddabledialog - public at.spardat.xma.boot.component.IDialog getDialog()
PageClient.getDialog() on the active NotebookPage.
getDialog in interface IEmbeddablepublic void initGUI()
NotebookPage.initGUI() on all NotebookPages.
initGUI in interface at.spardat.xma.boot.component.IXMAControlpublic void enterBase()
PageClient.enterBase() on the active NotebookPage.
enterBase in interface at.spardat.xma.boot.component.IXMAControlpublic void stateChangedBase()
PageClient.stateChangedBase() the active NotebookPage.
stateChangedBase in interface at.spardat.xma.boot.component.IXMAControlpublic void determineStateBase()
PageClient.determineStateBase() to the active page.
determineStateBase in interface IEmbeddablepublic void stateChangedExtend()
PageClient.stateChangedExtend() to the active page.
stateChangedExtend in interface IEmbeddablepublic void stateChangedBaseImpl()
PageClient.stateChangedBaseImpl() to the active page.
stateChangedBaseImpl in interface IEmbeddablepublic void leaveBase()
PageClient.leaveBase() on the active NotebookPage.
leaveBase in interface at.spardat.xma.boot.component.IXMAControlpublic void removeWidgetsBase()
PageClient.removeWidgets() on all NotebookPages.
removeWidgetsBase in interface at.spardat.xma.boot.component.IXMAControlpublic void removeModel()
PageClient.removeWidgetModels() on all NotebookPages.
removeModel in interface at.spardat.xma.boot.component.IXMAControlpublic java.lang.String getContextString()
getContextString in interface IEmbeddablepublic void setEventsEnabled(boolean enabled)
setEventsEnabled in interface IEmbeddableenabled -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||