|
|||||||||||
| 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
com.tensegrity.skeleton.swt.container.AbstractSwtToolContainer
This is a basic abstract implementation of the ToolContainer
interface for the Swt context. It provides all subclasses with useful
variables like the ApplicationFrame or the UIManager.
| Field Summary | |
protected boolean |
isSelected
The isSelected field contains the current selection state
of this Container. |
| Fields inherited from class org.eclipse.swt.widgets.Control |
handle |
| Constructor Summary | |
AbstractSwtToolContainer(ApplicationFrame applicationFrame,
org.eclipse.swt.widgets.Composite parent,
int style)
Creates the AbstractSwingToolContainer by assigning the
parameter ApplicationFrame and the associated
UIManager. |
|
| Method Summary | |
ApplicationFrame |
getApplicationFrame()
Returns the enclosing ApplicationFrame of this
Container. |
int |
getHeight()
Returns the width in pixel of this container. |
protected UIManager |
getUiManager()
Returns the UiManager. |
int |
getWidth()
Returns the width in pixel of this container. |
abstract void |
init()
Subclasses implement this method to start their initialization code. |
void |
repaint()
This might be called users to trigger a visual update of the ToolContainer. |
abstract void |
setName(java.lang.String s)
Sets the name of this container. |
void |
setSelected(boolean b)
Sets the selected flag of this container. |
protected void |
setUiManager(UIManager uiManager)
Allows subclasses to manually set the UIManager. |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
checkSubclass, computeSize, getChildren, getLayout, getTabList, layout, layout, setFocus, setLayout, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Control |
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, 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, 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 |
| Methods inherited from interface com.tensegrity.gui.container.Container |
getName |
| Field Detail |
protected boolean isSelected
isSelected field contains the current selection state
of this Container.
| Constructor Detail |
public AbstractSwtToolContainer(ApplicationFrame applicationFrame,
org.eclipse.swt.widgets.Composite parent,
int style)
AbstractSwingToolContainer by assigning the
parameter ApplicationFrame and the associated
UIManager. The Constructor implicitly calls the
init method to allow subclasses to perform further
initialization.
applicationFrame - Enclosing ApplicationFrameparent - a widget which will be the parent of the new instance (cannot be null)style - the style of widget to construct| Method Detail |
public ApplicationFrame getApplicationFrame()
ContainerApplicationFrame of this
Container.
getApplicationFrame in interface ContainerApplicationFrame.public abstract void init()
protected UIManager getUiManager()
protected void setUiManager(UIManager uiManager)
UIManager.
uiManager - the UIManager to set.public void setSelected(boolean b)
Container
setSelected in interface Containerb - true to indicate that this container is
selected.public int getHeight()
ToolContainer
getHeight in interface ToolContainerpublic int getWidth()
ToolContainer
getWidth in interface ToolContainerpublic void repaint()
ToolContainer
repaint in interface ToolContainerpublic abstract void setName(java.lang.String s)
setName in interface Containers - the new name for this container.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||