|
RSE Release 3.4 |
|||||||||
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
org.eclipse.rse.ui.widgets.SystemCollapsableSection
public class SystemCollapsableSection
Class to provide a collapsible composite that can be collapsed to hide some controls
Nested Class Summary | |
---|---|
protected class |
SystemCollapsableSection.RTwisteeLayout
|
Field Summary | |
---|---|
protected boolean |
_bCollapsed
|
protected boolean |
_bMouseOver
|
protected static Color |
_colorCollapsable
|
protected Composite |
_compositePage
|
protected Label |
_labelTitle
|
protected String |
_strCollapsedText
|
protected String |
_strCollapsedToolTip
|
protected String |
_strExpandedText
|
protected String |
_strExpandedToolTip
|
protected String |
_strText
|
static String |
Copyright
|
Fields inherited from class org.eclipse.swt.widgets.Composite |
---|
embeddedHandle |
Fields inherited from class org.eclipse.swt.widgets.Widget |
---|
handle |
Constructor Summary | |
---|---|
SystemCollapsableSection(Composite compositeParent)
Constructor |
Method Summary | |
---|---|
void |
addCollapseListener(ISystemCollapsableSectionListener listener)
Add a collapse / expand event listener |
boolean |
getCollapsed()
Return the collapse state |
Composite |
getPageComposite()
Get the actual composite inside the collapsible section to be usde for filling it up with controls |
String |
getText()
Get the default title text |
void |
mouseDoubleClick(MouseEvent e)
|
void |
mouseDown(MouseEvent e)
|
void |
mouseUp(MouseEvent e)
Handle the collapse or expand request from the mouse up event |
static void |
paintCollapsable(GC gc,
int iX,
int iY,
boolean bCollapsed)
Paints the two states of a collapsable indicator of a collapsable container. |
void |
paintControl(PaintEvent e)
Paint the control |
void |
removeCollapseListener(ISystemCollapsableSectionListener listener)
Remove a collapse / expand event listener |
void |
setCollapsed(boolean bCollapsed)
Set the section to be collapsed |
void |
setCollapsedText(String strText)
Set the title to be displayed when the section is collapsed |
void |
setExpandedText(String strText)
Set the title to be displayed when the section is expanded |
void |
setText(String strText)
Set the default text title |
void |
setToolTips(String strExpandedToolTip,
String strCollapsedToolTip)
Sets tooltips used in expanded and collapsed states. |
Methods inherited from class org.eclipse.swt.widgets.Composite |
---|
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getClientArea, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
Methods inherited from class org.eclipse.swt.widgets.Scrollable |
---|
computeTrim, getBorderWidth, getHorizontalBar, getVerticalBar |
Methods inherited from class org.eclipse.swt.widgets.Widget |
---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String Copyright
protected boolean _bCollapsed
protected boolean _bMouseOver
protected Composite _compositePage
protected String _strText
protected String _strExpandedText
protected String _strCollapsedText
protected String _strExpandedToolTip
protected String _strCollapsedToolTip
protected Label _labelTitle
protected static Color _colorCollapsable
Constructor Detail |
---|
public SystemCollapsableSection(Composite compositeParent)
Method Detail |
---|
public Composite getPageComposite()
public boolean getCollapsed()
public String getText()
public void mouseDoubleClick(MouseEvent e)
mouseDoubleClick
in interface MouseListener
public void mouseDown(MouseEvent e)
mouseDown
in interface MouseListener
public void mouseUp(MouseEvent e)
mouseUp
in interface MouseListener
public void paintControl(PaintEvent e)
paintControl
in interface PaintListener
public static void paintCollapsable(GC gc, int iX, int iY, boolean bCollapsed)
public void setCollapsed(boolean bCollapsed)
public void setText(String strText)
public void setExpandedText(String strText)
public void setCollapsedText(String strText)
public void setToolTips(String strExpandedToolTip, String strCollapsedToolTip)
strExpandedToolTip
- tooltip for the expanded state. For example, "click line to collapse the section".strCollapsedToolTip
- tooltip for the collapsed state. For example, "click line to expand the section".public void addCollapseListener(ISystemCollapsableSectionListener listener)
public void removeCollapseListener(ISystemCollapsableSectionListener listener)
|
RSE Release 3.4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |