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.DialogDialog for 'user visibility' selection.
-
-
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
-
-
Constructor Summary
Constructors Constructor Description 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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)booleangetCommonValue()protected org.eclipse.jface.dialogs.IDialogSettingsgetDialogBoundsSettings()Collection<CheckedItemViewModel>getValue()protected booleanisResizable()Returnstrueprotected voidokPressed()-
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 Detail
-
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 Detail
-
getValue
public Collection<CheckedItemViewModel> 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
-
-