|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ezware.common.SwingBean
com.ezware.dialog.task.TaskDialog
public class TaskDialog
| Nested Class Summary | |
|---|---|
static interface |
TaskDialog.Command
Task Dialog Command |
static class |
TaskDialog.CommandTag
Standard Command Tags, correspond directly to button tags in MigLayout |
static interface |
TaskDialog.Details
Task Dialog Details |
static interface |
TaskDialog.Footer
Task Dialog Footer |
static class |
TaskDialog.StandardCommand
Set of standard task dialog commands |
static class |
TaskDialog.StandardIcon
Set of standard dialog icons. |
| Constructor Summary | |
|---|---|
TaskDialog(java.lang.String title)
Creates a task dialog. Automatically pick up currently active window as a parent window |
|
| Method Summary | |
|---|---|
java.util.Collection<TaskDialog.Command> |
getCommands()
|
TaskDialog.Details |
getDetails()
|
javax.swing.JComponent |
getFixedComponent()
Returns dialog's component |
TaskDialog.Footer |
getFooter()
|
javax.swing.Icon |
getIcon()
Returns dialog's icon |
static TaskDialog |
getInstance(java.awt.Component source)
Returns task dialog instance associated with source component |
java.lang.String |
getInstruction()
Returns dialog instruction |
java.util.Locale |
getLocale()
Gets the Locale object that is associated with this window, if the locale has been set. |
java.lang.String |
getLocalizedString(java.lang.String key)
Returns a string localized using currently set locale |
java.awt.Dialog.ModalityType |
getModalityType()
|
TaskDialog.Command |
getResult()
|
java.lang.String |
getString(java.lang.String text)
Tries to use text as a key to get localized text. |
java.lang.String |
getText()
Returns Dialog text |
java.lang.String |
getTitle()
Returns the title of the dialog |
boolean |
isCommandsVisible()
|
static boolean |
isDebugMode()
True if debug mode is set. |
boolean |
isResizable()
|
boolean |
isVisible()
Determines whether this component should be visible when its parent is visible. |
static java.lang.String |
makeKey(java.lang.String text)
Makes resource bundle key based on the provided text |
void |
setCommands(java.util.Collection<TaskDialog.Command> commands)
|
void |
setCommands(TaskDialog.Command... commands)
|
void |
setCommandsVisible(boolean visible)
|
static void |
setDebugMode(boolean debug)
Sets debug mode for task dialog framework. |
void |
setFixedComponent(javax.swing.JComponent c)
Sets Dialog component |
void |
setIcon(javax.swing.Icon icon)
Sets icon for the dialog |
void |
setInstruction(java.lang.String instruction)
Sets dialog's instruction |
void |
setLocale(java.util.Locale locale)
Sets locale which will be used as dialog's locale |
void |
setModalityType(java.awt.Dialog.ModalityType modalityType)
|
void |
setResizable(boolean resizable)
|
void |
setResult(TaskDialog.Command result)
|
void |
setText(java.lang.String text)
Sets dialog text |
void |
setTitle(java.lang.String title)
Sets the title of the dialog |
void |
setVisible(boolean visible)
Shows or hides this Dialog depending on the value of parameter |
TaskDialog.Command |
show()
Shows the dialog |
java.lang.String |
toString()
|
| Methods inherited from class com.ezware.common.SwingBean |
|---|
addPropertyListener, addPropertyListener, firePropertyChange, removePropertyListener, removePropertyListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TaskDialog(java.lang.String title)
title - | Method Detail |
|---|
public static final java.lang.String makeKey(java.lang.String text)
text -
public static final TaskDialog getInstance(java.awt.Component source)
source -
public static final void setDebugMode(boolean debug)
debug - public static final boolean isDebugMode()
public java.awt.Dialog.ModalityType getModalityType()
public void setModalityType(java.awt.Dialog.ModalityType modalityType)
public boolean isResizable()
public void setResizable(boolean resizable)
public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
newLocale - null is allowed and will be interpreted as default localepublic java.lang.String getLocalizedString(java.lang.String key)
key -
public java.lang.String getString(java.lang.String text)
text -
public void setVisible(boolean visible)
Dialog depending on the value of parameter
visible - if true dialog is shownpublic boolean isVisible()
public TaskDialog.Command getResult()
public void setResult(TaskDialog.Command result)
public TaskDialog.Command show()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getTitle()
public void setTitle(java.lang.String title)
title - public void setIcon(javax.swing.Icon icon)
icon - public javax.swing.Icon getIcon()
public void setInstruction(java.lang.String instruction)
instruction - public java.lang.String getInstruction()
public void setText(java.lang.String text)
text - public java.lang.String getText()
public void setFixedComponent(javax.swing.JComponent c)
c - public javax.swing.JComponent getFixedComponent()
public TaskDialog.Details getDetails()
public TaskDialog.Footer getFooter()
public void setCommands(java.util.Collection<TaskDialog.Command> commands)
public void setCommands(TaskDialog.Command... commands)
public java.util.Collection<TaskDialog.Command> getCommands()
public boolean isCommandsVisible()
public void setCommandsVisible(boolean visible)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||