| 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
de.matthias_burbach.deputy.swing.DeputyFrame
Is the main GUI class of Deputy. Holds a map of actions that can be triggered by menu bar, tool bar and popup menu items outside of this class.
| Nested Class Summary | 
| Nested classes inherited from class javax.swing.JFrame | 
javax.swing.JFrame.AccessibleJFrame | 
| Nested classes inherited from class java.awt.Frame | 
java.awt.Frame.AccessibleAWTFrame | 
| 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 | 
ACTION_APPLY_RULES
The 'apply rules on currently opened Maven file' action.  | 
static java.lang.String | 
ACTION_DERIVE_ENFORCEMENTS_FROM_PROJECT
The 'derive enforcement rules from project dependencies' action.  | 
static java.lang.String | 
ACTION_EDIT_REPOSITORY_CONFIGS
The 'edit repository configs' action.  | 
static java.lang.String | 
ACTION_EXIT
The 'exit application' action.  | 
static java.lang.String | 
ACTION_EXPORT
The 'export currently opened Maven file as dependency graph' action.  | 
static java.lang.String | 
ACTION_HOMEPAGE
The 'Homepage' action.  | 
static java.lang.String | 
ACTION_NEW
The 'new Maven file' action.  | 
static java.lang.String | 
ACTION_OPEN
The 'open Maven file' action.  | 
static java.lang.String | 
ACTION_REFRESH_REPOSITORY_BROWSER
The 'refresh repository browser' action.  | 
static java.lang.String | 
ACTION_RELEASE_NOTES
The 'Release Notes' action.  | 
static java.lang.String | 
ACTION_REMOVE_DERIVED_RULES
The 'remove all derived rules' action.  | 
static java.lang.String | 
ACTION_REMOVE_SELECTED_RULES
The 'remove all currently selected rules' action.  | 
static java.lang.String | 
ACTION_REMOVE_SNAPSHOT_ENFORCEMENTS
The 'remove all SNAPSHOT enforcement rules' action.  | 
static java.lang.String | 
ACTION_SAVE
The 'save currently opened Maven file' action.  | 
static java.lang.String | 
ACTION_SAVE_AS
The 'save currently opened Maven file as...' action.  | 
static java.lang.String | 
ACTION_SHOW_ABOUT
The 'show about dialog' action.  | 
static java.lang.String | 
ACTION_SORT_SNAPSHOTS_TOPOLOGICALLY
The 'sort snapshots topologically' action.  | 
static java.lang.String | 
ACTION_TOGGLE_VIRTUAL_REPOSITORY
The 'sort snapshots topologically' action.  | 
| Fields inherited from class javax.swing.JFrame | 
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled | 
| Fields inherited from class java.awt.Frame | 
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR | 
| 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, HIDE_ON_CLOSE | 
| Fields inherited from interface java.awt.image.ImageObserver | 
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH | 
| Constructor Summary | |
DeputyFrame(Deputy deputy)
Constructs the frame.  | 
|
| Method Summary | |
 boolean | 
existsInRepositories(java.lang.String groupId,
                     java.lang.String artifactId,
                     java.lang.String version)
 | 
 void | 
findInRepositories(java.lang.String groupId,
                   java.lang.String artifactId,
                   java.lang.String version)
Finds the artifact in one of the repositories and expands the repository path to it accordingly.  | 
 javax.swing.Action | 
getAction(java.lang.String name)
 | 
static void | 
main(java.lang.String[] args)
Starts the application.  | 
 void | 
openProjectSite(Project project)
Launches the system's default browser with the site URL of the project passed in.  | 
 void | 
openRepositories()
(Re-)opens the repositories tree.  | 
 void | 
projectHasChanged()
Informs listeners that the currently opened project has changed state.  | 
| Methods inherited from class javax.swing.JFrame | 
addImpl, createRootPane, frameInit, 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.Frame | 
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated | 
| Methods inherited from class java.awt.Window | 
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, 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, 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, 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 | 
| Methods inherited from interface java.awt.MenuContainer | 
getFont, postEvent | 
| Field Detail | 
public static final java.lang.String ACTION_NEW
public static final java.lang.String ACTION_OPEN
public static final java.lang.String ACTION_SAVE
public static final java.lang.String ACTION_SAVE_AS
public static final java.lang.String ACTION_DERIVE_ENFORCEMENTS_FROM_PROJECT
public static final java.lang.String ACTION_EXPORT
public static final java.lang.String ACTION_EXIT
public static final java.lang.String ACTION_APPLY_RULES
public static final java.lang.String ACTION_REMOVE_SELECTED_RULES
public static final java.lang.String ACTION_REMOVE_SNAPSHOT_ENFORCEMENTS
public static final java.lang.String ACTION_REMOVE_DERIVED_RULES
public static final java.lang.String ACTION_SORT_SNAPSHOTS_TOPOLOGICALLY
public static final java.lang.String ACTION_EDIT_REPOSITORY_CONFIGS
public static final java.lang.String ACTION_TOGGLE_VIRTUAL_REPOSITORY
public static final java.lang.String ACTION_REFRESH_REPOSITORY_BROWSER
public static final java.lang.String ACTION_HOMEPAGE
public static final java.lang.String ACTION_RELEASE_NOTES
public static final java.lang.String ACTION_SHOW_ABOUT
| Constructor Detail | 
public DeputyFrame(Deputy deputy)
            throws java.lang.Exception
deputy - The core application.
java.lang.Exception - if anything goes unexpectedly wrong| Method Detail | 
public javax.swing.Action getAction(java.lang.String name)
name - The name of the action. Must be one of the
             ACTION_* constants defined in this class.
null
         if the name is invalid.public void openProjectSite(Project project)
project - The project whose site to open in the browser.public void projectHasChanged()
projectHasChanged in interface DeputyChangeListener
public void findInRepositories(java.lang.String groupId,
                               java.lang.String artifactId,
                               java.lang.String version)
groupId - The group id to look for.artifactId - The artifact id to look for.version - The version to look for.
public boolean existsInRepositories(java.lang.String groupId,
                                    java.lang.String artifactId,
                                    java.lang.String version)
groupId - The group id to look for.artifactId - The artifact id to look for.version - The version to look for.
true if it finds the artifact in one of the
         repositories.public void openRepositories()
public static void main(java.lang.String[] args)
args - Optional command line argument is -project=<file name>
             which will immediately load that file into Deputy on start
             up.
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||