public class PreferenceUI
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTIONS_BAR_STYLE
The CSS class for the Actions bar
|
static java.lang.String |
CONTENT_AREA_STYLE
The CSS class for the content area of the preferences (Where the current
preference page is displayed)
|
static java.lang.String |
PAGE_LIST_STYLE
The CSS class for the list of preference pages
|
static java.lang.String |
PAGE_STYLE
The CSS class for a preference page
|
static java.lang.String |
SEARCH_STYLE
The CSS class for the page-search field
|
static java.lang.String |
TOP_LEVEL_STYLE
The CSS class for the top-level container of the Preference UI
|
| Constructor and Description |
|---|
PreferenceUI(PreferencePageFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addButton(java.lang.String label,
java.util.Optional<<any>> restoreDefault) |
protected void |
createActionButtons() |
Subscription |
registerOnCancelHandler(java.util.function.Consumer<PreferencePage> handler) |
Subscription |
registerOnOkHandler(java.util.function.Consumer<PreferencePage> handler) |
void |
selectPage(java.lang.String pageId)
Select the preference page with the given ID
|
void |
setFilter(java.lang.String filter)
Set the text filter to the given value.
|
void |
setPreferencePageProviders(java.util.List<PreferencePageProvider> providers) |
public static final java.lang.String TOP_LEVEL_STYLE
public static final java.lang.String CONTENT_AREA_STYLE
public static final java.lang.String PAGE_STYLE
public static final java.lang.String PAGE_LIST_STYLE
public static final java.lang.String SEARCH_STYLE
public static final java.lang.String ACTIONS_BAR_STYLE
public PreferenceUI(PreferencePageFactory factory)
protected void createActionButtons()
protected void addButton(java.lang.String label,
java.util.Optional<<any>> restoreDefault)
public void setPreferencePageProviders(java.util.List<PreferencePageProvider> providers)
public Subscription registerOnCancelHandler(java.util.function.Consumer<PreferencePage> handler)
public Subscription registerOnOkHandler(java.util.function.Consumer<PreferencePage> handler)
public void setFilter(java.lang.String filter)
Set the text filter to the given value. The filter is used to restrict the pages displayed in the pages list.
The filter is case-insensitive, and accepts wildcards (* and ?)
filter - The new filterpublic void selectPage(java.lang.String pageId)
pageId - The ID of the page to selectPreferencePageProvider.id()