Package org.eclipse.nebula.cwt.v
Class VPanel
- java.lang.Object
-
- org.eclipse.nebula.cwt.v.VControl
-
- org.eclipse.nebula.cwt.v.VPanel
-
- Direct Known Subclasses:
AnalogTimePicker
,DatePicker
,DiscreteTimePicker
public class VPanel extends VControl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.nebula.cwt.v.VControl
VControl.Type
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<VControl>
children
private boolean
isTopLevel
private VLayout
layout
private org.eclipse.swt.widgets.Listener
topLevelListener
(package private) org.eclipse.swt.widgets.Composite
widget
-
Fields inherited from class org.eclipse.nebula.cwt.v.VControl
background, bounds, carbon, composite, customToolTip, dataMap, disposed, fill, font, foreground, gtk, image, layoutData, listeners, marginBottom, marginLeft, marginRight, marginTop, menu, painter, parent, points, scaleImage, square, STATE_ACTIVE, STATE_ENABLED, STATE_MOUSE_DOWN, STATE_SELECTED, svg, text, tooltipText, visibility, win32, xAlign, yAlign
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addChild(VControl child)
org.eclipse.swt.graphics.Point
computeSize(int wHint, int hHint, boolean changed)
void
dispose()
private void
dispose(boolean disposeComposite)
If the dispose request comes from the Composite via the topLevelListener, then do not dispose the Composite again - controls recieving the Composite's dispose event after this VPanel will be in danger of dealing with a disposed control before they are ready.int
getBorderWidth()
VControl[]
getChildren()
VControl
getControl(int x, int y)
VControl
getControl(int x, int y, boolean includePanels)
VLayout
getLayout()
<T extends VLayout>
TgetLayout(java.lang.Class<T> clazz)
VControl.Type
getType()
org.eclipse.swt.widgets.Composite
getWidget()
void
layout()
void
layout(boolean changed)
(package private) void
move(VControl above, VControl below)
protected boolean
redrawOnActivate()
protected boolean
redrawOnDeactivate()
(package private) void
removeChild(VControl child)
(package private) void
removeVChild(VControl vchild)
void
setActivatable(boolean activatable)
void
setBounds(int x, int y, int width, int height)
void
setEnabled(boolean enabled)
protected boolean
setFocus(boolean focus)
void
setLayout(VLayout layout)
void
setLayoutData(org.eclipse.swt.layout.GridData data)
void
setSize(org.eclipse.swt.graphics.Point size)
void
setVisibility(int visibility)
void
setVisible(boolean visible)
void
setWidget(org.eclipse.swt.widgets.Composite widget)
void
sort(java.util.Comparator<VControl> comparator)
void
updateColorsAndFont()
-
Methods inherited from class org.eclipse.nebula.cwt.v.VControl
activate, addListener, addListener, attachListeners, computeSize, containsControl, createMenu, deactivate, detachListeners, filterEvent, getBackground, getBounds, getClientArea, getClientSize, getComposite, getControl, getData, getData, getData, getData, getDisplay, getEnabled, getFont, getForeground, getImage, getLayoutData, getListeners, getLocation, getMargins, getMenu, getParent, getShell, getSize, getState, getStyle, getText, getToolTipText, getVisibility, getVisible, handleEvent, hasState, hasStyle, isActivatable, isDisposed, isEnabled, isSameWidgetAs, isSameWidgetAs, isSquare, isVisible, moveAbove, moveBelow, notifyListeners, notifyListeners, paintControl, redraw, removeListener, removeListener, setActiveCursor, setAlignment, setAlpha, setAlpha, setBackground, setBounds, setCursor, setData, setData, setFill, setFocus, setFont, setForeground, setImage, setImage, setInactiveCursor, setLocation, setLocation, setMargins, setMargins, setMargins, setOval, setOval, setPainter, setParent, setPolygon, setPolygon, setScaleImage, setSquare, setState, setStyle, setStyle, setText, setToolTipText, setVisible, setVisible, toControl, toControl, toDisplay, toDisplay, toString, update
-
-
-
-
Constructor Detail
-
VPanel
public VPanel(org.eclipse.swt.widgets.Composite parent, int style)
-
VPanel
public VPanel(VPanel panel, int style)
-
-
Method Detail
-
addChild
void addChild(VControl child)
-
computeSize
public org.eclipse.swt.graphics.Point computeSize(int wHint, int hHint, boolean changed)
- Overrides:
computeSize
in classVControl
-
dispose
private void dispose(boolean disposeComposite)
If the dispose request comes from the Composite via the topLevelListener, then do not dispose the Composite again - controls recieving the Composite's dispose event after this VPanel will be in danger of dealing with a disposed control before they are ready.- Parameters:
disposeComposite
-
-
getBorderWidth
public int getBorderWidth()
-
getChildren
public VControl[] getChildren()
-
getControl
public VControl getControl(int x, int y)
-
getControl
public VControl getControl(int x, int y, boolean includePanels)
-
getLayout
public VLayout getLayout()
-
getLayout
public <T extends VLayout> T getLayout(java.lang.Class<T> clazz)
-
getType
public VControl.Type getType()
-
getWidget
public org.eclipse.swt.widgets.Composite getWidget()
-
layout
public void layout()
-
layout
public void layout(boolean changed)
-
redrawOnActivate
protected boolean redrawOnActivate()
- Overrides:
redrawOnActivate
in classVControl
-
redrawOnDeactivate
protected boolean redrawOnDeactivate()
- Overrides:
redrawOnDeactivate
in classVControl
-
removeChild
void removeChild(VControl child)
-
removeVChild
void removeVChild(VControl vchild)
-
setActivatable
public void setActivatable(boolean activatable)
- Overrides:
setActivatable
in classVControl
-
setBounds
public void setBounds(int x, int y, int width, int height)
-
setEnabled
public void setEnabled(boolean enabled)
- Overrides:
setEnabled
in classVControl
-
setLayout
public void setLayout(VLayout layout)
-
setLayoutData
public void setLayoutData(org.eclipse.swt.layout.GridData data)
- Overrides:
setLayoutData
in classVControl
-
setSize
public void setSize(org.eclipse.swt.graphics.Point size)
-
setVisibility
public void setVisibility(int visibility)
- Overrides:
setVisibility
in classVControl
-
setVisible
public void setVisible(boolean visible)
- Overrides:
setVisible
in classVControl
-
setWidget
public void setWidget(org.eclipse.swt.widgets.Composite widget)
-
sort
public void sort(java.util.Comparator<VControl> comparator)
-
updateColorsAndFont
public void updateColorsAndFont()
-
-