|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SystemHostCombo com.ibm.etools.iseries.rse.ui.widgets.IBMiConnectionCombo
public class IBMiConnectionCombo
This re-usable widget is for selecting an iSeries connection from the master list of connections. The list is subsettable by one or more system types. There is also the option of including a "New" button to the right of the connection dropdown, for the purpose of creating a new connection.
Without the New button, the composite is layed as follows:
Connection: ______________________v
With the New button, the composite is layed as follows:
Connection: ______________v New...
Field Summary | |
---|---|
static String |
copyright
|
Constructor Summary | |
---|---|
IBMiConnectionCombo(Composite parent)
Constructor when you don't care about the style or default connection, and do want to show the New button. |
|
IBMiConnectionCombo(Composite parent,
IBMiConnection defaultConnection,
boolean showNewButton)
Constructor when you don't care about the style. |
|
IBMiConnectionCombo(Composite parent,
int style,
IBMiConnection defaultConnection,
boolean showNewButton,
boolean showLabel)
Constructor when you want to set the style |
|
IBMiConnectionCombo(Composite parent,
int style,
IHost defaultConnection,
boolean showNewButton)
Constructor when you want to set the style |
|
IBMiConnectionCombo(Composite parent,
int style,
IRSESystemType systemType,
IBMiConnection defaultConnection,
boolean showNewButton)
Constructor when you want to set the style |
|
IBMiConnectionCombo(Composite parent,
IRSESystemType systemType,
IHost defaultConnection,
boolean showNewButton)
Constructor when you don't care about the style. |
Method Summary | |
---|---|
IBMiConnection |
getISeriesConnection()
Return the selected connection as an ISeriesConnection object. |
protected SystemNewConnectionAction |
getNewConnectionAction(Shell shell,
ISelectionProvider selectionProvider)
Overridable method. |
void |
lineUpWith(IBMiConnectionCombo otherWidget)
If a composite widget like this is used more than once on the same page, it is nice to line up the columns. |
void |
lineUpWith(QSYSBasePrompt otherWidget)
If a composite widget like this is used more than once on the same page, it is nice to line up the columns. |
void |
select(IBMiConnection connection)
Select an iSeries connection from the dropdown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String copyright
Constructor Detail |
---|
public IBMiConnectionCombo(Composite parent, int style, IHost defaultConnection, boolean showNewButton)
parent
- Parent compositestyle
- SWT style flags for overall composite widget. Typically just pass SWT.NULLdefaultConnection
- the system host to preselect. Pass null to preselect first connection.showNewButton
- true if a New... button is to be included in this compositepublic IBMiConnectionCombo(Composite parent, IRSESystemType systemType, IHost defaultConnection, boolean showNewButton)
parent
- Parent compositedefaultConnection
- the system host to preselect. Pass null to preselect first connection.showNewButton
- true if a New... button is to be included in this compositepublic IBMiConnectionCombo(Composite parent, int style, IRSESystemType systemType, IBMiConnection defaultConnection, boolean showNewButton)
parent
- Parent compositestyle
- SWT style flags for overall composite widget. Typically just pass SWT.NULLsystemType
- the system type to restrict the connection list to. Can be null or * for all.defaultConnection
- the AS/400 connection to preselect. Pass null to preselect first connection.showNewButton
- true if a New... button is to be included in this compositepublic IBMiConnectionCombo(Composite parent, int style, IBMiConnection defaultConnection, boolean showNewButton, boolean showLabel)
parent
- Parent compositestyle
- SWT style flags for overall composite widget. Typically just pass SWT.NULLdefaultConnection
- the AS/400 connection to preselect. Pass null to preselect first connection.showNewButton
- true if a New... button is to be included in this compositeshowLabel
- true if a 'Connection' label is to be included in this compositepublic IBMiConnectionCombo(Composite parent, IBMiConnection defaultConnection, boolean showNewButton)
parent
- Parent compositedefaultConnection
- the AS/400 connection to preselect. Pass null to preselect first connection.showNewButton
- true if a New... button is to be included in this compositepublic IBMiConnectionCombo(Composite parent)
parent
- Parent compositeMethod Detail |
---|
public IBMiConnection getISeriesConnection()
This returns null if there is no connection currently selected.
public void select(IBMiConnection connection)
protected SystemNewConnectionAction getNewConnectionAction(Shell shell, ISelectionProvider selectionProvider)
public void lineUpWith(QSYSBasePrompt otherWidget)
public void lineUpWith(IBMiConnectionCombo otherWidget)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |