com.sdm.quasar.client.showcase.swing.util
Class ShowcaseUtilities

java.lang.Object
  extended bycom.sdm.quasar.client.showcase.swing.util.ShowcaseUtilities

public class ShowcaseUtilities
extends java.lang.Object

Utility class for the swing showcase. It offers the simple creation of a browser component (see createHtmlTextPane(URL)) which can also be created to be a part of a JSplitPane combined with another JComponent.

Version:
1.0
Author:
Thomas Wolf, sd&m AG, Martin Haft, sd&m AG, Bernd Olleck, sd&m AG

Constructor Summary
ShowcaseUtilities()
           
 
Method Summary
static javax.swing.JComponent createHtmlTextPane(java.net.URL url)
          Creates a miniature html browser (MiniBrowser) that initially displays the given url.
static javax.swing.JComponent createInfoContentSplit(java.net.URL infoUrl, javax.swing.JComponent content)
          Creates a split pane with the where the upper part is filled by a html browser (created using createHtmlTextPane(URL)) and the lower part with the given content component.
static javax.swing.JComponent createInfoContentSplit(java.net.URL infoUrl, javax.swing.JComponent content, int deviderLocation)
          Creates a split pane with the where the upper part is filled by a html browser (created using createHtmlTextPane(URL)) and the lower part with the given content component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShowcaseUtilities

public ShowcaseUtilities()
Method Detail

createInfoContentSplit

public static javax.swing.JComponent createInfoContentSplit(java.net.URL infoUrl,
                                                            javax.swing.JComponent content,
                                                            int deviderLocation)
Creates a split pane with the where the upper part is filled by a html browser (created using createHtmlTextPane(URL)) and the lower part with the given content component. The divider location is initially set to the given value.

Parameters:
infoUrl - the url that provides the content for the html browser
content - the content component that is displayed below the browser
deviderLocation - the initial divider location
Returns:
the component that represents the split pane

createInfoContentSplit

public static javax.swing.JComponent createInfoContentSplit(java.net.URL infoUrl,
                                                            javax.swing.JComponent content)
Creates a split pane with the where the upper part is filled by a html browser (created using createHtmlTextPane(URL)) and the lower part with the given content component. This implementation calls createInfoContentSplit(URL, JComponent, int) with a divider location of 300.

Parameters:
infoUrl - the url that provides the content for the html browser
content - the content component that is displayed below the browser
Returns:
the component that represents the split pane

createHtmlTextPane

public static javax.swing.JComponent createHtmlTextPane(java.net.URL url)
Creates a miniature html browser (MiniBrowser) that initially displays the given url.

Parameters:
url - the url to display in the browser
Returns:
the component representing the browser