|
||||||||||
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
org.eclipse.actf.model.javapp.SwingGuiModel
public class SwingGuiModel
implementation for the Java Swing GUI model
Field Summary | |
---|---|
static String |
SWING_ADAPTOR_CLASS
|
static String |
SWING_MODEL
|
Fields inherited from class org.eclipse.actf.model.javapp.AwtGuiModel |
---|
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 | |
---|---|
SwingGuiModel()
create a new SwingGuiModel |
Method Summary | |
---|---|
void |
asyncInvokeOnUIThread(Runnable runnable)
asyncronously executes the given Runnable from within the UI thread. That is, the Runnable
is placed in a queue and control is returned immediately to the calling thread. |
String |
getDefaultAliasPrefix()
returns the default alias prefix. The default alias prefix (usually a package name) is used when a fully-qualified name is not used in the 'value' attribute of an <alias> tag |
INodeLocator |
getNodeLocator()
retrieves a locator for finding and identifying nodes in the model. |
String[] |
getPackageNames()
Includes packages:
|
ITreeNodeWalker |
getTreeWalker()
retrieve the NodeWalker for traversing elements in this model |
void |
invokeOnUIThread(Runnable runnable)
executes the given Runnable from within the UI thread. |
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 |
Methods inherited from class org.eclipse.actf.model.javapp.AwtGuiModel |
---|
getAlternateMethodNames, isTopDown, requestFocusFor, setNodeID |
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, getNodeName, getOrder, 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, getNodeName, getOrder, removeModelChangeListener |
Field Detail |
---|
public static final String SWING_MODEL
public static final String SWING_ADAPTOR_CLASS
Constructor Detail |
---|
public SwingGuiModel()
Method Detail |
---|
public String getDefaultAliasPrefix()
getDefaultAliasPrefix
in interface IModel
getDefaultAliasPrefix
in class AwtGuiModel
public String[] getPackageNames()
Includes packages:
Includes packages:
getPackageNames
in interface IModel
getPackageNames
in class AwtGuiModel
org.eclipse.actf.core.processor.CodeProcessor
public boolean isUIThread()
isUIThread
in interface IGuiModel
isUIThread
in class AwtGuiModel
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 AwtGuiModel
component
- - component to be tested
public void invokeOnUIThread(Runnable runnable)
isUIThread
returns
false
.
invokeOnUIThread
in interface IGuiModel
invokeOnUIThread
in class AwtGuiModel
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.
asyncInvokeOnUIThread
in interface IGuiModel
asyncInvokeOnUIThread
in class AwtGuiModel
runnable
- - Runnable to be invoked in UI threadIGuiModel.invokeOnUIThread(Runnable)
public ITreeNodeWalker getTreeWalker()
NodeWalker
for traversing elements in this model
getTreeWalker
in interface IModel
getTreeWalker
in class AbstractModel
null
if
no walker is availablepublic INodeLocator getNodeLocator()
AbstractModel
getNodeLocator
in interface IModel
getNodeLocator
in class AbstractModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |