com.jiexplorer.gui.thumb
Class JIThumbnailList

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JList
                  extended by com.jiexplorer.gui.thumb.JIThumbnailList
All Implemented Interfaces:
JIObservable, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.Scrollable

public final class JIThumbnailList
extends javax.swing.JList
implements JIObservable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JList
javax.swing.JList.AccessibleJList, javax.swing.JList.DropLocation
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class javax.swing.JList
HORIZONTAL_WRAP, VERTICAL, VERTICAL_WRAP
 
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
 
Fields inherited from interface com.jiexplorer.util.JIObservable
ADD_FILE, CATAGORY_CHANGED, DATE_CHANGED, DIRECTORY_LOADED, DIRECTORY_LOADING, DIRECTORY_SIZE, KEYWORDS_CHANGED, PROGERSS_CANCELLED, PROGERSS_FINISHED, PROGERSS_START, SECTION_CHANGED, SELECT_DIRECTORY
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JIThumbnailList(java.awt.Frame jie, javax.swing.JScrollPane viewport)
           
JIThumbnailList(java.awt.Frame jie, javax.swing.JScrollPane viewport, int scrollMode)
           
JIThumbnailList(java.awt.Frame jie, javax.swing.JScrollPane viewport, int scrollMode, OrderedDiskObjectList dObjList)
           
JIThumbnailList(java.awt.Frame jie, javax.swing.JScrollPane viewport, OrderedDiskObjectList dObjList)
           
 
Method Summary
 void addObserver(JIObserver o)
          Adds an observer to the set of observers for this object, provided that it is not the same as some observer already in the set.
 void clearChanged()
          Indicates that this object has no longer changed, or that it has already notified all of its observers of its most recent change, so that the hasChanged method will now return false.
 int countObservers()
          Returns the number of observers of this Observable object.
 void deleteObserver(JIObserver o)
          Deletes an observer from the set of observers of this object.
 void deleteObservers()
          Clears the observer list so that this object no longer has any observers.
 void editingCanceled()
           
 void editingStart()
           
 void editingStopped(java.lang.String newName)
           
 java.awt.Frame getFrame()
           
 int getLastSelectedIndex()
           
 java.awt.Rectangle getScreenLableBounds(int i)
           
 int getScrollableUnitIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
           
 DiskObject[] getSelectedValues()
           
 JIListModel getThumbnailListModel()
           
 java.lang.String getToolTipText(java.awt.event.MouseEvent evt)
           
 javax.swing.JViewport getViewPort()
           
 boolean hasChanged()
          Tests if this object has changed.
 boolean isEditing()
           
 void jiThumbnail_keyPressed(java.awt.event.KeyEvent e)
           
 void lastPage(java.awt.event.KeyEvent e)
           
 void listMouseClicked(java.awt.event.MouseEvent e)
           
 void listMouseEvent(java.awt.event.MouseEvent e)
           
protected  void listValueChanged(javax.swing.event.ListSelectionEvent e)
           
 void nextPage(java.awt.event.KeyEvent e)
           
 void notifyObservers()
          If this object has changed, as indicated by the hasChanged method, then notify all of its observers and then call the clearChanged method to indicate that this object has no longer changed.
 void notifyObservers(java.lang.Object arg)
          If this object has changed, as indicated by the hasChanged method, then notify all of its observers and then call the clearChanged method to indicate that this object has no longer changed.
 void notifyStatusBar(java.lang.Object arg)
           
 void openSelection()
           
 void reset()
           
 void setChanged()
          Marks this Observable object as having been changed; the hasChanged method will now return true.
 void setFrame()
           
 
Methods inherited from class javax.swing.JList
addListSelectionListener, addSelectionInterval, clearSelection, createSelectionModel, ensureIndexIsVisible, fireSelectionValueChanged, getAccessibleContext, getAnchorSelectionIndex, getCellBounds, getCellRenderer, getDragEnabled, getDropLocation, getDropMode, getFirstVisibleIndex, getFixedCellHeight, getFixedCellWidth, getLastVisibleIndex, getLayoutOrientation, getLeadSelectionIndex, getListSelectionListeners, getMaxSelectionIndex, getMinSelectionIndex, getModel, getNextMatch, getPreferredScrollableViewportSize, getPrototypeCellValue, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getSelectedIndex, getSelectedIndices, getSelectedValue, getSelectionBackground, getSelectionForeground, getSelectionMode, getSelectionModel, getUI, getUIClassID, getValueIsAdjusting, getVisibleRowCount, indexToLocation, isSelectedIndex, isSelectionEmpty, locationToIndex, paramString, removeListSelectionListener, removeSelectionInterval, setCellRenderer, setDragEnabled, setDropMode, setFixedCellHeight, setFixedCellWidth, setLayoutOrientation, setListData, setListData, setModel, setPrototypeCellValue, setSelectedIndex, setSelectedIndices, setSelectedValue, setSelectionBackground, setSelectionForeground, setSelectionInterval, setSelectionMode, setSelectionModel, setUI, setValueIsAdjusting, setVisibleRowCount, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JIThumbnailList

