com.levigo.jadice.swing.navigator
Class BasicNavigatorComponentUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by com.levigo.jadice.swing.navigator.NavigatorComponentUI
          extended by com.levigo.jadice.swing.navigator.BasicNavigatorComponentUI

public class BasicNavigatorComponentUI
extends NavigatorComponentUI


Field Summary
protected  Dimension currentSize
           
protected  DecorationTool lockDecoTool
           
protected  JScrollPane thumbnailScrollPane
           
protected  ThumbnailView thumbnailView
           
protected  NavigatorComponent view
           
 
Constructor Summary
BasicNavigatorComponentUI()
           
 
Method Summary
protected  void adjustCellSize()
           
static ComponentUI createUI(JComponent list)
          Returns a new instance of NavigatorComponentUI.
 ToolManager getToolManager()
          Returns the ToolManager of the embedded navigator thumbnail component
protected  void installDefaults()
          Initialize NavigatorComponent properties, e.g.
protected  void installKeyboardActions()
          Registers the keyboard bindings on the ThumbnailView that the BasicListUI is associated with.
protected  void installListeners()
          Create and install the listeners for the ThumbnailView, its model, and its selectionModel.
 void installUI(JComponent c)
           
protected  void uninstallDefaults()
          Set the NavigatorComponent properties that haven't been explicitly overridden to null.
protected  void uninstallKeyboardActions()
          Unregisters keyboard actions installed from installKeyboardActions.
protected  void uninstallListeners()
          Remove the listeners for the ThumbnailView, its model, and its selectionModel.
 void uninstallUI(JComponent c)
           
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, paint, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

view

protected NavigatorComponent view

thumbnailView

protected ThumbnailView thumbnailView

thumbnailScrollPane

protected JScrollPane thumbnailScrollPane

lockDecoTool

protected DecorationTool lockDecoTool

currentSize

protected final Dimension currentSize
Constructor Detail

BasicNavigatorComponentUI

public BasicNavigatorComponentUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent list)
Returns a new instance of NavigatorComponentUI. NavigatorComponentUI delegates are allocated one per NavigatorComponent.

Returns:
A new ThumbnailViewUI implementation.

installUI

public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI

uninstallUI

public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI

installDefaults

protected void installDefaults()
Initialize NavigatorComponent properties, e.g. font, foreground, background, thumb size and so on. The font, foreground, and background properties are only set if their current value is either null or a UIResource, other properties are set if the current value is null.

See Also:
uninstallDefaults(), installUI(javax.swing.JComponent)

uninstallDefaults

protected void uninstallDefaults()
Set the NavigatorComponent properties that haven't been explicitly overridden to null. A property is considered overridden if its current value is not a UIResource.

See Also:
installDefaults(), uninstallUI(javax.swing.JComponent), CellRendererPane

installKeyboardActions

protected void installKeyboardActions()
Registers the keyboard bindings on the ThumbnailView that the BasicListUI is associated with. This method is called at installUI() time.

See Also:
installUI(javax.swing.JComponent)

uninstallKeyboardActions

protected void uninstallKeyboardActions()
Unregisters keyboard actions installed from installKeyboardActions. This method is called at uninstallUI() time - subclasses should ensure that all of the keyboard actions registered at installUI time are removed here.

See Also:
installUI(javax.swing.JComponent)

installListeners

protected void installListeners()
Create and install the listeners for the ThumbnailView, its model, and its selectionModel. This method is called at installUI() time.

See Also:
installUI(javax.swing.JComponent), uninstallListeners()

uninstallListeners

protected void uninstallListeners()
Remove the listeners for the ThumbnailView, its model, and its selectionModel. All of the listener fields, are reset to null here. This method is called at uninstallUI() time, it should be kept in sync with installListeners.

See Also:
uninstallUI(javax.swing.JComponent), installListeners()

adjustCellSize

protected void adjustCellSize()

getToolManager

public final ToolManager getToolManager()
Description copied from class: NavigatorComponentUI
Returns the ToolManager of the embedded navigator thumbnail component

Specified by:
getToolManager in class NavigatorComponentUI
Returns:
the ToolManager or null if not available


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.