|
||||||||||
| 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
net.xoetrope.swt.XSwtTarget
public class XSwtTarget
When using framesets the 'screen' is devided up into a number of different target areas. Each target area may contain a page. The content for each target area is set by naming the target area when calling displayPage. This class provides support for this behaviour by wrapping the Container class to ensure the target area is properly sized. How the target areas are actually laid out depends on the layout manager being used.
Copyright: Copyright (c) Xoetrope Ltd., 2002-2003
$Revision: 1.5 $
| Field Summary |
|---|
| Fields inherited from class org.eclipse.swt.widgets.Control |
|---|
handle |
| Constructor Summary | |
|---|---|
XSwtTarget(org.eclipse.swt.widgets.Composite parent)
Setup a new target area and set its size |
|
XSwtTarget(XApplet parent)
Setup a new target area and set its size |
|
| Method Summary | |
|---|---|
void |
add(java.lang.Object c,
java.lang.Object constraint)
Add a child component |
protected void |
checkSubclass()
Suppress the subclassing exception |
void |
doLayout()
Do the container layout |
java.lang.Object |
getChildComponent(int i)
Get a child component |
java.lang.String |
getContent()
Get the content of this target |
boolean |
getHasListeners()
Get the hasListeners flag |
java.lang.String |
getName()
Get the name of the content holder |
void |
remove(java.lang.Object c)
Remove a child component |
int |
setAttribute(java.lang.String attribName,
java.lang.Object attribValue)
Set one or more attributes of the component. |
void |
setContent(java.lang.String pageName)
Set the content of this target |
void |
setHasListeners(boolean value)
Set the hasListeners flag |
void |
setNextAttributes(java.lang.Object attribs)
Set the attributes for the next component being added |
void |
setup(java.lang.String name,
int width,
int height,
java.util.Hashtable params)
Sets up the new target |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, computeSize, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, 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, getBackgroundImage, 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, setBackgroundImage, 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 |
| Constructor Detail |
|---|
public XSwtTarget(org.eclipse.swt.widgets.Composite parent)
parent - parent objectpublic XSwtTarget(XApplet parent)
| Method Detail |
|---|
protected void checkSubclass()
checkSubclass in class org.eclipse.swt.widgets.Compositepublic void setNextAttributes(java.lang.Object attribs)
setNextAttributes in interface XContentHolderattribs - a table of attributes
public void setup(java.lang.String name,
int width,
int height,
java.util.Hashtable params)
setup in interface XContentHolderparams - extra parameters for the targetname - set the container namewidth - the desired widthheight - the desired heightpublic java.lang.Object getChildComponent(int i)
getChildComponent in interface XContentHolderi - the index of the child within the container
public void add(java.lang.Object c,
java.lang.Object constraint)
add in interface XContentHolderc - the child componentconstraint - the layout constraintpublic void remove(java.lang.Object c)
remove in interface XContentHolderc - the child componentpublic boolean getHasListeners()
public void setHasListeners(boolean value)
value - the new valuepublic java.lang.String getContent()
public void setContent(java.lang.String pageName)
setContent in interface XContentHolderpageName - the content page namepublic void doLayout()
doLayout in interface XContentHolderpublic java.lang.String getName()
getName in interface XContentHolder
public int setAttribute(java.lang.String attribName,
java.lang.Object attribValue)
setAttribute in interface XAttributedComponentattribName - the name of the attributeattribValue - the value of the attribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||