|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectComposite
org.formaria.swt.SwtTarget
public class SwtTarget
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) Formaria Ltd., 2008
$Revision: 1.5 $
| Constructor Summary | |
|---|---|
SwtTarget(Composite 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 |
java.lang.String |
getToolTip()
Get the tooltip text |
void |
remove(java.lang.Object c)
Remove a child 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 |
setToolTip(java.lang.String text)
Set the tooltip text |
void |
setup(java.lang.String name,
int width,
int height,
java.util.Hashtable params)
Sets up the new target |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SwtTarget(Composite parent)
parent - parent object| Method Detail |
|---|
protected void checkSubclass()
public void setNextAttributes(java.lang.Object attribs)
setNextAttributes in interface ContentHolderattribs - a table of attributes
public void setup(java.lang.String name,
int width,
int height,
java.util.Hashtable params)
setup in interface ContentHolderparams - extra parameters for the targetname - set the container namewidth - the desired widthheight - the desired heightpublic java.lang.Object getChildComponent(int i)
getChildComponent in interface ContentHolderi - the index of the child within the container
public void add(java.lang.Object c,
java.lang.Object constraint)
add in interface ContentHolderc - the child componentconstraint - the layout constraintpublic void remove(java.lang.Object c)
remove in interface ContentHolderc - 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 ContentHolderpageName - the content page namepublic void doLayout()
doLayout in interface ContentHolderpublic java.lang.String getName()
getName in interface ContentHolderpublic void setToolTip(java.lang.String text)
text - the new textpublic java.lang.String getToolTip()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||