summaryrefslogtreecommitdiff
path: root/propertysheet/src/org/eclipse/wb/core/controls/flyout/IFlyoutPreferences.java
blob: d24edb5b03bda202c6348286fd6628e5830aa76c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*******************************************************************************
 * Copyright (c) 2011 Google, Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Google, Inc. - initial API and implementation
 *******************************************************************************/
package org.eclipse.wb.core.controls.flyout;

/**
 * Provider for preferences of flyout control of {@link FlyoutControlComposite}.
 * 
 * @author scheglov_ke
 * @coverage core.control
 */
public interface IFlyoutPreferences {
  ////////////////////////////////////////////////////////////////////////////
  //
  // Docking constants
  //
  ////////////////////////////////////////////////////////////////////////////
  int DOCK_WEST = 1;
  int DOCK_EAST = 2;
  int DOCK_NORTH = 4;
  int DOCK_SOUTH = 8;
  ////////////////////////////////////////////////////////////////////////////
  //
  // State constants
  //
  ////////////////////////////////////////////////////////////////////////////
  int STATE_OPEN = 0;
  int STATE_COLLAPSED = 1;
  int STATE_EXPANDED = 2;

  ////////////////////////////////////////////////////////////////////////////
  //
  // Access
  //
  ////////////////////////////////////////////////////////////////////////////
  /**
   * @return the docking location - {@link #DOCK_WEST}, {@link #DOCK_EAST}, {@link #DOCK_NORTH} or
   *         {@link #DOCK_SOUTH}.
   */
  int getDockLocation();

  /**
   * @return the state of flyout - {@link #STATE_OPEN} or {@link #STATE_COLLAPSED}.
   */
  int getState();

  /**
   * @return the width of flyout.
   */
  int getWidth();

  ////////////////////////////////////////////////////////////////////////////
  //
  // Modification
  //
  ////////////////////////////////////////////////////////////////////////////
  /**
   * Sets the docking location.
   */
  void setDockLocation(int location);

  /**
   * Sets the state of flyout - {@link #STATE_OPEN} or {@link #STATE_COLLAPSED}.
   */
  void setState(int state);

  /**
   * Sets the width of flyout.
   */
  void setWidth(int width);
}