com.alee.examples.groups.docpane
Class DocumentPaneExample

java.lang.Object
  extended by com.alee.examples.content.DefaultExample
      extended by com.alee.examples.groups.docpane.DocumentPaneExample
All Implemented Interfaces:
Example

public class DocumentPaneExample
extends DefaultExample

Document pane example.

Author:
Mikle Garin

Field Summary
 
Fields inherited from class com.alee.examples.content.DefaultExample
cursor, lmb, mmb, rmb
 
Constructor Summary
DocumentPaneExample()
           
 
Method Summary
protected  void addDocuments(WebDocumentPane pane)
          Adds a few documents into the document pane.
 java.lang.String getDescription()
          Returns short example description.
 FeatureState getFeatureState()
          Returns current state of the component development.
 java.awt.Component getPreview(WebLookAndFeelDemo owner)
          Returns preview component for this example.
 java.lang.String getTitle()
          Returns example title.
 
Methods inherited from class com.alee.examples.content.DefaultExample
doWhenPresentationFinished, getPresentationSteps, getResource, getResources, isFillWidth, isPresentationAvailable, loadIcon, loadIcon, nextPresentationStep, startPresentation, stopPresentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentPaneExample

public DocumentPaneExample()
Method Detail

getTitle

public java.lang.String getTitle()
Returns example title. It might be used in examples tree or list.

Returns:
example title

getDescription

public java.lang.String getDescription()
Returns short example description. It might be used in some additional information fields.

Returns:
short example description

getFeatureState

public FeatureState getFeatureState()
Returns current state of the component development.

Specified by:
getFeatureState in interface Example
Overrides:
getFeatureState in class DefaultExample
Returns:
current state of the component development

getPreview

public java.awt.Component getPreview(WebLookAndFeelDemo owner)
Returns preview component for this example. There might be any possible component here, but make sure it fits the demo application.

Parameters:
owner - demo application main frame
Returns:
preview component

addDocuments

protected void addDocuments(WebDocumentPane pane)
Adds a few documents into the document pane.

Parameters:
pane - document pane