Jalopy 1.0b11

de.hunsicker.jalopy.swing
Class SettingsDialog

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.hunsicker.jalopy.swing.SettingsDialog
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, java.io.Serializable, javax.swing.WindowConstants

public class SettingsDialog
extends javax.swing.JDialog

The Jalopy settings dialog provides a graphical user interface to manage, display and interactively test and edit the available code convention and asorted configuration settings.

The dialog can be used from other Java applications as usual, in which case it acts like any other JDialog (i.e. as a secondary window). But it may be also invoked directly from the command line, magically serving as the main application window.

Version:
$Revision: 1.3 $
Author:
Marco Hunsicker
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
static java.lang.String ARG_ECLIPSE
          Command line option that indicates that the settings dialog was called from within Eclipse.
 
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
 
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
protected SettingsDialog(java.awt.Dialog owner)
          Creates a new SettingsDialog object.
protected SettingsDialog(java.awt.Frame owner)
          Creates a new SettingsDialog object.
 
Method Summary
static SettingsDialog create(java.awt.Window owner)
          Creates a new SettingsDialog object.
static SettingsDialog create(java.awt.Window owner, java.lang.String title)
          Creates a new SettingsDialog object.
 int getHeight()
           Overriden to dispatch the call to the top-level container if invoked from the command line.
 java.awt.Point getLocation()
           Overriden to dispatch the call to the top-level container if invoked from the command line.
 int getWidth()
           Overriden to dispatch the call to the top-level container if invoked from the command line.
 int getX()
           Overriden to dispatch the call to the top-level container if invoked from the command line.
 int getY()
           Overriden to dispatch the call to the top-level container if invoked from the command line.
static void main(java.lang.String[] argv)
          Displays the settings dialog.
 void setLocation(int x, int y)
           Overriden to dispatch the call to the top-level container if invoked from the command line.
 void show()
           Overriden to dispatch the call to the top-level container if invoked from the command line.
 void toFront()
           Overriden to dispatch the call to the top-level container if invoked from the command line.
 
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
 
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
 
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, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, 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, 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

ARG_ECLIPSE

public static final java.lang.String ARG_ECLIPSE
Command line option that indicates that the settings dialog was called from within Eclipse. Used to prevent the call to System.exit() upon closure.

See Also:
Constant Field Values
Constructor Detail

SettingsDialog

protected SettingsDialog(java.awt.Frame owner)
Creates a new SettingsDialog object.

Parameters:
owner - the frame from which the dialog is displayed.

SettingsDialog

protected SettingsDialog(java.awt.Dialog owner)
Creates a new SettingsDialog object.

Parameters:
owner - the dialog from which the dialog is displayed.
Method Detail

create

public static SettingsDialog create(java.awt.Window owner,
                                    java.lang.String title)
Creates a new SettingsDialog object.

Parameters:
owner - the window from which the dialog is displayed.
title - the string to display in the title bar.
Returns:
a new SettingsDialog object.
Since:
1.0b9

create

public static SettingsDialog create(java.awt.Window owner)
Creates a new SettingsDialog object.

Parameters:
owner - the window from which the dialog is displayed.
Returns:
a new SettingsDialog object.
Since:
1.0b9

getHeight

public int getHeight()
Overriden to dispatch the call to the top-level container if invoked from the command line.


setLocation

public void setLocation(int x,
                        int y)
Overriden to dispatch the call to the top-level container if invoked from the command line.


getLocation

public java.awt.Point getLocation()
Overriden to dispatch the call to the top-level container if invoked from the command line.


getWidth

public int getWidth()
Overriden to dispatch the call to the top-level container if invoked from the command line.


getX

public int getX()
Overriden to dispatch the call to the top-level container if invoked from the command line.


getY

public int getY()
Overriden to dispatch the call to the top-level container if invoked from the command line.


main

public static void main(java.lang.String[] argv)
Displays the settings dialog. The dialog then uses a JFrame as its top-level container.

Parameters:
argv - command line arguments.


show

public void show()
Overriden to dispatch the call to the top-level container if invoked from the command line.


toFront

public void toFront()
Overriden to dispatch the call to the top-level container if invoked from the command line.


Jalopy 1.0b11

Submit a bug or feature.

For further information and documentation, visit the official Jalopy website.
This page generated: November 13 2003