|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.gui.action.AbstractGUIAction
net.sf.doolin.gui.action.AbstractSimpleGUIAction
net.sf.doolin.gui.action.util.ActionAbout
public class ActionAbout
Standard action for displaying an "About..." dialog box.
The displayed dialog's title is set according to the key defined by the
title property.
The displayed dialog's text is set according to the key defined by the
text property. If html is set to true,
the text is rendered as HTML and any link is made active.
An image is put in the dialog is logo is not null.
The image is looked using the
and the requested
size is IconService.
IconSize.BIG
The position of the logo relatively to the text is set using the
layout property.
| Nested Class Summary | |
|---|---|
static class |
ActionAbout.ImagePosition
Positions for the image. |
| Field Summary | |
|---|---|
protected JDialog |
dialog
Displayed dialog |
| Constructor Summary | |
|---|---|
ActionAbout()
|
|
| Method Summary | |
|---|---|
protected Component |
createHTML(ActionContext context,
String dialogText)
Creates an HTML container for the text. |
protected void |
doExecute(ActionContext context)
Executes the action and throws any kind of error. |
ActionAbout.ImagePosition |
getLayout()
Gets the layout. |
String |
getLogo()
Gets the logo. |
String |
getText()
Gets the text. |
String |
getTitle()
Gets the title. |
boolean |
isHtml()
Checks if is html. |
void |
setHtml(boolean html)
Defines if the content is HTML" |
void |
setLayout(ActionAbout.ImagePosition layout)
Position of the image |
void |
setLogo(String logo)
ID for the logo image |
void |
setText(String text)
Expression for the text |
void |
setTitle(String title)
Sets the title. |
| Methods inherited from class net.sf.doolin.gui.action.AbstractSimpleGUIAction |
|---|
getIconId, getIconIDExpression, getId, getShortcut, getShortcutExpression, getTextExpression, getTip, getTipExpression, init, setBeanName, setIconId, setShortcut, setTip, toString |
| Methods inherited from class net.sf.doolin.gui.action.AbstractGUIAction |
|---|
execute, getActionContextData, getActionContextDataExtractor, getDisplayStateHandler, getIcon, getIconService, setActionContextDataExtractor, setDisplayStateHandler, setIconService |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected JDialog dialog
| Constructor Detail |
|---|
public ActionAbout()
| Method Detail |
|---|
public ActionAbout.ImagePosition getLayout()
public String getLogo()
public String getText()
public String getTitle()
getTitle in class AbstractSimpleGUIActionpublic boolean isHtml()
public void setHtml(boolean html)
html - the new htmlpublic void setLayout(ActionAbout.ImagePosition layout)
layout - the new layoutpublic void setLogo(String logo)
logo - the new logopublic void setText(String text)
text - the new textpublic void setTitle(String title)
AbstractSimpleGUIAction
setTitle in class AbstractSimpleGUIActiontitle - the new title
protected Component createHTML(ActionContext context,
String dialogText)
context - Action contextdialogText - Text to display
protected void doExecute(ActionContext context)
throws Exception
AbstractGUIAction
doExecute in class AbstractGUIActioncontext - the context
Exception - the exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||