|
Services Builder for Screens | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.attachmate.common.eai.tasks.BaseTaskBean | +--com.attachmate.common.eai.tasks.NavTaskBean | +--com.attachmate.common.eai.tasks.ScreenNativeAccess
Implements INativeAccess
and supply a host neutral view of the screen.
Provides a mechnism to recover from tasks failures or render host screens.
INativeAccess
,
ITask
,
Serialized FormField Summary |
Fields inherited from class com.attachmate.common.eai.tasks.NavTaskBean |
m_InputFields, m_MapName, m_MultiValInputFields, m_MultiValInputVals, m_MultiValOutputFields, m_MultiValOutputVals, m_OutputFields, m_Route |
Fields inherited from class com.attachmate.common.eai.tasks.BaseTaskBean |
m_Config, m_InstanceName, m_JobName, m_ResourceName, m_ServerAddress, m_TaskName, m_Timeout, m_Version |
Fields inherited from interface com.attachmate.common.eai.tasks.INativeAccess |
PROPERTY_NOT_INITIALIZED |
Fields inherited from interface com.attachmate.tasks.ITask |
PRESERVE_ALWAYS, PRESERVE_NEVER, PRESERVE_ON_ERROR |
Constructor Summary | |
ScreenNativeAccess()
Configure the task bean for NativeAccess and settings to the defaults. |
Method Summary | |
protected void |
doExecute(com.attachmate.common.eai.ITaskServer server)
reset the field count to 0 if the count is invalid |
long[] |
getCharacterAttr()
Gets the extended attribute bits for the entire screen. |
int |
getColumns()
Gets the number of columns on the screen |
int |
getCommand()
Gets the current execution command |
int |
getCurrentPage()
Gets the current page number |
int |
getCursorColumn()
Gets the current cursor column position |
int |
getCursorRow()
Gets the current row position of the cursor |
long[] |
getFieldAttr()
Gets the attribute bits for every field on the screen. |
long |
getFieldAttr(int fieldIndex)
Gets the attribute bits of the desired field. |
int |
getFieldCount()
Gets the number of fields on the current screen |
int[] |
getFieldEndColumn()
Gets the ending column of each field on the screen. |
int |
getFieldEndColumn(int fieldIndex)
Gets the ending column for the desired field. |
int[] |
getFieldEndRow()
Gets the ending row of each field on the screen. |
int |
getFieldEndRow(int fieldIndex)
Gets the ending row of the desired field. |
java.lang.String[] |
getFieldInputText()
Gets the text from all pre-defined input fields on the screen. |
java.lang.String |
getFieldInputText(int fieldIndex)
Gets the field input text from the desired field. |
int[] |
getFieldLength()
Gets the field length for each field on the screen. |
int |
getFieldLength(int fieldIndex)
Gets the length of the desired field. |
int[] |
getFieldPage()
Gets the screen page of all of the fields. |
int |
getFieldPage(int fieldIndex)
Gets the screen page of the desired field. |
int[] |
getFieldStartColumn()
Gets the starting column for each field on the screen. |
int |
getFieldStartColumn(int fieldIndex)
Gets the starting column of the desired field. |
int[] |
getFieldStartRow()
Gets the starting row of every field on the screen. |
int |
getFieldStartRow(int fieldIndex)
Gets the starting row of the desired field. |
java.lang.String[] |
getFieldText()
Gets the text from all pre-defined fields on the screen. |
java.lang.String |
getFieldText(int fieldIndex)
Gets the visible text from the desired field. |
int |
getHostFlags()
Gets the host status flags. |
java.lang.String |
getHostMessage()
Deprecated. |
java.lang.String |
getHostType()
Gets the type of the host connection |
int |
getPageCount()
Gets the number of pages on a multi-page viewer |
java.lang.String |
getPoolName()
Gets the pool name |
int |
getRows()
Gets the number rows on the screen |
java.lang.String |
getScreenName()
Gets the name of the host screen from the pool's NavMap |
int |
getSettleTime()
Gets the amount of time that NativeAccess will wait for a screen to settle before the screen data is returned. |
java.lang.String |
getShare()
Gets the session's context name. |
void |
setCommand(int command)
Sets the command to execute on the screen. |
protected void |
setConfiguration(com.attachmate.common.eai.ITaskServer server)
Handles the specifics of setting up the configuration info needed by ITaskServer to connect a task. |
void |
setCurrentPage(int newPage)
Sets the currently active page. |
void |
setCursorColumn(int inColumn)
Moves the cursor horizontally to the specified column. |
void |
setCursorRow(int inRow)
Moves the cursor vertically to the specified row. |
void |
setFieldInputText(int fieldIndex,
java.lang.String fieldText)
Sets the text in the desired input field. |
void |
setFieldInputText(java.lang.String[] fieldsText)
Sets the text in all input fields. |
void |
setSettleTime(int milliseconds)
Sets the settle time for the screen to become stable. |
void |
setShare(java.lang.String name)
Sets the name of the NavMap. |
Methods inherited from class com.attachmate.common.eai.tasks.NavTaskBean |
getMapName, getMultiValPropArray, getMultiValPropVal, getMultiValuePropArray, getMultiValuePropVal, getRecordCount, getRoute, getTaskContext, getUniqueIdentifier |
Methods inherited from class com.attachmate.common.eai.tasks.BaseTaskBean |
addTaskListener, cancel, clearContext, copyContext, executeAsync, executeSync, freeTaskServer, getInstanceName, getJobName, getLocale, getPreserveContext, getResourceName, getStatus, getTimeout, getVersion, lockTaskServer, removeTaskListener, setInstanceName, setJobName, setLocale, setPreserveContext, setResourceName, setTimeout, transferContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ScreenNativeAccess()
ITask.PRESERVE_ALWAYS
. This may be overriden if necessary before calling
executeSync()
.
BaseTaskBean.executeSync()
,
ITask.PRESERVE_ALWAYS
Method Detail |
protected void setConfiguration(com.attachmate.common.eai.ITaskServer server) throws java.lang.Exception
ITaskServer
to connect a task.
Made abstract
because the data needed to set up a specific type of task
is not known by this base bean and needs to be implemented by classes which extend this.
setConfiguration
in class com.attachmate.common.eai.tasks.NavTaskBean
server
- The ITaskServer
the bean sets the configuration on.
java.lang.Exception
public java.lang.String getHostMessage()
getHostMessage
in interface INativeAccess
public int getHostFlags()
getHostFlags
in interface INativeAccess
public java.lang.String getPoolName()
getPoolName
in interface INativeAccess
public java.lang.String getShare()
getShare
in interface INativeAccess
null
if the name was not
set.public void setShare(java.lang.String name)
setShare
in interface INativeAccess
name
- the name of the NavMap used by the target sessionpublic java.lang.String getScreenName()
NavMap
getScreenName
in interface INativeAccess
null
if the screen
was not recognized.public int getRows()
getRows
in interface INativeAccess
public int getColumns()
getColumns
in interface INativeAccess
public int getCursorRow()
getCursorRow
in interface INativeAccess
public void setCursorRow(int inRow)
setCursorRow
in interface INativeAccess
inRow
- the desired cursor rowpublic int getCursorColumn()
getCursorColumn
in interface INativeAccess
public void setCursorColumn(int inColumn)
setCursorColumn
in interface INativeAccess
inColumn
- the desired cursor columnpublic int getFieldCount()
getFieldCount
in interface INativeAccess
public java.lang.String getFieldText(int fieldIndex)
getFieldText
in interface INativeAccess
fieldIndex
- the index of the field to retrieve text from
public java.lang.String[] getFieldText()
getFieldText
in interface INativeAccess
public int getFieldPage(int fieldIndex)
getFieldPage
in interface INativeAccess
fieldIndex
- the index of the field to retrieve the page from
public int[] getFieldPage()
getFieldPage
in interface INativeAccess
public java.lang.String getFieldInputText(int fieldIndex)
getFieldInputText
in interface INativeAccess
fieldIndex
- the index of the field to retrieve text from
public java.lang.String[] getFieldInputText()
getFieldInputText
in interface INativeAccess
public void setFieldInputText(int fieldIndex, java.lang.String fieldText)
setFieldInputText
in interface INativeAccess
fieldIndex
- the index of the field to write tofieldText
- the text to write to the desired fieldpublic void setFieldInputText(java.lang.String[] fieldsText)
setFieldInputText
in interface INativeAccess
fieldsText
- an array of Strings to write to the screen's fieldspublic long[] getCharacterAttr()
getCharacterAttr
in interface INativeAccess
INativeAccessConstants
public long getFieldAttr(int fieldIndex)
getFieldAttr
in interface INativeAccess
fieldIndex
- index of the desired field
INativeAccessConstants
public long[] getFieldAttr()
getFieldAttr
in interface INativeAccess
INativeAccessConstants
public int getFieldStartRow(int fieldIndex)
getFieldStartRow
in interface INativeAccess
fieldIndex
- index of the desired field
public int[] getFieldStartRow()
getFieldStartRow
in interface INativeAccess
public int getFieldStartColumn(int fieldIndex)
getFieldStartColumn
in interface INativeAccess
fieldIndex
- index of the desired field
public int[] getFieldStartColumn()
getFieldStartColumn
in interface INativeAccess
public int getFieldEndRow(int fieldIndex)
getFieldEndRow
in interface INativeAccess
fieldIndex
- index for the desired field
public int[] getFieldEndRow()
getFieldEndRow
in interface INativeAccess
public int getFieldEndColumn(int fieldIndex)
getFieldEndColumn
in interface INativeAccess
fieldIndex
- index for the desired field
public int[] getFieldEndColumn()
getFieldEndColumn
in interface INativeAccess
public int getFieldLength(int fieldIndex)
getFieldLength
in interface INativeAccess
fieldIndex
- index of the desired field
public int[] getFieldLength()
getFieldLength
in interface INativeAccess
public java.lang.String getHostType()
getHostType
in interface INativeAccess
String
that represents the current host type.public void setCommand(int command)
execute
is called, all modified fields are sent to the
host, and the command is sent to the screen at the current cursor
position. If command is null
, execute
refreshes
the properties to reflect the current host screen. No command or data is
sent to the host.
setCommand
in interface INativeAccess
command
- a string representing a commandINativeAccessConstants
public int getCommand()
getCommand
in interface INativeAccess
public void setSettleTime(int milliseconds)
setSettleTime
in interface INativeAccess
milliseconds
- the number of milliseconds to wait for the screen to become stablepublic int getSettleTime()
getSettleTime
in interface INativeAccess
public int getPageCount()
getPageCount
in interface INativeAccess
public int getCurrentPage()
getCurrentPage
in interface INativeAccess
public void setCurrentPage(int newPage)
setCurrentPage
in interface INativeAccess
newPage
- the active pageprotected void doExecute(com.attachmate.common.eai.ITaskServer server) throws com.attachmate.tasks.TaskException
doExecute
in class com.attachmate.common.eai.tasks.NavTaskBean
com.attachmate.tasks.TaskException
|
Services Builder for Screens | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |