net.quartzware
Class EditorWindow

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JInternalFrame
                          |
                          +--net.quartzware.InternalWindow
                                |
                                +--net.quartzware.EditorWindow

public class EditorWindow
extends InternalWindow

EditorWindow A window which displays the contents of a Resource Bundle and allows a user to edit the contents of a Resource Bundle. Default version of this window has 4 columns: key, value, parent value, comments,

See Also:
Serialized Form

Inner Class Summary
 class EditorWindow.PopupListener
          PopupListener This class listens for right clicks, then pops up the Context menu for the editor window.
 class EditorWindow.RBEditTableCellEditor
          RBEditTableCellEditor Custom table editor used to properly edit the different Value types.
 class EditorWindow.RBEditTableCellRenderer
          RBEditTableCellRenderer Custom table renderer used to properly display the different Value types.
 class EditorWindow.RBEditTableModel
          RBEditTableModel An interface that allows a JTable to directly access our data, rather than arranging our data in a generic form that the DefaultTableModel could digest.
 
Inner classes inherited from class net.quartzware.InternalWindow
InternalWindow.HiddenComponent
 
Inner classes inherited from class javax.swing.JInternalFrame
javax.swing.JInternalFrame.AccessibleJInternalFrame, javax.swing.JInternalFrame.JDesktopIcon
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Fields inherited from class javax.swing.JInternalFrame
closable, CONTENT_PANE_PROPERTY, desktopIcon, FRAME_ICON_PROPERTY, frameIcon, GLASS_PANE_PROPERTY, iconable, IS_CLOSED_PROPERTY, IS_ICON_PROPERTY, IS_MAXIMUM_PROPERTY, IS_SELECTED_PROPERTY, isClosed, isIcon, isMaximum, isSelected, LAYERED_PANE_PROPERTY, maximizable, MENU_BAR_PROPERTY, resizable, ROOT_PANE_PROPERTY, rootPane, rootPaneCheckingEnabled, title, TITLE_PROPERTY
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
EditorWindow(ResBundle rb)
          Constructs an Editor Window that will display the given ResBundle.
 
Method Summary
 void doAddListeners()
          Adds necessary listeners PRE: gui components have been initialized POST: gui componenets have listeners
 void doIcons()
          Adds icons to GUI components PRE: gui elements are not null POST: Icons have been added to gui components
 void doPopupMenu()
          Adds a popup menu to the EditorWindow PRE: table exists POST: table has a popup menu
 void doTheLayout(ResBundle rb)
          Lays out this window PRE: this class's attributes have been set POST: GUI components have been added to the window and arranged appropriately.
 void doToolbar()
          Lays out the toolbar PRE: gui elements are not null POST: toolbar has been initialized
 ResBundle getBundle()
          Returns the ResBundle which this EditorWindow draws
 javax.swing.JMenuItem getMenuItem()
          Return a menu item representing this window.
 java.awt.Dimension getPreferredSize()
           
 Entry getSelectedEntry()
          Gets the entry that is currently selected in the Editor Window
 java.lang.String getTabName()
          Return a string representing this window.
 java.lang.String getTooltipText()
          Return a descriptiong of this window.
 
Methods inherited from class net.quartzware.InternalWindow
getHiddenComponent
 
Methods inherited from class javax.swing.JInternalFrame
addImpl, addInternalFrameListener, createRootPane, dispose, fireInternalFrameEvent, getAccessibleContext, getContentPane, getDefaultCloseOperation, getDesktopIcon, getDesktopPane, getFrameIcon, getGlassPane, getJMenuBar, getLayer, getLayeredPane, getMenuBar, getRootPane, getTitle, getUI, getUIClassID, getWarningString, isClosable, isClosed, isIcon, isIconifiable, isMaximizable, isMaximum, isResizable, isRootPaneCheckingEnabled, isSelected, moveToBack, moveToFront, pack, paintComponent, paramString, remove, removeInternalFrameListener, reshape, setClosable, setClosed, setContentPane, setDefaultCloseOperation, setDesktopIcon, setFrameIcon, setGlassPane, setIcon, setIconifiable, setJMenuBar, setLayer, setLayeredPane, setLayout, setMaximizable, setMaximum, setMenuBar, setResizable, setRootPane, setRootPaneCheckingEnabled, setSelected, setTitle, setUI, setVisible, show, toBack, toFront, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getRegisteredKeyStrokes, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, processComponentKeyEvent, processFocusEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, setCursor, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hide, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EditorWindow

public EditorWindow(ResBundle rb)
Constructs an Editor Window that will display the given ResBundle.
Parameters:
rb - A resource bundle that the Editor Window can Display and Edit PRE: rb does not equal null. POST: class is created and GUI components have been added and arranged appropriately.
Method Detail

doTheLayout

public void doTheLayout(ResBundle rb)
Lays out this window PRE: this class's attributes have been set POST: GUI components have been added to the window and arranged appropriately.

doToolbar

public void doToolbar()
Lays out the toolbar PRE: gui elements are not null POST: toolbar has been initialized

doIcons

public void doIcons()
Adds icons to GUI components PRE: gui elements are not null POST: Icons have been added to gui components

doPopupMenu

public void doPopupMenu()
Adds a popup menu to the EditorWindow PRE: table exists POST: table has a popup menu

doAddListeners

public void doAddListeners()
Adds necessary listeners PRE: gui components have been initialized POST: gui componenets have listeners

getMenuItem

public javax.swing.JMenuItem getMenuItem()
Description copied from class: InternalWindow
Return a menu item representing this window.
Overrides:
getMenuItem in class InternalWindow

getTabName

public java.lang.String getTabName()
Description copied from class: InternalWindow
Return a string representing this window.
Overrides:
getTabName in class InternalWindow

getTooltipText

public java.lang.String getTooltipText()
Description copied from class: InternalWindow
Return a descriptiong of this window.
Overrides:
getTooltipText in class InternalWindow

getBundle

public ResBundle getBundle()
Returns the ResBundle which this EditorWindow draws
Returns:
the ResBundle

getPreferredSize

public java.awt.Dimension getPreferredSize()
Overrides:
getPreferredSize in class javax.swing.JComponent

getSelectedEntry

public Entry getSelectedEntry()
Gets the entry that is currently selected in the Editor Window