Class TwistieSection
java.lang.Object
org.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
com.biglybt.ui.swt.twistie.TwistieSection
- All Implemented Interfaces:
ITwistieConstants, org.eclipse.swt.graphics.Drawable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classA simple extension ofCompositethat disallow modifying its layout data -
Field Summary
FieldsFields inherited from class org.eclipse.swt.widgets.Composite
embeddedHandleFields inherited from class org.eclipse.swt.widgets.Widget
handleFields inherited from interface ITwistieConstants
NONE, SHOW_DESCRIPTION, SHOW_EXPANDED, SHOW_SEPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionTwistieSection(org.eclipse.swt.widgets.Composite parent, int style) Create a TwistieSection with the given style bit. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTwistieListener(ITwistieListener listener) Delegating to theTwistieLabelorg.eclipse.swt.widgets.CompositeReturns the main body of the section.booleanvoidremoveTwistieListener(ITwistieListener listener) Delegating to theTwistieLabelvoidsetBackground(org.eclipse.swt.graphics.Color color) voidsetCollapsed(boolean c) voidsetDescription(String string) Delegating to theTwistieLabelvoidsetEnabled(boolean enabled) voidsetForeground(org.eclipse.swt.graphics.Color color) voidDelegating to theTwistieLabelvoidsetToolTipText(String string) Delegating to theTwistieLabelvoidsetTwistieForeground(org.eclipse.swt.graphics.Color color) Delegating to theTwistieLabelMethods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList, toStringMethods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar, setScrollbarsModeMethods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isAutoScalable, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setFont, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, updateMethods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, addTypedListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, getTypedListeners, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, removeListener, removeTypedListener, reskin, setData, setData
-
Field Details
-
-
label
-
-
Constructor Details
-
TwistieSection
public TwistieSection(org.eclipse.swt.widgets.Composite parent, int style) Create a TwistieSection with the given style bit.Style bit can be one or more of:
- TwistieLabel.NONE -- The default; does not show description and separator, and is collapsed
- TwistieLabel.SHOW_DESCRIPTION -- Show the description below the separator (or title if separator s not shown)
- TwistieLabel.SHOW_SEPARATOR -- Show a separator below the title
- TwistieLabel.SHOW_EXPANDED -- Show a separator below the title
-
-
Method Details
-
getContent
public org.eclipse.swt.widgets.Composite getContent()Returns the main body of the section. Callers can add custom controls onto the returnedComposite- Returns:
-
setBackground
public void setBackground(org.eclipse.swt.graphics.Color color) - Overrides:
setBackgroundin classorg.eclipse.swt.widgets.Control
-
setForeground
public void setForeground(org.eclipse.swt.graphics.Color color) - Overrides:
setForegroundin classorg.eclipse.swt.widgets.Control
-
setEnabled
public void setEnabled(boolean enabled) - Overrides:
setEnabledin classorg.eclipse.swt.widgets.Control
-
addTwistieListener
Delegating to theTwistieLabel- Parameters:
listener-
-
removeTwistieListener
Delegating to theTwistieLabel- Parameters:
listener-
-
setDescription
-
setTitle
-
setToolTipText
Delegating to theTwistieLabel- Overrides:
setToolTipTextin classorg.eclipse.swt.widgets.Control- Parameters:
string-
-
setTwistieForeground
public void setTwistieForeground(org.eclipse.swt.graphics.Color color) Delegating to theTwistieLabel- Parameters:
color-
-
isCollapsed
public boolean isCollapsed() -
setCollapsed
public void setCollapsed(boolean c)
-