public JIThumbnailList(java.awt.Frame jie,
                       javax.swing.JScrollPane viewport)

JIThumbnailList

public JIThumbnailList(java.awt.Frame jie,
                       javax.swing.JScrollPane viewport,
                       OrderedDiskObjectList dObjList)

JIThumbnailList

public JIThumbnailList(java.awt.Frame jie,
                       javax.swing.JScrollPane viewport,
                       int scrollMode)

JIThumbnailList

public JIThumbnailList(java.awt.Frame jie,
                       javax.swing.JScrollPane viewport,
                       int scrollMode,
                       OrderedDiskObjectList dObjList)
Method Detail

getThumbnailListModel

public final JIListModel getThumbnailListModel()

setFrame

public final void setFrame()

getFrame

public final java.awt.Frame getFrame()

getViewPort

public final javax.swing.JViewport getViewPort()

isEditing

public final boolean isEditing()

getScrollableUnitIncrement

public final int getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
                                            int orientation,
                                            int direction)
Specified by:
getScrollableUnitIncrement in interface javax.swing.Scrollable
Overrides:
getScrollableUnitIncrement in class javax.swing.JList

getToolTipText

public final java.lang.String getToolTipText(java.awt.event.MouseEvent evt)
Overrides:
getToolTipText in class javax.swing.JList

reset

public final void reset()

openSelection

public final void openSelection()

nextPage

public final void nextPage(java.awt.event.KeyEvent e)

lastPage

public final void lastPage(java.awt.event.KeyEvent e)

jiThumbnail_keyPressed

public final void jiThumbnail_keyPressed(java.awt.event.KeyEvent e)

getScreenLableBounds

public final java.awt.Rectangle getScreenLableBounds(int i)

editingStart

public final void editingStart()

editingStopped

public final void editingStopped(java.lang.String newName)

editingCanceled

public void editingCanceled()

getSelectedValues

public DiskObject[] getSelectedValues()
Overrides:
getSelectedValues in class javax.swing.JList

getLastSelectedIndex

public int getLastSelectedIndex()

listValueChanged

protected final void listValueChanged(javax.swing.event.ListSelectionEvent e)

listMouseClicked

public final void listMouseClicked(java.awt.event.MouseEvent e)

listMouseEvent

public final void listMouseEvent(java.awt.event.MouseEvent e)

addObserver

public void addObserver(JIObserver o)
Adds an observer to the set of observers for this object, provided that it is not the same as some observer already in the set. The order in which notifications will be delivered to multiple observers is not specified. See the class comment.

Specified by:
addObserver in interface JIObservable
Parameters:
o - an observer to be added.
Throws:
java.lang.NullPointerException - if the parameter o is null.

deleteObserver

public void deleteObserver(JIObserver o)
Deletes an observer from the set of observers of this object. Passing null to this method will have no effect.

Specified by:
deleteObserver in interface JIObservable
Parameters:
o - the observer to be deleted.

notifyObservers

public void notifyObservers()
If this object has changed, as indicated by the hasChanged method, then notify all of its observers and then call the clearChanged method to indicate that this object has no longer changed.

Each observer has its update method called with two arguments: this observable object and null. In other words, this method is equivalent to:

notifyObservers(null)

Specified by:
notifyObservers in interface JIObservable
See Also:
Observable.clearChanged(), Observable.hasChanged(), Observer.update(java.util.Observable, java.lang.Object)

notifyObservers

public void notifyObservers(java.lang.Object arg)
If this object has changed, as indicated by the hasChanged method, then notify all of its observers and then call the clearChanged method to indicate that this object has no longer changed.

Each observer has its update method called with two arguments: this observable object and the arg argument.

Specified by:
notifyObservers in interface JIObservable
Parameters:
arg - any object.
See Also:
Observable.clearChanged(), Observable.hasChanged(), Observer.update(java.util.Observable, java.lang.Object)

notifyStatusBar

public void notifyStatusBar(java.lang.Object arg)

deleteObservers

public void deleteObservers()
Clears the observer list so that this object no longer has any observers.

Specified by:
deleteObservers in interface JIObservable

setChanged

public void setChanged()
Marks this Observable object as having been changed; the hasChanged method will now return true.


clearChanged

public void clearChanged()
Indicates that this object has no longer changed, or that it has already notified all of its observers of its most recent change, so that the hasChanged method will now return false. This method is called automatically by the notifyObservers methods.

See Also:
Observable.notifyObservers(), Observable.notifyObservers(java.lang.Object)

hasChanged

public boolean hasChanged()
Tests if this object has changed.

Specified by:
hasChanged in interface JIObservable
Returns:
true if and only if the setChanged method has been called more recently than the clearChanged method on this object; false otherwise.
See Also:
Observable.clearChanged(), Observable.setChanged()

countObservers

public int countObservers()
Returns the number of observers of this Observable object.

Specified by:
countObservers in interface JIObservable
Returns:
the number of observers of this object.