|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
unbbayes.gui.util.TextAreaDialog
public class TextAreaDialog
This is a default dialog containing a text field to show string messages. This can be useful to present a simple text message to a user.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
---|
DEFAULT_MODALITY_TYPE |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
TextAreaDialog()
Creates a non-modal dialog without a title and without a specified Frame owner. |
|
TextAreaDialog(Dialog owner)
Creates a non-modal dialog without a title with the specified Dialog as its owner. |
|
TextAreaDialog(Dialog owner,
boolean modal)
Creates a modal or non-modal dialog without a title and with the specified owner dialog. |
|
TextAreaDialog(Dialog owner,
String title)
Creates a non-modal dialog with the specified title and with the specified owner dialog. |
|
TextAreaDialog(Dialog owner,
String title,
boolean modal)
Creates a modal or non-modal dialog with the specified title and the specified owner frame. |
|
TextAreaDialog(Dialog owner,
String title,
boolean modal,
GraphicsConfiguration gc)
Creates a modal or non-modal dialog with the specified title, owner Dialog, and GraphicsConfiguration. |
|
TextAreaDialog(Frame owner)
Creates a non-modal dialog without a title with the specified Frame as its owner. |
|
TextAreaDialog(Frame owner,
boolean modal)
Creates a modal or non-modal dialog without a title and with the specified owner Frame. |
|
TextAreaDialog(Frame owner,
String title)
Creates a non-modal dialog with the specified title and with the specified owner frame. |
|
TextAreaDialog(Frame owner,
String title,
boolean modal)
Creates a modal or non-modal dialog with the specified title and the specified owner Frame. |
|
TextAreaDialog(Frame owner,
String title,
boolean modal,
GraphicsConfiguration gc)
Creates a modal or non-modal dialog with the specified title, owner Frame, and GraphicsConfiguration. |
Methods inherited from class java.awt.Dialog |
---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextAreaDialog() throws HeadlessException
HeadlessException
- : if GraphicsEnvironment.isHeadless() returns truepublic TextAreaDialog(Frame owner) throws HeadlessException
owner
-
HeadlessException
- : if GraphicsEnvironment.isHeadless() returns truepublic TextAreaDialog(Dialog owner) throws HeadlessException
owner
-
HeadlessException
- : if GraphicsEnvironment.isHeadless() returns truepublic TextAreaDialog(Frame owner, boolean modal) throws HeadlessException
owner
- modal
- : true for a modal dialog, false for one that allows others windows to be active at the same time
HeadlessException
- : if GraphicsEnvironment.isHeadless() returns truepublic TextAreaDialog(Frame owner, String title) throws HeadlessException
owner
- title
-
HeadlessException
- : if GraphicsEnvironment.isHeadless() returns truepublic TextAreaDialog(Dialog owner, boolean modal) throws HeadlessException
owner
- modal
- : true for a modal dialog, false for one that allows others windows to be active at the same time
HeadlessException
- : if GraphicsEnvironment.isHeadless() returns truepublic TextAreaDialog(Dialog owner, String title) throws HeadlessException
owner
- title
-
HeadlessException
- : if GraphicsEnvironment.isHeadless() returns truepublic TextAreaDialog(Frame owner, String title, boolean modal) throws HeadlessException
owner
- title
- modal
- : true for a modal dialog, false for one that allows others windows to be active at the same time
HeadlessException
- : if GraphicsEnvironment.isHeadless() returns truepublic TextAreaDialog(Dialog owner, String title, boolean modal) throws HeadlessException
owner
- title
- modal
- : true for a modal dialog, false for one that allows others windows to be active at the same time
HeadlessException
- : if GraphicsEnvironment.isHeadless() returns truepublic TextAreaDialog(Frame owner, String title, boolean modal, GraphicsConfiguration gc)
owner
- title
- modal
- : true for a modal dialog, false for one that allows others windows to be active at the same timegc
-
HeadlessException
- : if GraphicsEnvironment.isHeadless() returns truepublic TextAreaDialog(Dialog owner, String title, boolean modal, GraphicsConfiguration gc) throws HeadlessException
owner
- title
- modal
- : true for a modal dialog, false for one that allows others windows to be active at the same timegc
-
HeadlessException
- : if GraphicsEnvironment.isHeadless() returns trueMethod Detail |
---|
protected void initLog()
protected void previewPrintText(JTextArea texto, JDialog dialog)
getPreviewButton()
public void printText(JTextArea textArea)
JTextArea
.
This is called inside the action listener of getPrintButton()
textArea
- The text area containing the log.public ResourceBundle getResource()
public void setResource(ResourceBundle resource)
resource
- the resource to setpublic JTextArea getTextArea()
public void setTextArea(JTextArea textArea)
textArea
- the textArea to setpublic String getTextContent()
JTextComponent.getText()
from getTextArea()
getTextArea()
public void setTextContent(String textContent)
JTextComponent.setText(String)
from getTextArea()
textContent
- the logContent to setgetTextArea()
public JScrollPane getJspText()
public void setJspText(JScrollPane jspText)
jspText
- the jspText to setpublic IconController getIconController()
public void setIconController(IconController iconController)
iconController
- the iconController to setpublic JPanel getTopPanel()
public void setTopPanel(JPanel topPanel)
topPanel
- the topPanel to setpublic JButton getPrintButton()
public void setPrintButton(JButton printButton)
printButton
- the printButton to setpublic JButton getPreviewButton()
public void setPreviewButton(JButton previewButton)
previewButton
- the previewButton to setpublic JPanel getButtonPanel()
public void setButtonPanel(JPanel buttonPanel)
buttonPanel
- the buttonPanel to setpublic JPanel getBottomPanel()
public void setBottomPanel(JPanel bottomPanel)
bottomPanel
- the bottomPanel to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |