de.uni_paderborn.fujaba.gxl
Class XSLTransformerDialog

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Window
              extended byjava.awt.Dialog
                  extended byjavax.swing.JDialog
                      extended byde.uni_paderborn.fujaba.gui.comp.FujabaDialog
                          extended byde.uni_paderborn.fujaba.gxl.XSLTransformerDialog
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ComponentListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants

public class XSLTransformerDialog
extends FujabaDialog

No comment provided by developer, please add a comment to improve documentation.

Version:
$Revision: 1.28 $
Author:
$Author: trinet $
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
 
Nested classes inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog
 
Nested classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private  javax.swing.JCheckBox addExport
          No comment provided by developer, please add a comment to improve documentation.
(package private)  javax.swing.JList appliedSheetList
          No comment provided by developer, please add a comment to improve documentation.
(package private)  javax.swing.JList availableSheetList
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JPanel buttonPanel
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JButton cancelButton
          No comment provided by developer, please add a comment to improve documentation.
private static int EXPORT
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.DefaultListModel exportModel
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JTextField file
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JFileChooser fileChooser
          No comment provided by developer, please add a comment to improve documentation.
private static int IMPORT
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.DefaultListModel importModel
          No comment provided by developer, please add a comment to improve documentation.
private  java.util.Iterator iter
          No comment provided by developer, please add a comment to improve documentation.
private static org.apache.log4j.Logger log
          log4j logging
private  javax.swing.JButton okButton
          No comment provided by developer, please add a comment to improve documentation.
private  int status
          No comment provided by developer, please add a comment to improve documentation.
private  java.io.File stylesheetDir
          No comment provided by developer, please add a comment to improve documentation.
private  java.io.File stylesheetList
          No comment provided by developer, please add a comment to improve documentation.
private  java.util.Hashtable stylesheets
          No comment provided by developer, please add a comment to improve documentation.
private  java.lang.String text
          No comment provided by developer, please add a comment to improve documentation.
 
Fields inherited from class de.uni_paderborn.fujaba.gui.comp.FujabaDialog
CANCEL, CLOSE, NO, OK
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Dialog
 
Fields inherited from class java.awt.Window
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
XSLTransformerDialog(javax.swing.JFrame parent, java.util.Iterator iter)
          Constructor for class XSLTransformerDialog
 
Method Summary
(package private)  void fileSelection()
          Creates a import/export dialog and updates the JTextField.
private  java.io.File[] getAppliedStylesheets()
          Generates an array of File out of the JList configured by user.
private  java.util.Vector getStylesheets()
          Returns a sorted list of all available stylesheets.
private  javax.swing.JPanel guiButtonPanel(java.lang.String text)
          Creates a panel with ok and cancel button.
private  javax.swing.JPanel guiLeftSide()
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JPanel guiMiddle()
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JPanel guiRightSide()
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JPanel guiSingleFilePanel()
          No comment provided by developer, please add a comment to improve documentation.
private  javax.swing.JPanel guiWorkPanel()
          No comment provided by developer, please add a comment to improve documentation.
private  void initGUI(java.lang.String text)
          No comment provided by developer, please add a comment to improve documentation.
(package private)  void okButtonActionPerformed(java.awt.event.ActionEvent e)
          Calling FileSaver or GXLImport depending on internal status.
private  void readStylesheets()
          Reads in list of all available stylesheets and stores them in a Hashtable.
private  org.w3c.dom.Element readXMLFile(java.io.File xmlFile)
          Returns root element of XML file which contains the list of available stylesheets.
 void showExportDialog()
          Sets title and status for export dialog.
 void showImportDialog()
          Sets title and status for import dialog.
 
Methods inherited from class de.uni_paderborn.fujaba.gui.comp.FujabaDialog
actionCancelButton, actionCloseButton, actionHelpButton, actionOkButton, componentHidden, componentMoved, componentResized, componentShown, getButtonCancel, getButtonClose, getButtonHelp, getButtonOk, getParentFrame, getPressedButton, guiBuild, guiPanelCloseHelp, guiPanelOkCancelHelp, makeLabeledPanel, parse, showCentered, unparse
 
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Dialog
addNotify, dispose, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

