|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
vips.gui.ViewForm
public class ViewForm
Instances of this class implement a Composite that lays out three children horizontally and allows programmatic control of layout and border parameters. ViewForm is used in the workbench to implement a view's label/menu/toolbar local bar.
Note that although this class is a subclass of Composite, it
does not make sense to set a layout on it.
IMPORTANT: This class is not intended to be subclassed.
| Field Summary | |
|---|---|
static org.eclipse.swt.graphics.RGB |
borderInsideRGB
Color of innermost line of drop shadow border. |
static org.eclipse.swt.graphics.RGB |
borderMiddleRGB
Color of middle line of drop shadow border. |
static org.eclipse.swt.graphics.RGB |
borderOutsideRGB
Color of outermost line of drop shadow border. |
int |
marginHeight
marginHeight specifies the number of pixels of vertical margin that will be placed along the top and bottom edges of the form. |
int |
marginWidth
marginWidth specifies the number of pixels of horizontal margin that will be placed along the left and right edges of the form. |
| Fields inherited from class org.eclipse.swt.widgets.Control |
|---|
handle |
| Constructor Summary | |
|---|---|
ViewForm(org.eclipse.swt.widgets.Composite parent,
int style)
Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. |
|
| Method Summary | |
|---|---|
(package private) static int |
checkStyle(int style)
|
org.eclipse.swt.graphics.Point |
computeSize(int wHint,
int hHint,
boolean changed)
|
org.eclipse.swt.graphics.Rectangle |
computeTrim(int x,
int y,
int width,
int height)
|
org.eclipse.swt.graphics.Rectangle |
getClientArea()
|
org.eclipse.swt.widgets.Control |
getContent()
Returns the content area. |
org.eclipse.swt.widgets.Control |
getTopCenter()
Returns Control that appears in the top center of the pane. |
org.eclipse.swt.widgets.Control |
getTopLeft()
Returns the Control that appears in the top left corner of the pane. |
org.eclipse.swt.widgets.Control |
getTopRight()
Returns the control in the top right corner of the pane. |
void |
layout(boolean changed)
|
(package private) void |
onDispose()
|
(package private) void |
onPaint(org.eclipse.swt.graphics.GC gc)
|
(package private) void |
onResize()
|
void |
set3DBorderState(boolean show)
Show / Hide the 3D Border of the ViewForm |
void |
setBorderVisible(boolean show)
Specify whether the border should be displayed or not. |
void |
setContent(org.eclipse.swt.widgets.Control content)
Sets the content. |
void |
setFont(org.eclipse.swt.graphics.Font f)
|
void |
setLayout(org.eclipse.swt.widgets.Layout layout)
Sets the layout which is associated with the receiver to be the argument which may be null. |
void |
setTopCenter(org.eclipse.swt.widgets.Control topCenter)
Set the control that appears in the top center of the pane. |
void |
setTopCenterSeparate(boolean show)
If true, the topCenter will always appear on a separate line by itself, otherwise the topCenter will appear in the top row if there is room and will be moved to the second row if required. |
void |
setTopLeft(org.eclipse.swt.widgets.Control c)
Set the control that appears in the top left corner of the pane. |
void |
setTopRight(org.eclipse.swt.widgets.Control c)
Set the control that appears in the top right corner of the pane. |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, checkSubclass, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, setBackgroundMode, setFocus, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
|---|
getBorderWidth, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Control |
|---|
addControlListener, addDragDetectListener, addFocusListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getRegion, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, update |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
|---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static org.eclipse.swt.graphics.RGB borderInsideRGB
public static org.eclipse.swt.graphics.RGB borderMiddleRGB
public static org.eclipse.swt.graphics.RGB borderOutsideRGB
public int marginHeight
public int marginWidth
| Constructor Detail |
|---|
public ViewForm(org.eclipse.swt.widgets.Composite parent,
int style)
The style value is either one of the style constants defined in class
SWT which is applicable to instances of this class, or must
be built by bitwise OR 'ing together (that is, using the
int "|" operator) two or more of those SWT
style constants. The class description lists the style constants that are
applicable to the class. Style bits are also inherited from superclasses.
parent - a widget which will be the parent of the new instance (cannot
be null)style - the style of widget to construct
java.lang.IllegalArgumentException - org.eclipse.swt.SWTException - SWT.BORDER,
SWT.FLAT,
Widget.getStyle()| Method Detail |
|---|
static int checkStyle(int style)
public org.eclipse.swt.graphics.Point computeSize(int wHint,
int hHint,
boolean changed)
computeSize in class org.eclipse.swt.widgets.Composite
public org.eclipse.swt.graphics.Rectangle computeTrim(int x,
int y,
int width,
int height)
computeTrim in class org.eclipse.swt.widgets.Scrollablepublic org.eclipse.swt.graphics.Rectangle getClientArea()
getClientArea in class org.eclipse.swt.widgets.Scrollablepublic org.eclipse.swt.widgets.Control getContent()
public org.eclipse.swt.widgets.Control getTopCenter()
public org.eclipse.swt.widgets.Control getTopLeft()
public org.eclipse.swt.widgets.Control getTopRight()
public void layout(boolean changed)
layout in class org.eclipse.swt.widgets.Compositepublic void set3DBorderState(boolean show)
show - If TRUE, show the 3D Borederpublic void setBorderVisible(boolean show)
show - true if the border should be displayed
org.eclipse.swt.SWTException - public void setContent(org.eclipse.swt.widgets.Control content)
content - the control to be displayed in the content area or null
org.eclipse.swt.SWTException - public void setFont(org.eclipse.swt.graphics.Font f)
setFont in class org.eclipse.swt.widgets.Controlpublic void setLayout(org.eclipse.swt.widgets.Layout layout)
Note : ViewForm does not use a layout class to size and position its children.
setLayout in class org.eclipse.swt.widgets.Compositelayout - the receiver's new layout or null
org.eclipse.swt.SWTException - public void setTopCenter(org.eclipse.swt.widgets.Control topCenter)
topCenter - the control to be displayed in the top center or null
org.eclipse.swt.SWTException - public void setTopCenterSeparate(boolean show)
show - true if the topCenter will always appear on a separate line by
itself
org.eclipse.swt.SWTException - public void setTopLeft(org.eclipse.swt.widgets.Control c)
c - the control to be displayed in the top left corner or null
org.eclipse.swt.SWTException - public void setTopRight(org.eclipse.swt.widgets.Control c)
c - the control to be displayed in the top right corner or null
org.eclipse.swt.SWTException - void onDispose()
void onPaint(org.eclipse.swt.graphics.GC gc)
void onResize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||