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, ELLIPSISFields 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.ControlcreateButtonBar(org.eclipse.swt.widgets.Composite parent) protected voidcreateComponents(org.eclipse.swt.widgets.Composite parent) protected org.eclipse.swt.widgets.ControlcreateContents(org.eclipse.swt.widgets.Composite parent) protected org.eclipse.swt.widgets.ControlcreateDialogArea(org.eclipse.swt.widgets.Composite parent) booleanprotected org.eclipse.jface.dialogs.IDialogSettingsgetValue()protected booleanReturnstrueprotected voidMethods 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, shortenTextMethods 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 ornullfor default value.RolesLabel- is the roles label text ornullfor default value.IsCommonButtonText- is the isCommon button text ornullfor default value.readonly- is the read-only flag.
-
-
Method Details
-
getValue
- Returns:
- the collection of
CheckedItemViewModelobjects 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:
isResizablein classorg.eclipse.jface.dialogs.Dialog
-
createContents
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent) - Overrides:
createContentsin classorg.eclipse.jface.dialogs.Dialog
-
getDialogBoundsSettings
protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()- Overrides:
getDialogBoundsSettingsin classorg.eclipse.jface.dialogs.Dialog
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent) - Overrides:
createDialogAreain classorg.eclipse.jface.dialogs.Dialog
-
createButtonBar
protected org.eclipse.swt.widgets.Control createButtonBar(org.eclipse.swt.widgets.Composite parent) - Overrides:
createButtonBarin classorg.eclipse.jface.dialogs.Dialog
-
createComponents
protected void createComponents(org.eclipse.swt.widgets.Composite parent) -
okPressed
protected void okPressed()- Overrides:
okPressedin classorg.eclipse.jface.dialogs.Dialog
-