Package com._1c.g5.v8.dt.md.ui.dialogs
Class UserVisibilityDialog2
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
com._1c.g5.v8.dt.md.ui.dialogs.UserVisibilityDialog2
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
public class UserVisibilityDialog2
extends org.eclipse.jface.dialogs.Dialog
Dialog for 'user visibility' selection.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
-
Field Summary
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
Fields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred
-
Constructor Summary
ConstructorsConstructorDescriptionUserVisibilityDialog2
(org.eclipse.swt.widgets.Shell parentShell, Object context, IContentProvider contentProvider, ILabelProvider labelProvider, boolean isCommon, String dialogTitle, String rolesLabel, String isCommonButtonText, boolean readonly) Creates a newUserVisibilityDialog2
. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.swt.widgets.Control
createButtonBar
(org.eclipse.swt.widgets.Composite parent) protected void
createComponents
(org.eclipse.swt.widgets.Composite parent) protected org.eclipse.swt.widgets.Control
createContents
(org.eclipse.swt.widgets.Composite parent) protected org.eclipse.swt.widgets.Control
createDialogArea
(org.eclipse.swt.widgets.Composite parent) boolean
protected org.eclipse.jface.dialogs.IDialogSettings
getValue()
protected boolean
Returnstrue
protected void
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, configureShell, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
Constructor Details
-
UserVisibilityDialog2
public UserVisibilityDialog2(org.eclipse.swt.widgets.Shell parentShell, Object context, IContentProvider contentProvider, ILabelProvider labelProvider, boolean isCommon, String dialogTitle, String rolesLabel, String isCommonButtonText, boolean readonly) Creates a newUserVisibilityDialog2
.- Parameters:
parentShell
- it the shell.context
- is the input for content providercontentProvider
- is the content providerlabelProvider
- is the label providerisCommon
- is the 'common visibility' initial valueDialogTitle
- is the dialog title ornull
for default value.RolesLabel
- is the roles label text ornull
for default value.IsCommonButtonText
- is the isCommon button text ornull
for default value.readonly
- is the read-only flag.
-
-
Method Details
-
getValue
- Returns:
- the collection of
CheckedItemViewModel
objects that has 'checked' or 'unchecked' state. It is filled after dialog is closed.
-
getCommonValue
public boolean getCommonValue()- Returns:
- the 'common visibility' value. It is filled after dialog is closed.
-
isResizable
protected boolean isResizable()Returnstrue
- Overrides:
isResizable
in classorg.eclipse.jface.dialogs.Dialog
-
createContents
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent) - Overrides:
createContents
in classorg.eclipse.jface.dialogs.Dialog
-
getDialogBoundsSettings
protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()- Overrides:
getDialogBoundsSettings
in classorg.eclipse.jface.dialogs.Dialog
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent) - Overrides:
createDialogArea
in classorg.eclipse.jface.dialogs.Dialog
-
createButtonBar
protected org.eclipse.swt.widgets.Control createButtonBar(org.eclipse.swt.widgets.Composite parent) - Overrides:
createButtonBar
in classorg.eclipse.jface.dialogs.Dialog
-
createComponents
protected void createComponents(org.eclipse.swt.widgets.Composite parent) -
okPressed
protected void okPressed()- Overrides:
okPressed
in classorg.eclipse.jface.dialogs.Dialog
-