public class DrawerEntryPage extends DefaultEntryPage
Constructor and Description |
---|
DrawerEntryPage() |
Modifier and Type | Method and Description |
---|---|
void |
createControl(Composite parent,
PaletteEntry entry)
Creates the Control that displays the properties of the given entry.
|
protected Button |
createOpenDrawerInitiallyOption(Composite panel)
Creates the button that provides the option to pin a drawer open at
start-up.
|
protected Button |
createPinDrawerInitiallyOption(Composite panel)
Creates the button that provides the option to have a drawer open at
start-up.
|
protected PaletteDrawer |
getDrawer()
Convenience method that provides access to the PaletteDrawer.
|
protected Button |
getOpenDrawerInitiallyButton()
Returns the checkbox button which controls whether the drawer is
initially open.
|
protected Button |
getPinDrawerInitiallyButton()
Returns the checkbox button which controls whether the drawer is
initially pinned.
|
protected void |
handleOpenSelected(boolean selection)
This method is invoked when the selection state of the option to open
drawer at start-up is toggled.
|
protected 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.
|
apply, createDescText, createHiddenCheckBox, createLabel, createNameText, createText, getControl, getEntry, getMessage, getPageContainer, getPermission, handleDescriptionChanged, handleHiddenSelected, handleNameChanged, setPageContainer
public void createControl(Composite parent, PaletteEntry entry)
EntryPage
createControl
in interface EntryPage
createControl
in class DefaultEntryPage
parent
- The Composite in which the Control has to be createdentry
- The entry whose properties have to be displayedEntryPage.createControl(Composite,
PaletteEntry)
protected Button createOpenDrawerInitiallyOption(Composite panel)
panel
- The parent Compositeprotected Button createPinDrawerInitiallyOption(Composite panel)
panel
- The parent Compositeprotected PaletteDrawer getDrawer()
protected Button getOpenDrawerInitiallyButton()
protected Button getPinDrawerInitiallyButton()
protected void handleOpenSelected(boolean selection)
It sets the initial state of the drawer accordingly.
selection
- true
if that option is now selectedprotected void handlePinSelected(boolean selection)
It sets the initial state of the drawer accordingly.
selection
- true
if that option is now selectedCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.