|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.widgets.Dialog
org.eclipse.ercp.swt.mobile.MultiPageDialog
org.eclipse.jface.preference.PreferenceDialog
public class PreferenceDialog
A preference dialog is a presentation of preference pages. Each page is represented by a node that may be selected from within the dialog. When a node is selected, the corresponding page is shown.
Field Summary | |
---|---|
protected PreferenceManager |
preferenceManager
|
Constructor Summary | |
---|---|
PreferenceDialog(Shell parentShell)
Construct PreferenceDialog |
|
PreferenceDialog(Shell parentShell,
PreferenceManager manager)
Construct PreferenceDialog and set its PreferenceManager |
Method Summary | |
---|---|
protected void |
cancelPressed()
|
protected void |
checkSubclass()
Override checkSubclass so that Mobile Extensions impl does not complain about sublcassing MultiPageDialog |
void |
close()
Override MultiPageDialog close in order to clean up commands |
protected Control |
createContents(PreferenceDialog parent)
Create all the pages and select one if directed |
protected Composite |
createPage(IPreferenceNode node)
|
protected void |
createPageControl(PreferencePage page,
Composite parent)
Create the page control for the supplied page. |
protected Composite |
createSubPages(IPreferenceNode node)
|
IPreferenceStore |
getPreferenceStore()
Returns the preference store. |
protected void |
handleSave()
Save the values specified in the pages. |
protected void |
okPressed()
The preference dialog implementation of this Dialog
framework method sends performOk to all Nodes of the
preference dialog, then calls handleSave on this dialog to
save any state, and then calls close to close this dialog. |
void |
open()
Override MultiPageDialog open in order to get pages created |
void |
setPreferenceStore(IPreferenceStore store)
Sets the preference store for this preference dialog. |
void |
setSelectedNode(java.lang.String pageId)
Sets the name of the selected item preference. |
void |
updateButtons()
Adjusts the enable state of the OK button to reflect the state of the currently active page in this container. |
void |
updateMessage()
Updates the message (or error message) shown in the message line to reflect the state of the currently active page in this container. |
void |
updateTitle()
Updates the title to reflect the state of the currently active page in this container. |
Methods inherited from class org.eclipse.ercp.swt.mobile.MultiPageDialog |
---|
addListener, addSelectionListener, createPage, deletePage, dispose, getPage, getPageCount, getSelectionIndex, getTitle, removeListener, removeSelectionListener, setImage, setSelection, setTitle |
Methods inherited from class org.eclipse.swt.widgets.Dialog |
---|
getParent, getStyle, getText, setText |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PreferenceManager preferenceManager
Constructor Detail |
---|
public PreferenceDialog(Shell parentShell)
parentShell
- public PreferenceDialog(Shell parentShell, PreferenceManager manager)
parentShell
- manager
- Method Detail |
---|
protected void checkSubclass()
checkSubclass
in class Dialog
Widget.checkSubclass()
protected Control createContents(PreferenceDialog parent)
parent
-
protected Composite createSubPages(IPreferenceNode node)
protected Composite createPage(IPreferenceNode node)
protected void createPageControl(PreferencePage page, Composite parent)
page
- - the preference page to be shownparent
- - the composite to parent the pagepublic void open()
open
in class MultiPageDialog
public void close()
close
in class MultiPageDialog
Shell.close()
protected void okPressed()
Dialog
framework method sends performOk
to all Nodes of the
preference dialog, then calls handleSave
on this dialog to
save any state, and then calls close
to close this dialog.
protected void cancelPressed()
public void setPreferenceStore(IPreferenceStore store)
store
- the preference storegetPreferenceStore()
public IPreferenceStore getPreferenceStore()
IPreferencePageContainer
getPreferenceStore
in interface IPreferencePageContainer
null
if nonepublic void updateButtons()
IPreferencePageContainer
This method is called by the container itself when its preference page changes and may be called by the page at other times to force a button state update.
updateButtons
in interface IPreferencePageContainer
public void updateMessage()
IPreferencePageContainer
This method is called by the container itself when its preference page changes and may be called by the page at other times to force a message update.
updateMessage
in interface IPreferencePageContainer
public void updateTitle()
IPreferencePageContainer
This method is called by the container itself when its page changes and may be called by the page at other times to force a title update.
updateTitle
in interface IPreferencePageContainer
protected void handleSave()
The default implementation of this framework method saves all pages of
type PreferencePage
(if their store needs saving and is a
PreferenceStore
).
Subclasses may override.
public void setSelectedNode(java.lang.String pageId)
setSelectedNodePreference
.
pageId
- The identifier for the page
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |