public class InputListDialog extends Object
Constructor and Description |
---|
InputListDialog(String msg,
List<String> list)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addPressed()
Called when add button is pressed.
|
protected org.eclipse.swt.widgets.Control |
createButtonBar(org.eclipse.swt.widgets.Composite parent)
Creates and returns the contents of this dialog's button bar.
|
protected void |
createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
Adds buttons to this dialog's button bar.
|
org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent) |
protected void |
downPressed() |
protected int |
getInputTextStyle()
Returns the style bits that should be used for the input text field.
|
String[] |
getList()
Return the selected list.
|
protected void |
removedPressed() |
protected void |
setButtonLayoutData(org.eclipse.swt.widgets.Control button)
Set the layout data of the button to a GridData with appropriate heights
and widths.
|
void |
setTooltips(String tooltips) |
protected void |
upPressed() |
public void setTooltips(String tooltips)
tooltips
- the tooltips to setpublic String[] getList()
public org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
parent
- protected int getInputTextStyle()
protected org.eclipse.swt.widgets.Control createButtonBar(org.eclipse.swt.widgets.Composite parent)
The Dialog
implementation of this framework method lays out a button bar and calls the createButtonsForButtonBar
framework method to populate it. Subclasses may override.
The returned control's layout data must be an instance of GridData
.
parent
- the parent composite to contain the button barprotected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
The Dialog
implementation of this framework method adds standard ok and cancel buttons using the createButton
framework method. These standard buttons will be accessible from getCancelButton
, and
getOKButton
. Subclasses may override.
parent
- the button bar compositeprotected void addPressed()
protected void upPressed()
protected void downPressed()
protected void removedPressed()
protected void setButtonLayoutData(org.eclipse.swt.widgets.Control button)
button
- Copyright © 2016 Eclipse foundation. All rights reserved.