public class UserInterfaceInitial extends java.lang.Object implements UserInterface
Constructor and Description |
---|
UserInterfaceInitial(EDatabase database) |
Modifier and Type | Method and Description |
---|---|
void |
adjustReferencePoint(Cell cell,
double cX,
double cY)
Method to adjust reference point in WindowFrame containing the cell
|
int |
askForChoice(java.lang.String message,
java.lang.String title,
java.lang.String[] choices,
java.lang.String defaultChoice)
Method to ask for a choice among possibilities.
|
java.lang.String |
askForInput(java.lang.Object message,
java.lang.String title,
java.lang.String def)
Method to ask for a line of text.
|
void |
beep()
Method to beep.
|
boolean |
confirmMessage(java.lang.Object message)
Method to show a message and ask for confirmation.
|
EditWindow_ |
displayCell(Cell cell)
Method to request that a Cell be displayed in a new window.
|
Cell |
getCurrentCell()
Method to return the current Cell in the current Library.
|
EditWindow_ |
getCurrentEditWindow_()
Method to return the current "EditWindow_" object.
|
Library |
getCurrentLibrary()
Method to return the current Library.
|
Technology |
getCurrentTechnology()
Method to return the current Technology.
|
EDatabase |
getDatabase()
Method to return the current database object.
|
int |
getDefaultTextSize()
Method to return the height of default text (in points).
|
Job.Key |
getJobKey()
Method to return Job Key of a currently executed Job.
|
java.lang.String |
getProgressNote()
Method to get text message in the progress dialgo.
|
Cell |
needCurrentCell()
Method to demand the current Cell.
|
EditWindow_ |
needCurrentEditWindow_()
Method to demand the current "EditWindow_" object.
|
void |
printMessage(java.lang.String message,
boolean newLine)
Method print a message.
|
void |
repaintAllWindows()
Method to request that all windows be redisplayed including palettes.
|
java.lang.String |
reportLog(ErrorLogger.MessageLog log,
boolean showhigh,
boolean separateWindow,
int position)
Method to return the error message associated with the current error.
|
void |
saveMessages(java.lang.String filePath)
Method to start saving messages.
|
void |
setProgressNote(java.lang.String message)
Method to set a text message in the progress dialog.
|
void |
setProgressValue(int pct)
Method to update the progress bar
|
void |
showErrorMessage(java.lang.String message,
java.lang.String title)
Method to show an error message.
|
void |
showInformationMessage(javax.swing.JFrame frame,
java.lang.String message,
java.lang.String title)
Method to show an informational message.
|
void |
showInformationMessage(java.lang.String message,
java.lang.String title)
Method to show an informational message.
|
void |
startProgressDialog(java.lang.String msg,
java.lang.String filePath)
Method to start the display of a progress dialog.
|
void |
stopProgressDialog()
Method to stop the progress bar
|
void |
termLogging(ErrorLogger logger,
boolean explain,
boolean terminate) |
public UserInterfaceInitial(EDatabase database)
public Job.Key getJobKey()
UserInterface
getJobKey
in interface UserInterface
public EDatabase getDatabase()
UserInterface
getDatabase
in interface UserInterface
public Technology getCurrentTechnology()
UserInterface
getCurrentTechnology
in interface UserInterface
public Library getCurrentLibrary()
UserInterface
getCurrentLibrary
in interface UserInterface
public EditWindow_ getCurrentEditWindow_()
UserInterface
getCurrentEditWindow_
in interface UserInterface
public EditWindow_ needCurrentEditWindow_()
UserInterface
needCurrentEditWindow_
in interface UserInterface
public Cell getCurrentCell()
UserInterface
getCurrentCell
in interface UserInterface
public Cell needCurrentCell()
UserInterface
needCurrentCell
in interface UserInterface
public void adjustReferencePoint(Cell cell, double cX, double cY)
UserInterface
adjustReferencePoint
in interface UserInterface
public void repaintAllWindows()
UserInterface
repaintAllWindows
in interface UserInterface
public int getDefaultTextSize()
UserInterface
getDefaultTextSize
in interface UserInterface
public EditWindow_ displayCell(Cell cell)
UserInterface
displayCell
in interface UserInterface
cell
- the Cell to be displayed.public void termLogging(ErrorLogger logger, boolean explain, boolean terminate)
termLogging
in interface UserInterface
public java.lang.String reportLog(ErrorLogger.MessageLog log, boolean showhigh, boolean separateWindow, int position)
UserInterface
reportLog
in interface UserInterface
public void showErrorMessage(java.lang.String message, java.lang.String title)
UserInterface
showErrorMessage
in interface UserInterface
message
- the error message to show.title
- the title of a dialog with the error message.public void showInformationMessage(java.lang.String message, java.lang.String title)
UserInterface
showInformationMessage
in interface UserInterface
message
- the message to show.title
- the title of a dialog with the message.public void showInformationMessage(javax.swing.JFrame frame, java.lang.String message, java.lang.String title)
UserInterface
showInformationMessage
in interface UserInterface
frame
- top window to use. It could be nullmessage
- the message to show.title
- the title of a dialog with the message.public void printMessage(java.lang.String message, boolean newLine)
UserInterface
printMessage
in interface UserInterface
message
- the message to show.newLine
- add new line after the messagepublic void saveMessages(java.lang.String filePath)
UserInterface
saveMessages
in interface UserInterface
filePath
- file to savepublic void beep()
UserInterface
beep
in interface UserInterface
public boolean confirmMessage(java.lang.Object message)
UserInterface
confirmMessage
in interface UserInterface
message
- the message to show.public int askForChoice(java.lang.String message, java.lang.String title, java.lang.String[] choices, java.lang.String defaultChoice)
UserInterface
askForChoice
in interface UserInterface
message
- the message to show.title
- the title of the dialog with the query.choices
- an array of choices to present, each in a button.defaultChoice
- the default choice.public java.lang.String askForInput(java.lang.Object message, java.lang.String title, java.lang.String def)
UserInterface
askForInput
in interface UserInterface
message
- the prompt message.title
- the title of a dialog with the message.def
- the default response.public void startProgressDialog(java.lang.String msg, java.lang.String filePath)
UserInterface
startProgressDialog
in interface UserInterface
msg
- the message to show in the progress dialog.filePath
- the file being read (null if not reading a file).public void stopProgressDialog()
UserInterface
stopProgressDialog
in interface UserInterface
public void setProgressValue(int pct)
UserInterface
setProgressValue
in interface UserInterface
pct
- the percentage done (from 0 to 100).public void setProgressNote(java.lang.String message)
UserInterface
setProgressNote
in interface UserInterface
message
- the new progress message.public java.lang.String getProgressNote()
UserInterface
getProgressNote
in interface UserInterface