private static final transient org.apache.log4j.Logger log
log4j logging


EXPORT

private static final int EXPORT
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

IMPORT

private static final int IMPORT
No comment provided by developer, please add a comment to improve documentation.

See Also:
Constant Field Values

status

private int status
No comment provided by developer, please add a comment to improve documentation.


stylesheets

private java.util.Hashtable stylesheets
No comment provided by developer, please add a comment to improve documentation.


stylesheetDir

private java.io.File stylesheetDir
No comment provided by developer, please add a comment to improve documentation.


stylesheetList

private java.io.File stylesheetList
No comment provided by developer, please add a comment to improve documentation.


iter

private java.util.Iterator iter
No comment provided by developer, please add a comment to improve documentation.


text

private java.lang.String text
No comment provided by developer, please add a comment to improve documentation.


fileChooser

private javax.swing.JFileChooser fileChooser
No comment provided by developer, please add a comment to improve documentation.


file

private javax.swing.JTextField file
No comment provided by developer, please add a comment to improve documentation.


buttonPanel

private javax.swing.JPanel buttonPanel
No comment provided by developer, please add a comment to improve documentation.


okButton

private javax.swing.JButton okButton
No comment provided by developer, please add a comment to improve documentation.


cancelButton

private javax.swing.JButton cancelButton
No comment provided by developer, please add a comment to improve documentation.


availableSheetList

javax.swing.JList availableSheetList
No comment provided by developer, please add a comment to improve documentation.


appliedSheetList

javax.swing.JList appliedSheetList
No comment provided by developer, please add a comment to improve documentation.


importModel

private javax.swing.DefaultListModel importModel
No comment provided by developer, please add a comment to improve documentation.


exportModel

private javax.swing.DefaultListModel exportModel
No comment provided by developer, please add a comment to improve documentation.


addExport

private javax.swing.JCheckBox addExport
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

XSLTransformerDialog

public XSLTransformerDialog(javax.swing.JFrame parent,
                            java.util.Iterator iter)
Constructor for class XSLTransformerDialog

Parameters:
parent - No description provided
iter - No description provided
Method Detail

showImportDialog

public void showImportDialog()
Sets title and status for import dialog.


showExportDialog

public void showExportDialog()
Sets title and status for export dialog.


initGUI

private void initGUI(java.lang.String text)
No comment provided by developer, please add a comment to improve documentation.

Parameters:
text - No description provided

guiSingleFilePanel

private javax.swing.JPanel guiSingleFilePanel()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

guiWorkPanel

private javax.swing.JPanel guiWorkPanel()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

guiLeftSide

private javax.swing.JPanel guiLeftSide()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

guiRightSide

private javax.swing.JPanel guiRightSide()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

guiMiddle

private javax.swing.JPanel guiMiddle()
No comment provided by developer, please add a comment to improve documentation.

Returns:
No description provided

getStylesheets

private java.util.Vector getStylesheets()
Returns a sorted list of all available stylesheets.

Returns:
The stylesheets value

guiButtonPanel

private javax.swing.JPanel guiButtonPanel(java.lang.String text)
Creates a panel with ok and cancel button.

Parameters:
text - No description provided
Returns:
No description provided

fileSelection

void fileSelection()
Creates a import/export dialog and updates the JTextField. (depending on internal status)


readXMLFile

private org.w3c.dom.Element readXMLFile(java.io.File xmlFile)
Returns root element of XML file which contains the list of available stylesheets.

Parameters:
xmlFile - No description provided
Returns:
No description provided

getAppliedStylesheets

private java.io.File[] getAppliedStylesheets()
Generates an array of File out of the JList configured by user.

Returns:
The appliedStylesheets value

okButtonActionPerformed

void okButtonActionPerformed(java.awt.event.ActionEvent e)
Calling FileSaver or GXLImport depending on internal status.

Parameters:
e - No description provided

readStylesheets

private void readStylesheets()
Reads in list of all available stylesheets and stores them in a Hashtable.