public abstract class AbstractSelectorPage extends AbstractPage
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.swt.widgets.List |
list
the list
|
protected int |
selectedIndex
the selected index
|
private java.lang.String |
selector
the selector name
|
private boolean |
selectorEnabled
the state indicating if selector is enabled
|
chart, resources
Constructor and Description |
---|
AbstractSelectorPage(InteractiveChart chart,
PropertiesResources resources,
java.lang.String title,
java.lang.String selector)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private void |
addLeftPanel(org.eclipse.swt.widgets.Composite parent,
java.lang.String[] items)
Adds the left panel.
|
private void |
addRightPanel(org.eclipse.swt.widgets.Composite parent)
Adds the right panel.
|
protected abstract void |
addRightPanelContents(org.eclipse.swt.widgets.Composite parent)
Adds the contents on right panel.
|
protected org.eclipse.swt.widgets.Control |
createContents(org.eclipse.swt.widgets.Composite parent) |
protected abstract java.lang.String[] |
getListItems()
Gets the list items.
|
protected abstract void |
selectInitialValues()
Selects value for each control.
|
protected abstract void |
updateControlSelections()
Updates the selection on controls.
|
apply, createCheckBoxControl, createColorButtonControl, createComboControl, createGroupControl, createLabelControl, createSpinnerControl, createTextControl, performOk
applyData, applyDialogFont, computeSize, contributeButtons, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, noDefaultButton, okToLeave, performApply, performCancel, performDefaults, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage, setVisible
protected org.eclipse.swt.widgets.List list
private java.lang.String selector
private boolean selectorEnabled
protected int selectedIndex
public AbstractSelectorPage(InteractiveChart chart, PropertiesResources resources, java.lang.String title, java.lang.String selector)
chart
- the chartresources
- the properties resourcestitle
- the titleselector
- the selector nameprotected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
createContents
in class org.eclipse.jface.preference.PreferencePage
protected abstract java.lang.String[] getListItems()
protected abstract void selectInitialValues()
private void addLeftPanel(org.eclipse.swt.widgets.Composite parent, java.lang.String[] items)
parent
- the parent to add the left panelitems
- the items to be added to listprivate void addRightPanel(org.eclipse.swt.widgets.Composite parent)
parent
- the parent to add the right panelprotected abstract void addRightPanelContents(org.eclipse.swt.widgets.Composite parent)
parent
- the parent to add the contentsprotected abstract void updateControlSelections()