|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ccg.swing.RStockDialogs
public class RStockDialogs
Not ready for prime time - please ignore for now.
class Example {
public void main(String[] args) {
com.ccg.swing.RStockDialogs o = new com.ccg.swing.RStockDialogs();
System.out.println(o);
}
}
| Constructor Summary | |
|---|---|
RStockDialogs(Component f)
Initializes object to... |
|
RStockDialogs(Component f,
ResourceBundle rb)
|
|
| Method Summary | |
|---|---|
JDialog |
createOKCancel(JComponent parent,
JComponent c,
String tag)
Create a OK/cancel Dialog component. |
ResourceBundle |
getResourceBundle()
Get the resource bundle to retrieve strings from |
void |
setResourceBundle(ResourceBundle val)
Set the resource bundle to retrieve strings from |
void |
showMessage(String tag,
Object[] args)
Display a simple message dialog based on the resource bundle properties. |
boolean |
showOKCancel(JComponent c,
String tag)
Create a OK/cancel Dialog component. |
boolean |
showOKCancel(String tag,
Object[] args)
Display a simple message dialog asking the user a OK/cancel question. |
boolean |
showYesNo(String tag,
Object[] args)
Display a simple message dialog asking the user a yes/no question. |
int |
showYesNoCancel(String tag,
Object[] args)
Display a simple message dialog asking the user a yes/no/cancel question. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RStockDialogs(Component f)
public RStockDialogs(Component f,
ResourceBundle rb)
| Method Detail |
|---|
public void setResourceBundle(ResourceBundle val)
resource bundle to retrieve strings from
val - New ResourceBundle value to assign.getResourceBundle()public ResourceBundle getResourceBundle()
resource bundle to retrieve strings from
setResourceBundle(java.util.ResourceBundle)
public void showMessage(String tag,
Object[] args)
This is a very simple way in which to display a localized
message. Using this method, you pass a "tag" value that will be
used to look for certain properties in your resource bundle. For
example, if you wanted to display a error message, you could use
something like "err101" as your tag, then all message information
would be retrieved from the associated getResourceBundle. The following properties are recognized:
MessageFormat class.Note, invoking this method throws up a modal dialog that blocks you until the user press the "OK" button (or however its labeled).
tag - The leading "tag" which is used to look for attributes as
described above (must not be null).args - Pass null here unless you need to have variables subsituted in
your "TAG.text" text.JOptionPane
public boolean showYesNo(String tag,
Object[] args)
This is a very simple way in which to display a localized yes/no question to the user. Using this method, you pass a "tag" value that will be used to look for certain properties in your resource bundle. For example, if you wanted to display a question that had a resource values like:
q101.text=Are you happy? q101.title=Are you happy? q101.type=infoYou would specify a "tag" of "q101". The following properties are recognized:
MessageFormat class.Note, invoking this method throws up a modal dialog that blocks you until the user press responds.
tag - The leading "tag" which is used to look for attributes as
described above (must not be null).args - Pass null here unless you need to have variables subsituted in
your "TAG.text" text.
JOptionPane
public int showYesNoCancel(String tag,
Object[] args)
This is a very simple way in which to display a localized yes/no/cancel question to the user. Using this method, you pass a "tag" value that will be used to look for certain properties in your resource bundle. For example, if you wanted to display a question that had a resource values like:
q101.text=Save changes before quitting? q101.title=About to Quit q101.type=warnYou would specify a "tag" of "q101". The following properties are recognized:
MessageFormat class.Note, invoking this method throws up a modal dialog that blocks you until the user press responds.
tag - The leading "tag" which is used to look for attributes as
described above (must not be null).args - Pass null here unless you need to have variables subsituted in
your "TAG.text" text.
JOptionPane.YES_OPTION,
JOptionPane.NO_OPTION, JOptionPane.CANCEL_OPTION, JOptionPane.CLOSED_OPTION.JOptionPane
public boolean showOKCancel(String tag,
Object[] args)
This is a very simple way in which to display a localized OK/cancel question to the user. Using this method, you pass a "tag" value that will be used to look for certain properties in your resource bundle. For example, if you wanted to display a question that had a resource values like:
q101.text=I'd like to transfer all assets to Iceland. q101.title=Asset Transfer q101.type=warnYou would specify a "tag" of "q101". The following properties are recognized:
MessageFormat class.Note, invoking this method throws up a modal dialog that blocks you until the user responds.
tag - The leading "tag" which is used to look for attributes as
described above (must not be null).args - Pass null here unless you need to have variables subsituted in
your "TAG.text" text.
JOptionPane
public JDialog createOKCancel(JComponent parent,
JComponent c,
String tag)
This is a very simple way in which to display a localized OK/cancel question to the user. Using this method, you pass a "tag" value that will be used to look for certain properties in your resource bundle. For example, if you wanted to display a question that had a resource values like:
q101.text=I'd like to transfer all assets to Iceland. q101.title=Asset Transfer q101.type=warnYou would specify a "tag" of "q101". The following properties are recognized:
MessageFormat class.Note, invoking this method throws up a modal dialog that blocks you until the user responds.
tag - The leading "tag" which is used to look for attributes as
described above (must not be null).args - Pass null here unless you need to have variables subsituted in
your "TAG.text" text.
JOptionPane
public boolean showOKCancel(JComponent c,
String tag)
This is a very simple way in which to display a localized OK/cancel question to the user. Using this method, you pass a "tag" value that will be used to look for certain properties in your resource bundle. For example, if you wanted to display a question that had a resource values like:
q101.text=I'd like to transfer all assets to Iceland. q101.title=Asset Transfer q101.type=warnYou would specify a "tag" of "q101". The following properties are recognized:
MessageFormat class.Note, invoking this method throws up a modal dialog that blocks you until the user responds.
tag - The leading "tag" which is used to look for attributes as
described above (must not be null).args - Pass null here unless you need to have variables subsituted in
your "TAG.text" text.
JOptionPane
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||