Class DrawerEntryPage
java.lang.Object
org.eclipse.gef.ui.palette.customize.DefaultEntryPage
org.eclipse.gef.ui.palette.customize.DrawerEntryPage
- All Implemented Interfaces:
- EntryPage
The default entry page for drawers.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcreateControl(Composite parent, PaletteEntry entry) Creates the Control that displays the properties of the given entry.protected ButtonCreates the button that provides the option to pin a drawer open at start-up.protected ButtonCreates the button that provides the option to have a drawer open at start-up.protected PaletteDrawerConvenience method that provides access to the PaletteDrawer.protected ButtonReturns the checkbox button which controls whether the drawer is initially open.protected ButtonReturns the checkbox button which controls whether the drawer is initially pinned.protected voidhandleOpenSelected(boolean selection) This method is invoked when the selection state of the option to open drawer at start-up is toggled.protected voidhandlePinSelected(boolean selection) This method is invoked when the selection state of the option to pin a drawer open at start-up is toggled.Methods inherited from class org.eclipse.gef.ui.palette.customize.DefaultEntryPageapply, createDescText, createHiddenCheckBox, createLabel, createNameText, createText, getControl, getEntry, getMessage, getPageContainer, getPermission, handleDescriptionChanged, handleHiddenSelected, handleNameChanged, setPageContainer
- 
Constructor Details- 
DrawerEntryPagepublic DrawerEntryPage()
 
- 
- 
Method Details- 
createControlDescription copied from interface:EntryPageCreates the Control that displays the properties of the given entry. This method will only be called once. The parent Composite's Font is set to the Workbench Dialog Font. The page's Controls should use the Workbench Dialog Font where appropriate.- Specified by:
- createControlin interface- EntryPage
- Overrides:
- createControlin class- DefaultEntryPage
- Parameters:
- parent- The Composite in which the Control has to be created
- entry- The entry whose properties have to be displayed
- See Also:
 
- 
createOpenDrawerInitiallyOptionCreates the button that provides the option to pin a drawer open at start-up.- Parameters:
- panel- The parent Composite
- Returns:
- The button for the new option
 
- 
createPinDrawerInitiallyOptionCreates the button that provides the option to have a drawer open at start-up.- Parameters:
- panel- The parent Composite
- Returns:
- The button for the new option
 
- 
getDrawerConvenience method that provides access to the PaletteDrawer.- Returns:
- the entry as a PaletteDrawer
 
- 
getOpenDrawerInitiallyButtonReturns the checkbox button which controls whether the drawer is initially open.- Returns:
- the checkbox button which controls the initially open setting.
 
- 
getPinDrawerInitiallyButtonReturns the checkbox button which controls whether the drawer is initially pinned.- Returns:
- the checkbox button which controls the initially pinned setting.
 
- 
handleOpenSelectedprotected void handleOpenSelected(boolean selection) This method is invoked when the selection state of the option to open drawer at start-up is toggled.It sets the initial state of the drawer accordingly. - Parameters:
- selection-- trueif that option is now selected
 
- 
handlePinSelectedprotected void handlePinSelected(boolean selection) This method is invoked when the selection state of the option to pin a drawer open at start-up is toggled.It sets the initial state of the drawer accordingly. - Parameters:
- selection-- trueif that option is now selected
 
 
-