|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JEditorPane
net.sf.doolin.gui.template.component.JTemplate
public class JTemplate
Component that displays a template.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JEditorPane |
|---|
JEditorPane.AccessibleJEditorPane, JEditorPane.AccessibleJEditorPaneHTML, JEditorPane.JEditorPaneAccessibleHypertextSupport |
| Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
|---|
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| 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.JEditorPane |
|---|
HONOR_DISPLAY_PROPERTIES, W3C_LENGTH_UNITS |
| Fields inherited from class javax.swing.text.JTextComponent |
|---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| 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 | |
|---|---|
JTemplate()
Constructor. |
|
| Method Summary | |
|---|---|
protected HyperlinkListener |
createListener()
Creates an hyperlink listener which is suitable for the HTML page. |
protected void |
doAction(String actionId,
Map<String,String> params)
Executes a command. |
ActionCallback |
getActionCallback()
Returns the associated action callback. |
Map<String,Object> |
getContext()
Gets the context. |
String |
getFormat()
Gets the format. |
String |
getPath()
Gets the path. |
TemplateManager |
getTemplateManager()
Gets the template manager. |
String |
getType()
Gets the type. |
void |
setActionCallback(ActionCallback actionCallback)
Sets the associated action callback that will be called for any action URL in the generated template. |
void |
setContext(Map<String,Object> context)
Sets the context. |
void |
setFormat(String format)
Sets the format. |
void |
setPath(String path)
Sets the path. |
void |
setTemplateManager(TemplateManager templateManager)
Sets the template manager. |
void |
setType(String type)
Sets the type. |
void |
setup()
Setup the template content. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JTemplate()
| Method Detail |
|---|
public ActionCallback getActionCallback()
setActionCallback(ActionCallback)public Map<String,Object> getContext()
public String getFormat()
public String getPath()
public TemplateManager getTemplateManager()
public String getType()
public void setActionCallback(ActionCallback actionCallback)
action URL in the generated template.
actionCallback - Action callbackpublic void setContext(Map<String,Object> context)
context - Context used to fill the templatepublic void setFormat(String format)
format - Format to display (MIME type)public void setPath(String path)
path - Path to the templatepublic void setTemplateManager(TemplateManager templateManager)
templateManager - the new template managerpublic void setType(String type)
type - Type of templatepublic void setup()
protected HyperlinkListener createListener()
action pseudo-protocol and forwards every
other link to the browser.
URLUtils.registerURLStreamHandler(String, java.net.URLStreamHandler),
ActionURLStreamHandler,
DesktopService.browse(URL)
protected void doAction(String actionId,
Map<String,String> params)
actionId - ID of the action to execute.params - Parameters for the execution context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||