|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectat.spardat.xma.page.Page
at.spardat.xma.page.PageClient
at.spardat.xma.page.DialogPage
at.spardat.xma.page.Assistent
This class is the base class of all assistents (wizards) in XMA. This class is not fully implemented yet.
| Field Summary | |
protected org.eclipse.swt.widgets.Button |
butCancel
|
protected org.eclipse.swt.widgets.Button |
butNext
|
protected org.eclipse.swt.widgets.Button |
butOK
|
protected org.eclipse.swt.widgets.Button |
butPrevious
Buttons of the Assistent. |
| Fields inherited from class at.spardat.xma.page.DialogPage |
statusBar, statusBarComposite |
| Fields inherited from class at.spardat.xma.page.PageClient |
composite |
| Constructor Summary | |
Assistent(ComponentClient component,
boolean stateless,
int style)
Initializes an Assistent inside a given Component. |
|
Assistent(PageClient parent,
boolean stateless,
int style)
Initializes an Assistent inside the same Component as the parent PageClient. |
|
| Method Summary | |
void |
addPage(AssistentPage page)
Adds an AssistentPage to the existing AssistentPages of this Assistent. |
void |
addPage(int index,
AssistentPage page)
Adds an AssistentPage to the existing AssistentPages at the given index. |
protected void |
buttonCancelEvent()
Eventhandler called every time the Cancel-Button is pressed. |
void |
buttonNextEvent()
Eventhandler called every time the Next-Button is pressed. |
void |
buttonPrevEvent()
Eventhandler called every time the Prev-Button is pressed. |
protected void |
buttonSaveEvent()
Eventhandler called every time the Save-Button is pressed. |
void |
enterBase()
Notify the Assistent and the active AssistentPage, that the Page is becoming visible by calling PageClient.enter() on the Assistent and the active AssistentPage. |
AssistentPage |
getActivePage()
Gets the active AssistentPage. |
org.eclipse.swt.widgets.Button |
getCancelButton()
|
org.eclipse.swt.widgets.Button |
getNextButton()
|
org.eclipse.swt.widgets.Button |
getOKButton()
|
AssistentPage |
getPage(int index)
Gets the AssistentPage with the given index |
org.eclipse.swt.widgets.Button |
getPrevButton()
|
void |
initGUI()
Creates the Widgets of the Assistent and the active AssistentPage by calling PageClient.createWidgets() on the Assistent and the active AssistentPage. |
void |
leaveBase()
Notify the Assistent and the active AssistentPage, that the Page no longer is visible by calling PageClient.leave()on the active AssistentPage and the Assistent. |
void |
removeModel()
Removes the WidgetModels of all AssistentPage by calling PageClient.removeWidgetModels() on all AssistentPages. |
void |
setActivePage(int index)
Activates the AssistentPage with the given index. |
void |
stateChangedBase()
Notify the Assistent and the active AssistentPage of a possible Change in the PageModels by calling PageClient.stateChanged() on the Assistent and the active AssistentPage. |
| Methods inherited from class at.spardat.xma.page.DialogPage |
clearError, clearInfo, clearValidationErrorImpl, clearWarning, close, closeCancel, closeOK, createComposite, getDialog, getErrorCount, getExitstatus, getFocusControl, getShell, hasValidationError, invoke, isVisible, overrideErrorsFromModel, removeWidgetsBase, setError, setFocus, setFocusControl, setInfo, setRerunStateChanched, setValidationErrorImpl, setWarning, updateErrorStatus |
| Methods inherited from class at.spardat.xma.page.Page |
changed, commit, describe, display, equalsCS, externalize, getId, getNumWModels, getTypeId, getWModel, getWModels, internalize, isAtServer, isStateless, randomlyChange, rollback, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface at.spardat.xma.boot.component.IXMAControl |
getComposite |
| Methods inherited from interface at.spardat.xma.page.IEmbeddable |
determineStateBase, getContextString, setDialog, setEventsEnabled, stateChangedBaseImpl, stateChangedExtend |
| Field Detail |
protected org.eclipse.swt.widgets.Button butPrevious
protected org.eclipse.swt.widgets.Button butNext
protected org.eclipse.swt.widgets.Button butOK
protected org.eclipse.swt.widgets.Button butCancel
| Constructor Detail |
public Assistent(ComponentClient component,
boolean stateless,
int style)
component - the Component containing the Assistent.style - The SWT-Style for the Shell of the Assistent.
java.lang.IllegalArgumentException - if comonent is null.
public Assistent(PageClient parent,
boolean stateless,
int style)
parent - the PageClient calling this Assistent.style - The SWT-Style for the Shell of the Assistent.| Method Detail |
public AssistentPage getPage(int index)
index - the index of the desired AssistentPage.
java.lang.IndexOutOfBoundsException - if the index is out of range.public void addPage(AssistentPage page)
page - the AssistentPage to add.
public void addPage(int index,
AssistentPage page)
index - the index at which the new AssistentPage is to be inserted.page - the AssistentPage to add.public void setActivePage(int index)
index - the index of the AssistentPage to activate.
java.lang.IndexOutOfBoundsException - if the index is out of range.public AssistentPage getActivePage()
public org.eclipse.swt.widgets.Button getPrevButton()
public org.eclipse.swt.widgets.Button getNextButton()
public org.eclipse.swt.widgets.Button getOKButton()
public org.eclipse.swt.widgets.Button getCancelButton()
public void initGUI()
PageClient.createWidgets() on the Assistent and the active AssistentPage.
initGUI in interface at.spardat.xma.boot.component.IXMAControlinitGUI in class DialogPagepublic void enterBase()
PageClient.enter() on the Assistent and the active AssistentPage.
enterBase in interface at.spardat.xma.boot.component.IXMAControlenterBase in class PageClientpublic void stateChangedBase()
PageClient.stateChanged() on the Assistent and the active AssistentPage.
stateChangedBase in interface at.spardat.xma.boot.component.IXMAControlstateChangedBase in class DialogPagepublic void leaveBase()
PageClient.leave()on the active AssistentPage and the Assistent.
leaveBase in interface at.spardat.xma.boot.component.IXMAControlleaveBase in class PageClientpublic void removeModel()
PageClient.removeWidgetModels() on all AssistentPages.
removeModel in interface at.spardat.xma.boot.component.IXMAControlremoveModel in class PageClientprotected void buttonCancelEvent()
protected void buttonSaveEvent()
public void buttonNextEvent()
AssistentPage.getNextPage().
If this Method is not implentet the next AssistentPage in the
internal List of the Assistent is coosen.
public void buttonPrevEvent()
AssistentPage.getPrevPage().
If this Method is not implented the preceding AssistentPage in the
internal List of the Assistent is coosen.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||