|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.maplesoft.client.Utility
Provides general helper methods for Client Applications. The class itself cannot be instantiated.
| Method Summary | |
static byte[] |
convertInput2Bytes(com.webpearls.pearlserver.api.PSAPDataInputStream input)
Converts the PSAPDataInputStream into a byte array |
static MapleStatement |
createDefaultStatement(java.awt.Frame frame,
boolean doPrompt)
Creates a MapleStatement object from the default host and user info. |
static java.awt.Image |
createImage(byte[] buffer)
Creates an Image from a data buffer that is either a Gif or JPEG. |
static java.awt.Image |
createImage(int width,
int height)
Create a white rectangular Image of size width x height |
static java.awt.Image |
createImage(int width,
int height,
java.awt.Color fillColor)
Create a white rectangular Image of size width x height |
static void |
main(java.lang.String[] args)
|
static void |
promptForDefaultLogin()
Displays a default Login Dialog that will prompt for Username and Password. |
static void |
promptForDefaultLogin(java.awt.Frame owner)
Displays a default Login Dialog that will prompt for Username and Password. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static byte[] convertInput2Bytes(com.webpearls.pearlserver.api.PSAPDataInputStream input)
throws MapleException
PSAPDataInputStream - inputMapleException - public static java.awt.Image createImage(byte[] buffer)
buffer - a byte array that represents either a Gif or JPEG
public static java.awt.Image createImage(int width,
int height)
width - The width of the imageheight - The height of the image
public static java.awt.Image createImage(int width,
int height,
java.awt.Color fillColor)
width - The width of the imageheight - The height of the imagefillColor - a Color object describing the color to use as fillpublic static void promptForDefaultLogin()
public static void promptForDefaultLogin(java.awt.Frame owner)
owner - The frame window that will be the owner of the modal
login dialog window.
public static MapleStatement createDefaultStatement(java.awt.Frame frame,
boolean doPrompt)
throws MapleStatementException
frame - Frame representing main program window that the modal
login dialog window will be associated with. The frame
can be null if there is not main windowdoPrompt - A boolean when true will always display a login dialog
and when false only displays a login dialog if the
UserInfo.getDefaultUser() is null.MapleStatementException - when no user info is defined or if the
username is blank.public static void main(java.lang.String[] args)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||