Class EditPictureEntryContentDialog
- java.lang.Object
-
- org.eclipse.jface.window.Window
-
- org.eclipse.jface.dialogs.Dialog
-
- org.eclipse.jface.dialogs.TrayDialog
-
- org.eclipse.jface.dialogs.TitleAreaDialog
-
- com._1c.g5.v8.dt.md.ui.aef.components.commonpicture.grid.EditPictureEntryContentDialog
-
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
public class EditPictureEntryContentDialog extends org.eclipse.jface.dialogs.TitleAreaDialog
Dialog for load and save images to zip based entries ofCommonPicture
-
-
Field Summary
-
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
-
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 EditPictureEntryContentDialog(org.eclipse.swt.widgets.Shell parentShell, String imageExtension, CommonPictureManifestEntryData entryData)
Create instance ofEditPictureEntryContentDialog
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureShell(org.eclipse.swt.widgets.Shell shell)
protected org.eclipse.swt.widgets.Control
createDialogArea(org.eclipse.swt.widgets.Composite parent)
CommonPictureManifestEntryData
getData()
Data of selected imageString
getExtension()
Extension of selected imageprotected void
setShellStyle(int newShellStyle)
-
Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
createContents, getErrorMessage, getInitialSize, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
-
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
-
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, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
-
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setWindowManager
-
-
-
-
Constructor Detail
-
EditPictureEntryContentDialog
public EditPictureEntryContentDialog(org.eclipse.swt.widgets.Shell parentShell, String imageExtension, CommonPictureManifestEntryData entryData)
Create instance ofEditPictureEntryContentDialog
- Parameters:
parentShell
- the parent SWT shell, cannot benull
imageExtension
- the image extension of editable zip based entry, can benull
entryData
- the image data of editable zip based entry, can benull
-
-
Method Detail
-
getExtension
public String getExtension()
Extension of selected image- Returns:
- extension of selected image, can be
null
if no image has be selected
-
getData
public CommonPictureManifestEntryData getData()
Data of selected image- Returns:
- array of byte data of selected image, can be
null
if no image has be selected
-
setShellStyle
protected void setShellStyle(int newShellStyle)
- Overrides:
setShellStyle
in classorg.eclipse.jface.window.Window
-
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell shell)
- Overrides:
configureShell
in classorg.eclipse.jface.window.Window
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createDialogArea
in classorg.eclipse.jface.dialogs.TitleAreaDialog
-
-