|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--y.util.DetailedMessagePanel
This Panel can display short and long versions of an error message. You can either use it as a separate panel or make use of the static methods to make it pop up as a dialog directly.
Field Summary |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
|
DetailedMessagePanel(Exception e)
Creates a new instance of DetailedMessagePanel |
protected |
DetailedMessagePanel(String title,
boolean okButton,
Exception e)
Creates a new instance of DetailedMessagePanel |
|
DetailedMessagePanel(String title,
String shortText,
String longText,
boolean okButton)
|
Method Summary | |
void |
addActionListener(ActionListener listener)
Registers ActionListener to receive events. |
protected JButton |
createButton(Action a)
|
protected JComponent |
createButtonBar()
|
protected Action |
createDetailsAction()
|
protected JButton |
createDetailsButton(Action a)
|
protected JComponent |
createLongComponent(String shortText,
String longText)
|
protected Action |
createOkAction()
|
protected JComponent |
createShortComponent(String shortText)
|
protected JComponent |
createTitleComponent(String title)
|
Exception |
getException()
Getter for property exception. |
String |
getLongText()
Getter for property longText. |
int |
getMaxWidth()
Getter for property maxWidth. |
String |
getShortText()
Getter for property shortText. |
String |
getTitle()
Getter for property title. |
protected void |
initDetailsAction(Action a)
|
protected void |
initOkAction(Action a)
|
boolean |
isDetailsShowing()
Getter for property detailsShowing. |
void |
removeActionListener(ActionListener listener)
Removes ActionListener from the list of listeners. |
void |
setDetailsShowing(boolean detailsShowing)
Setter for property detailsShowing. |
void |
setMaxWidth(int maxWidth)
Setter for property maxWidth. |
void |
show(Component parent,
int messagetype,
String dialogTitle)
|
static void |
show(Component parent,
String dialogTitle,
Exception e)
|
static void |
show(Component parent,
String dialogTitle,
int messagetype,
Exception e)
|
static void |
show(Component parent,
String dialogTitle,
int messagetype,
String label,
String text)
|
static void |
show(Component parent,
String dialogTitle,
String label,
String text)
|
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DetailedMessagePanel(Exception e)
protected DetailedMessagePanel(String title, boolean okButton, Exception e)
public DetailedMessagePanel(String title, String shortText, String longText, boolean okButton)
Method Detail |
protected Action createDetailsAction()
protected Action createOkAction()
protected void initDetailsAction(Action a)
protected void initOkAction(Action a)
protected JComponent createTitleComponent(String title)
protected JComponent createShortComponent(String shortText)
protected JComponent createLongComponent(String shortText, String longText)
protected JComponent createButtonBar()
protected JButton createButton(Action a)
protected JButton createDetailsButton(Action a)
public Exception getException()
public String getShortText()
public String getLongText()
public String getTitle()
public boolean isDetailsShowing()
public void setDetailsShowing(boolean detailsShowing)
detailsShowing
- New value of property detailsShowing.public void show(Component parent, int messagetype, String dialogTitle)
public static void show(Component parent, String dialogTitle, Exception e)
public static void show(Component parent, String dialogTitle, int messagetype, Exception e)
public static void show(Component parent, String dialogTitle, String label, String text)
public static void show(Component parent, String dialogTitle, int messagetype, String label, String text)
public void addActionListener(ActionListener listener)
listener
- The listener to register.public void removeActionListener(ActionListener listener)
listener
- The listener to remove.public int getMaxWidth()
public void setMaxWidth(int maxWidth)
maxWidth
- New value of property maxWidth.
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |