|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.rse.ui.SystemProfileForm
A reusable form for prompting for profile information, in new or update mode.
May be used to populate a dialog or a wizard page.
| Field Summary | |
|---|---|
protected Object |
caller
|
protected boolean |
callerInstanceOfSystemPromptDialog
|
protected boolean |
callerInstanceOfWizardPage
|
protected ISystemMessageLine |
msgLine
|
protected ISystemValidator |
nameValidator
|
protected ISystemProfile |
profile
|
protected Label |
profileLabel
|
protected Text |
profileName
|
protected static int |
profileNameLength
|
protected Control |
verbage
|
| Constructor Summary | |
|---|---|
SystemProfileForm(ISystemMessageLine msgLine,
Object caller,
ISystemProfile profile,
boolean showVerbage)
Constructor. |
|
| Method Summary | |
|---|---|
Control |
createContents(Composite parent)
CreateContents is the one method that must be overridden from the parent class. |
Control |
getInitialFocusControl()
Return control to recieve initial focus |
String |
getProfileName()
Return user-entered profile Name. |
void |
handleEvent(Event evt)
Default implementation to satisfy Listener interface. |
boolean |
isPageComplete()
This method can be called by the dialog or wizard page host, to decide whether to enable or disable the next, final or ok buttons. |
void |
setMessageLine(ISystemMessageLine msgLine)
Often the message line is null at the time of instantiation, so we have to call this after it is created. |
void |
setNameValidators(ISystemValidator v)
Call this to specify a validator for the profile name. |
void |
setPageComplete()
Inform caller of page-complete status of this form |
void |
setProfileName(String name)
Call to initialize the profile name in create mode. |
protected SystemMessage |
validateNameInput()
This hook method is called whenever the text changes in the input field. |
boolean |
verify()
Verifies all input. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Label profileLabel
protected Control verbage
protected Text profileName
protected ISystemMessageLine msgLine
protected ISystemValidator nameValidator
protected Object caller
protected boolean callerInstanceOfWizardPage
protected boolean callerInstanceOfSystemPromptDialog
protected static final int profileNameLength
protected ISystemProfile profile
| Constructor Detail |
public SystemProfileForm(ISystemMessageLine msgLine,
Object caller,
ISystemProfile profile,
boolean showVerbage)
msgLine - A GUI widget capable of writing error messages to.caller - The wizardpage or dialog hosting this form.profile - The existing profile being updated, or null for New action.showVerbage - Specify true to show first-time-user verbage.| Method Detail |
public void setMessageLine(ISystemMessageLine msgLine)
public void setNameValidators(ISystemValidator v)
public void setProfileName(String name)
public Control createContents(Composite parent)
parent - The parent compositepublic Control getInitialFocusControl()
public void handleEvent(Event evt)
handleEvent in interface Listenerpublic boolean verify()
public String getProfileName()
protected SystemMessage validateNameInput()
ISystemValidator object.
If the ISystemValidator reports an error the error message is displayed
in the Dialog's message line.
setNameValidators(ISystemValidator)public boolean isPageComplete()
public void setPageComplete()
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||