|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.SoftWoehr.JTOpenContrib.MEU.MEUController
Frame ontroller portion of MEU application; centralizes communications between visual components and non-visual entities. There is also a top-level application controller com.SoftWoehr.JTOpenContrib.MEU.MEU
Constructor Summary | |
MEUController(MEU m)
Creates new MEUController |
Method Summary | |
void |
actionClose(java.awt.event.ActionEvent e)
Close the current frame (warning on save changed) |
void |
actionSave(java.awt.event.ActionEvent e)
Save current file member |
void |
actionScrollAhead(java.awt.event.ActionEvent e)
Scroll ahead and display |
void |
actionScrollBack(java.awt.event.ActionEvent e)
Scroll ahead and display |
void |
actionSplitJoin(java.awt.event.ActionEvent e)
Split/Join a line |
void |
actionToggleFocus(java.awt.event.ActionEvent e)
Flip focus between command line and text area |
void |
actionToggleInserting(java.awt.event.ActionEvent e)
Clear changed and line commands and redisplay |
void |
beep()
Beep |
void |
cleanup()
Clean up connection stuff |
void |
clearRedisplaySavingCursor()
Save cursor and do redisplay |
boolean |
closeRequested(MEUFrame f)
An MEUFrame calls this when user tries to close frame. |
void |
doCommand(java.lang.String commandString)
Execute a command issued at the editor command line |
void |
eventClearRedisplay(java.awt.event.KeyEvent e)
Clear changed and line commands and redisplay |
void |
eventProcessChanged(java.awt.event.KeyEvent e)
Process all changed rows |
boolean |
getAllFrom(com.ibm.as400.access.QSYSObjectPathName pathName)
Insert records from a user-chosen file member File member must already exist! File must have same record format! |
int |
getCurPos()
Get current text area cursor offset |
int |
getCurrentRowNumber()
Return the record/row number the cursor is on. |
int |
getDisplayedRowNumber()
Return the display row number the cursor is on. |
MEUFrame |
getFrame()
Get the frame to which this controller is attached |
java.lang.String |
getIFSPath()
Get IFS Path of our file member |
boolean |
getInserting()
Return insert mode (true) or typeover (false) |
MEU |
getMEU()
Get the top-level application controller |
int |
getNumberOfRows()
Return total number of row records |
int |
getNumberOfRowsDisplayed()
Return total number of row records |
int |
getOffsetInSRCDTA(int curpos)
Returns offset of cursor in srcdta on current line. |
java.lang.String |
getSRCDTAcontents(int rownum)
Return SRCDTA contents of a give row/recordnumber |
int |
getSRCDTAlength()
Return record field length for SRCDTA |
boolean |
insertRow()
Insert row below current row |
boolean |
isChanged()
See if file member needs save |
protected void |
iWantToClose()
Close, warning for save of changed |
void |
menuGetAll(java.awt.event.ActionEvent evt)
Get a file member into the current file member by dialog. |
void |
menuInsertRow(java.awt.event.ActionEvent evt)
Insert a new row after the current position. |
void |
menuNewFileMember(java.awt.event.ActionEvent evt)
Open file open via dialog in response to a menu item |
void |
menuOpenFileMember(java.awt.event.ActionEvent evt)
Open file open via dialog in response to a menu item |
void |
menuRemoveRow(java.awt.event.ActionEvent evt)
Delete row at the current position. |
void |
menuSave(java.awt.event.ActionEvent evt)
Process changed and save changes to server file member |
void |
menuSaveAs(java.awt.event.ActionEvent evt)
Process changed and save under new name by dialog. |
void |
menuSaveLocal(java.awt.event.ActionEvent evt)
Save the current buffer as a local text file by dialog. |
void |
menuSearch(java.awt.event.ActionEvent evt)
Search for a string. |
void |
menuSetServer(java.awt.event.ActionEvent evt)
Set server via a dialog in response to a menu item |
void |
newEditBuffer(java.lang.String lib,
java.lang.String file,
java.lang.String member)
Create a new edit buffer. |
boolean |
newOnServer(com.ibm.as400.access.QSYSObjectPathName pathName)
Save records to a user-chosen file member File member must already exist! File must have same record format! |
protected boolean |
offerGetAll()
Offer to Save As on server. |
void |
offerNewFileMember()
Offer to create a file member and do so if accepted |
void |
offerOpenFileMember()
Offer to open a file member and do so if accepted |
protected boolean |
offerSaveAs()
Offer to Save As on server. |
boolean |
offerSaveLocaltext()
Offer the user to save text format locally. |
boolean |
offerSearch()
Offer to open a file member and do so if accepted |
boolean |
openEditSession(java.lang.String ifsPath)
Open an edit session if the user doesn't cancel a save/discard of the previous contents |
void |
processChangedSavingCursor()
Save cursor and process changes |
void |
relinquish(ServiceRecord sr)
Called by a Mgr, this function indicates that a service record supplied earlier by the MGr to the ServiceClient instance will no longer be valid after this call completes. |
boolean |
removeRow()
Remove the row at current cursor in the display |
boolean |
removeRow(int displayRowNum)
Remove a specific row/record by its visual display row number |
boolean |
requestShutdown(MEUFrame f)
Iterate through frames requesting shutdown. |
int |
rowNumberToRecordNumber(int rownum)
Convert a display row number to an absolute row/record number. |
boolean |
saveAsToServer(com.ibm.as400.access.QSYSObjectPathName pathName)
Save records to a user-chosen file member. |
boolean |
saveToServer()
If changed, write back to the server. |
boolean |
saveToServer(boolean forceWrite)
Write back to the server if changed or forced True on success. |
void |
setCurPos(int pos)
Set current cursort pos to wrapped cursor pos offered. |
void |
setDefaultServer()
Look up the default and set the server accordingly. |
void |
setEditingEnabled(boolean enabled)
Enable/disable text editing |
void |
setFrame(MEUFrame f)
Set the frame we're associated with |
void |
setOffsetInSRCDTA(int offset)
Move cursor on a line |
void |
setServer(java.lang.String server)
Set the server (i.e., do setSystem) safely, dialoging where necessary. |
void |
textAreaFocus()
Transfer the focus for the text area |
void |
toggleFocus()
Flip focus between command line and text area |
boolean |
toggleInserting()
Toggle the insert mode flag |
boolean |
writeLocaltext(java.io.File f)
Write the member out to a local file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MEUController(MEU m)
Method Detail |
public MEU getMEU()
public void setServer(java.lang.String server)
public void setDefaultServer()
public void relinquish(ServiceRecord sr)
relinquish
in interface ServiceClient
sr
- The service record which the Mgr is indicating will no longer be valid after the relinquish completes.public MEUFrame getFrame()
public void setFrame(MEUFrame f)
public int getDisplayedRowNumber()
public int rowNumberToRecordNumber(int rownum)
public int getCurrentRowNumber()
public int getOffsetInSRCDTA(int curpos)
public void setOffsetInSRCDTA(int offset)
public int getCurPos()
public void setCurPos(int pos)
public void setEditingEnabled(boolean enabled)
public boolean getInserting()
public boolean toggleInserting()
public void toggleFocus()
public void textAreaFocus()
public java.lang.String getIFSPath()
public boolean isChanged()
public int getNumberOfRows()
public int getNumberOfRowsDisplayed()
public int getSRCDTAlength()
public java.lang.String getSRCDTAcontents(int rownum)
public boolean insertRow()
public boolean removeRow(int displayRowNum)
public boolean removeRow()
public void newEditBuffer(java.lang.String lib, java.lang.String file, java.lang.String member)
public boolean saveToServer()
public boolean saveToServer(boolean forceWrite)
public boolean saveAsToServer(com.ibm.as400.access.QSYSObjectPathName pathName)
public boolean newOnServer(com.ibm.as400.access.QSYSObjectPathName pathName)
public boolean getAllFrom(com.ibm.as400.access.QSYSObjectPathName pathName)
public boolean writeLocaltext(java.io.File f)
public boolean openEditSession(java.lang.String ifsPath)
public void offerNewFileMember()
public void offerOpenFileMember()
protected boolean offerSaveAs()
protected boolean offerGetAll()
public boolean offerSaveLocaltext()
public boolean offerSearch()
public void clearRedisplaySavingCursor()
public void processChangedSavingCursor()
public void menuNewFileMember(java.awt.event.ActionEvent evt)
public void menuOpenFileMember(java.awt.event.ActionEvent evt)
public void menuSetServer(java.awt.event.ActionEvent evt)
public void menuSave(java.awt.event.ActionEvent evt)
public void menuSaveAs(java.awt.event.ActionEvent evt)
public void menuGetAll(java.awt.event.ActionEvent evt)
public void menuSaveLocal(java.awt.event.ActionEvent evt)
public void menuInsertRow(java.awt.event.ActionEvent evt)
public void menuRemoveRow(java.awt.event.ActionEvent evt)
public void menuSearch(java.awt.event.ActionEvent evt)
public void eventClearRedisplay(java.awt.event.KeyEvent e)
public void eventProcessChanged(java.awt.event.KeyEvent e)
public void actionToggleFocus(java.awt.event.ActionEvent e)
public void actionScrollAhead(java.awt.event.ActionEvent e)
public void actionScrollBack(java.awt.event.ActionEvent e)
public void actionSplitJoin(java.awt.event.ActionEvent e)
public void actionToggleInserting(java.awt.event.ActionEvent e)
public void actionSave(java.awt.event.ActionEvent e)
public void actionClose(java.awt.event.ActionEvent e)
public void doCommand(java.lang.String commandString)
public void beep()
protected void iWantToClose()
public boolean closeRequested(MEUFrame f)
public boolean requestShutdown(MEUFrame f)
public void cleanup()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |