|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.actf.model.AbstractModel
org.eclipse.actf.model.AbstractGuiModel
org.eclipse.actf.model.javapp.AwtGuiModel
public class AwtGuiModel
This class embodies essential characteristics of the Java AWT model. Documents wishing to describe an AWT GUI should use the 'awt' value in the 'amodel' attribute of the root <gui> tag.
Field Summary | |
---|---|
static String |
AWT_MODEL
|
Fields inherited from class org.eclipse.actf.model.AbstractGuiModel |
---|
eventIdMap |
Fields inherited from class org.eclipse.actf.model.AbstractModel |
---|
baseType, configuration, locator, runtimeContext, treeNodeWalker |
Constructor Summary | |
---|---|
|
AwtGuiModel()
create a new AwtGuiModel |
protected |
AwtGuiModel(String name)
|
Method Summary | |
---|---|
void |
asyncInvokeOnUIThread(Runnable runnable)
asyncronously executes the given Runnable from within the UI thread. |
String[] |
getAlternateMethodNames(String rootName)
alternate method names returned include: 'set' + rootName 'add' + rootName 'create' + rootName First char of rootName is converted to upper case |
String |
getDefaultAliasPrefix()
returns the default alias prefix. |
String[] |
getPackageNames()
Includes packages: java.lang java.awt java.awt.event |
void |
invokeOnUIThread(Runnable runnable)
executes the given Runnable from within the UI thread. |
boolean |
isTopDown()
return false since AWT GUIs are typically (and most
effectively) bottom-up |
boolean |
isUIThread()
returns whether or not the currently executing thread is the UI thread. |
boolean |
isVisible(Object component)
returns whether or not the specified component is currently visible |
boolean |
requestFocusFor(Object comp)
request the focus for the specified component. This method should be invoked, for example, just prior to validation for a report that reflects the state of the component while visible. |
void |
setNodeID(Object comp,
String id)
set the id for a component in the hierarchy This implementation uses the setName(String)
method to assign a component an id. |
Methods inherited from class org.eclipse.actf.model.AbstractGuiModel |
---|
getBoundingRectangle, getModelEventType, getModelEventTypes, highlight, initEventIdMap, isValid, registerModelEventListener, unregisterModelEventListener |
Methods inherited from class org.eclipse.actf.model.AbstractModel |
---|
addModelChangeListener, fireModelChangeEvent, getBaseType, getName, getNodeId, getNodeLocator, getNodeName, getOrder, getTreeWalker, removeModelChangeListener, setFilters, setModelType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.actf.model.IModel |
---|
addModelChangeListener, getBaseType, getName, getNodeId, getNodeLocator, getNodeName, getOrder, getTreeWalker, removeModelChangeListener |
Field Detail |
---|
public static final String AWT_MODEL
Constructor Detail |
---|
public AwtGuiModel()
protected AwtGuiModel(String name)
Method Detail |
---|
public String[] getAlternateMethodNames(String rootName)
First char of rootName is converted to upper case
rootName
- root name of method
public String getDefaultAliasPrefix()
AbstractModel
getDefaultAliasPrefix
in interface IModel
getDefaultAliasPrefix
in class AbstractModel
public String[] getPackageNames()
Includes packages:
getPackageNames
in interface IModel
getPackageNames
in class AbstractModel
org.eclipse.actf.core.processor.CodeProcessor
public boolean isTopDown()
false
since AWT GUIs are typically (and most
effectively) bottom-up
false
public void setNodeID(Object comp, String id)
setName(String)
method to assign a component an id.
setNodeID
in interface IModel
setNodeID
in class AbstractModel
comp
- - component for which id is to be setid
- - id for componentpublic boolean isUIThread()
true
if the current thread is the event dispatch
thread, false
otherwiseIGuiModel.isUIThread()
public boolean isVisible(Object component)
isVisible
in interface IGuiModel
isVisible
in class AbstractGuiModel
component
- - component to be tested
public void invokeOnUIThread(Runnable runnable)
isUIThread
returns
false
.
runnable
- -
Runnable to be invoked in UI threadIGuiModel.invokeOnUIThread(Runnable)
public void asyncInvokeOnUIThread(Runnable runnable)
Runnable
is placed in a queue and control is returned immediately to the calling thread.
runnable
- - Runnable to be invoked in UI threadIGuiModel.invokeOnUIThread(Runnable)
public boolean requestFocusFor(Object comp)
requestFocusFor
in interface IGuiModel
requestFocusFor
in class AbstractGuiModel
comp
- - component for which focus is desired
true
if focus is successful, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |