Package org.eclipse.gef.ui.palette
Interface FlyoutPaletteComposite.FlyoutPreferences
- Enclosing class:
- FlyoutPaletteComposite
public static interface FlyoutPaletteComposite.FlyoutPreferences
FlyoutPreferences is used to save/load the preferences for the flyout
 palette.
- Since:
- 3.0
- 
Method SummaryModifier and TypeMethodDescriptionintShould returnPositionConstants.EASTorPositionConstants.WEST.intWhen there is no saved state, this method can return any non-positive int (which will result in the palette using the default state -- collapsed), orFlyoutPaletteComposite.STATE_COLLAPSED, orFlyoutPaletteComposite.STATE_PINNED_OPENintWhen there is no saved width, this method can return any int (preferrably a non-positive int).voidsetDockLocation(int location) This method is invoked when the flyout palette's dock location is changed.voidsetPaletteState(int state) This method is invoked when the flyout palette's state is changed (the new state becomes the default).voidsetPaletteWidth(int width) This method is invoked when the flyout palette is resized.
- 
Method Details- 
getDockLocationint getDockLocation()Should returnPositionConstants.EASTorPositionConstants.WEST. Any other int will be ignored and the default dock location (EAST) will be used instead.- Returns:
- the saved dock location of the Palette
 
- 
getPaletteStateint getPaletteState()When there is no saved state, this method can return any non-positive int (which will result in the palette using the default state -- collapsed), orFlyoutPaletteComposite.STATE_COLLAPSED, orFlyoutPaletteComposite.STATE_PINNED_OPEN- Returns:
- the saved state of the palette
 
- 
getPaletteWidthint getPaletteWidth()When there is no saved width, this method can return any int (preferrably a non-positive int). Returning a non-positive int will cause the palette to be sized to the default size, whereas returning a postive int will find the closest match in the valid range (>= minimum and <= maximum)- Returns:
- the saved width of the flyout palette
 
- 
setDockLocationvoid setDockLocation(int location) This method is invoked when the flyout palette's dock location is changed. The provided dock location should be persisted and returned ingetDockLocation().- Parameters:
- location-- PositionConstants.EASTor- PositionConstants.WEST
 
- 
setPaletteStatevoid setPaletteState(int state) This method is invoked when the flyout palette's state is changed (the new state becomes the default). The provided state should be persisted and returned ingetPaletteState().- Parameters:
- state-- FlyoutPaletteComposite.STATE_COLLAPSEDor- FlyoutPaletteComposite.STATE_PINNED_OPEN
 
- 
setPaletteWidthvoid setPaletteWidth(int width) This method is invoked when the flyout palette is resized. The provided width should be persisted and returned ingetPaletteWidth().- Parameters:
- width- the new size of the flyout palette
 
 
-