1 11 12 package org.eclipse.ui.internal; 13 14 import org.eclipse.swt.SWT; 15 import org.eclipse.swt.widgets.Control; 16 import org.eclipse.ui.internal.layout.IWindowTrim; 17 18 25 public class WindowTrimProxy implements IWindowTrim { 26 27 private Control fTrimControl; 28 29 private String fId; 30 31 private String fDisplayName; 32 33 private int fValidSides; 34 35 private boolean fIsResizeable = false; 36 37 private int fWidthHint = SWT.DEFAULT; 38 39 private int fHeightHint = SWT.DEFAULT; 40 41 54 public WindowTrimProxy(Control c, String id, String displayName, 55 int validSides) { 56 fTrimControl = c; 57 fId = id; 58 fDisplayName = displayName; 59 fValidSides = validSides; 60 } 61 62 71 public WindowTrimProxy(Control c, String id, String displayName, 72 int validSides, boolean resizeable) { 73 this(c, id, displayName, validSides); 74 fIsResizeable = resizeable; 75 } 76 77 82 public Control getControl() { 83 return fTrimControl; 84 } 85 86 91 public int getValidSides() { 92 return fValidSides; 93 } 94 95 101 public void dock(int dropSide) { 102 } 103 104 109 public String getId() { 110 return fId; 111 } 112 113 118 public String getDisplayName() { 119 return fDisplayName; 120 } 121 122 127 public boolean isCloseable() { 128 return false; 129 } 130 131 136 public void handleClose() { 137 } 139 140 145 public int getWidthHint() { 146 return fWidthHint; 147 } 148 149 153 public void setWidthHint(int w) { 154 fWidthHint = w; 155 } 156 157 162 public int getHeightHint() { 163 return fHeightHint; 164 } 165 166 170 public void setHeightHint(int h) { 171 fHeightHint = h; 172 } 173 174 179 public boolean isResizeable() { 180 return fIsResizeable; 181 } 182 } 183 | Popular Tags |