RSE
Release 1.0

org.eclipse.rse.ui.propertypages
Class SystemConnectionSubSystemsPropertyPage

java.lang.Object
  extended byorg.eclipse.jface.dialogs.DialogPage
      extended byorg.eclipse.jface.preference.PreferencePage
          extended byorg.eclipse.ui.dialogs.PropertyPage
              extended byorg.eclipse.rse.ui.propertypages.SystemBasePropertyPage
                  extended byorg.eclipse.rse.ui.propertypages.SystemConnectionSubSystemsPropertyPage
All Implemented Interfaces:
EventListener, IDialogPage, IMessageProvider, IPreferencePage, ISystemConnectionFormCaller, ISystemMessageLine, ISystemMessageLineTarget, IWorkbenchPropertyPage, SelectionListener, SWTEventListener

public class SystemConnectionSubSystemsPropertyPage
extends SystemBasePropertyPage
implements ISystemMessageLine, ISystemConnectionFormCaller, SelectionListener

The property page for subsystem properties when accessed from the connection property page. The plugin.xml file registers this for objects of class org.eclipse.rse.model.IHost


Field Summary
protected  PropertyPage[] pages
           
protected  String parentHelpId
           
protected  ResourceBundle rb
           
protected  CTabFolder tabFolder
           
protected  CTabItem[] tabs
           
 
Fields inherited from class org.eclipse.rse.ui.propertypages.SystemBasePropertyPage
buttonsComposite, contentArea, msgLine, msgLineSet
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
SystemConnectionSubSystemsPropertyPage()
          Constructor.
 
Method Summary
protected  Control createContentArea(Composite parent)
          Create the page's GUI contents.
protected  CTabFolder createTabFolder(Composite parent)
          Create the notebook.
protected  ISystemViewElementAdapter getAdapter(Object o)
          Returns the implementation of ISystemViewElement for the given object.
protected  IHost getConnection()
          Get the input connection object
protected  ISystemRemoteElementAdapter getRemoteAdapter(Object o)
          Returns the implementation of ISystemRemoteElement for the given object.
protected  ISubSystem[] getSubSystems()
          Get the input subsystems
 boolean isValid()
          Return true if this page is valid.
 boolean okToLeave()
          The PreferencePage implementation of this IPreferencePage method returns true if the page is valid.
 boolean performOk()
          Called by parent when user presses OK.
 void systemTypeSelected(String systemType, boolean duringInitialization)
          Event: the user has selected a system type.
protected  boolean verifyPageContents()
          Validate all the widgets on the page Subclasses should override to do full error checking on all the widgets on the page.
protected  boolean wantMnemonics()
          Return false if you don't want to have mnemonics automatically applied to your page by this parent class.
 void widgetDefaultSelected(SelectionEvent event)
          Not used
 void widgetSelected(SelectionEvent event)
          A tab item selected
 
Methods inherited from class org.eclipse.rse.ui.propertypages.SystemBasePropertyPage
addFillerLine, addSeparatorLine, clearErrorMessage, clearMessage, configureMessageLine, contributeButtons, createContents, createLabeledCombo, createLabeledLabel, createLabeledText, createLabeledVerbage, getMessageLine, getSystemErrorMessage, grabExcessSpace, setBusyCursor, setErrorMessage, setErrorMessage, setErrorMessage, setHelp, setMessage, setMessage, setMessageLine, wantAutomaticValidManagement, wantDefaultAndApplyButton
 
Methods inherited from class org.eclipse.ui.dialogs.PropertyPage
getElement, setElement
 
Methods inherited from class org.eclipse.jface.preference.PreferencePage
applyData, applyDialogFont, computeSize, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, noDefaultAndApplyButton, performApply, performCancel, performDefaults, performHelp, setContainer, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.rse.ui.messages.ISystemMessageLine
clearErrorMessage, clearMessage, getErrorMessage, getMessage, getSystemErrorMessage, setErrorMessage, setErrorMessage, setErrorMessage, setMessage, setMessage
 
Methods inherited from interface org.eclipse.rse.ui.ISystemConnectionFormCaller
getShell
 
Methods inherited from interface org.eclipse.jface.preference.IPreferencePage
computeSize, performCancel, setContainer, setSize
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
 

Field Detail

tabFolder

protected CTabFolder tabFolder

rb

protected ResourceBundle rb

parentHelpId

protected String parentHelpId

pages

protected PropertyPage[] pages

tabs

protected CTabItem[] tabs
Constructor Detail

SystemConnectionSubSystemsPropertyPage

public SystemConnectionSubSystemsPropertyPage()
Constructor.

Method Detail

wantMnemonics

protected boolean wantMnemonics()
Return false if you don't want to have mnemonics automatically applied to your page by this parent class. We return false as we assume each subpage does their own.

Overrides:
wantMnemonics in class SystemBasePropertyPage

createContentArea

protected Control createContentArea(Composite parent)
Create the page's GUI contents.

Specified by:
createContentArea in class SystemBasePropertyPage

createTabFolder

protected CTabFolder createTabFolder(Composite parent)
Create the notebook.


getConnection

protected IHost getConnection()
Get the input connection object


getSubSystems

protected ISubSystem[] getSubSystems()
Get the input subsystems


okToLeave

public boolean okToLeave()
The PreferencePage implementation of this IPreferencePage method returns true if the page is valid.

We cycle through all pages calling okToLeave().

Specified by:
okToLeave in interface IPreferencePage
Overrides:
okToLeave in class SystemBasePropertyPage

isValid

public boolean isValid()
Return true if this page is valid. Override of parent. Cycles through all tab pages calling isValid.

Specified by:
isValid in interface IPreferencePage

performOk

public boolean performOk()
Called by parent when user presses OK. We cycle through all subpages calling performOk

Specified by:
performOk in interface IPreferencePage
Overrides:
performOk in class SystemBasePropertyPage
Returns:
true if all is well, false if there is an error.

verifyPageContents

protected boolean verifyPageContents()
Validate all the widgets on the page

Subclasses should override to do full error checking on all the widgets on the page.

Specified by:
verifyPageContents in class SystemBasePropertyPage
Returns:
true if there are no errors, false if any errors were found.

getAdapter

protected ISystemViewElementAdapter getAdapter(Object o)
Returns the implementation of ISystemViewElement for the given object. Returns null if the adapter is not defined or the object is not adaptable.


getRemoteAdapter

protected ISystemRemoteElementAdapter getRemoteAdapter(Object o)
Returns the implementation of ISystemRemoteElement for the given object. Returns null if this object does not adaptable to this.


widgetSelected

public void widgetSelected(SelectionEvent event)
A tab item selected

Specified by:
widgetSelected in interface SelectionListener

widgetDefaultSelected

public void widgetDefaultSelected(SelectionEvent event)
Not used

Specified by:
widgetDefaultSelected in interface SelectionListener

systemTypeSelected

public void systemTypeSelected(String systemType,
                               boolean duringInitialization)
Event: the user has selected a system type.

Specified by:
systemTypeSelected in interface ISystemConnectionFormCaller
Parameters:
systemType - the type of system selected
duringInitialization - true if this is being set at page initialization time versus selected by the user

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.