|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.lyra.Widgets.RapidDialog
public class RapidDialog
While Java Swing provides static functions to create advanced dialogs for a myriad of purposes creating all the elements necessary may not always be consistent if not centrally controlled. This class generates language controlled dialogs for our use.
Field Summary | |
---|---|
private java.util.Map<java.lang.String,java.lang.String> |
Lang
|
(package private) java.lang.String[] |
Options
|
Constructor Summary | |
---|---|
RapidDialog(java.util.Map<java.lang.String,java.lang.String> lang)
Basic constructor which will establish the elements necessary for the dialogs to be generated using less code. |
Method Summary | |
---|---|
private java.lang.String |
createComplex(java.awt.Window parent,
javax.swing.ImageIcon icon,
java.lang.String title,
java.lang.String message,
java.lang.String... options)
Creates more complex dialogs for use in the application. |
private void |
createDialog(java.awt.Window parent,
javax.swing.ImageIcon icon,
java.lang.String title,
java.lang.String message)
This method actually creates the dialogs. |
boolean |
noticeAlbumArt(java.awt.Window parent)
This notice is used exclusively when the application has failed to connect to the host and cannot continue from that point forward. |
void |
noticeDialog(java.awt.Window parent,
java.lang.String message)
Generates a Notice Dialog used in various components of the site. |
void |
noticeFail(java.awt.Window parent,
java.lang.String message)
Generates a Failed Operation Dialog used in various components of the site. |
boolean |
noticeHostFail(java.awt.Window parent)
This notice is used exclusively when the application has failed to connect to the host and cannot continue from that point forward. |
boolean |
noticeHostLost(java.awt.Window parent)
This notice is used exclusively when the application has lost its connection with the host. |
void |
noticePass(java.awt.Window parent,
java.lang.String message)
Generates a Successful Operation Dialog used in various components of the site. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Map<java.lang.String,java.lang.String> Lang
java.lang.String[] Options
Constructor Detail |
---|
public RapidDialog(java.util.Map<java.lang.String,java.lang.String> lang)
lang
- Map of Strings containing language elements.Method Detail |
---|
private void createDialog(java.awt.Window parent, javax.swing.ImageIcon icon, java.lang.String title, java.lang.String message)
parent
- Parent window to block.icon
- Icon to display.title
- Title of the dialog.message
- Message to display.public void noticeDialog(java.awt.Window parent, java.lang.String message)
parent
- Parent Window component.message
- Message to Display.public void noticePass(java.awt.Window parent, java.lang.String message)
parent
- Parent Window component.message
- Message to Display.public void noticeFail(java.awt.Window parent, java.lang.String message)
parent
- Parent Window component.message
- Message to Display.private java.lang.String createComplex(java.awt.Window parent, javax.swing.ImageIcon icon, java.lang.String title, java.lang.String message, java.lang.String... options)
parent
- Parent window to block.icon
- Icon to display.title
- Title of the dialog.message
- Message to display.options
- Array of strings containing possible choices.
public boolean noticeHostFail(java.awt.Window parent)
parent
- Parent Window component.
public boolean noticeHostLost(java.awt.Window parent)
parent
- Parent Window component.
public boolean noticeAlbumArt(java.awt.Window parent)
parent
- Parent Window component.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |