|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.plaf.ComponentUI | +--com.eliad.swing.GridUI | +--com.eliad.swing.BasicGridUI
Basic GridUI implementation. Suitable both for grid views, and for grid headers.
Inner Class Summary | |
class |
BasicGridUI.FocusHandler
This inner class is marked "public" due to a compiler bug. |
class |
BasicGridUI.MouseInputHandler
This inner class is marked "public" due to a compiler bug. |
class |
BasicGridUI.ResizableContext
|
Field Summary | |
protected java.awt.event.FocusListener |
focusListener_
|
protected JSmartGrid |
grid_
The JSmartGrid that is delegating the painting to this UI. |
protected java.awt.event.KeyListener |
keyListener_
|
protected javax.swing.event.MouseInputListener |
mouseInputListener_
|
Constructor Summary | |
BasicGridUI()
|
Method Summary | |
protected void |
clearDirtyDraggingArea(java.awt.Graphics g,
java.awt.Rectangle band)
Repaints the background of the grid (probably in front of part of other cells). before painting the dragged cells. |
protected void |
clearDraggingArea(java.awt.Graphics g,
java.awt.Rectangle band)
Paints the area vacated by the dragged cells with the background behind the grid. |
protected java.awt.event.FocusListener |
createFocusListener()
Creates the focus listener for handling keyboard navigation in the JSmartGrid. |
protected java.awt.event.KeyListener |
createKeyListener()
Creates the key listener for handling keyboard navigation in the JSmartGrid. |
protected javax.swing.event.MouseInputListener |
createMouseInputListener()
Creates the mouse listener for the JSmartGrid. |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
java.awt.Dimension |
getMaximumSize(javax.swing.JComponent c)
Return the maximum size of the grid. |
java.awt.Dimension |
getMinimumSize(javax.swing.JComponent c)
Return the minimum size of the grid. |
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
Return the preferred size of the grid. |
protected void |
installDefaults()
Initialize Grid properties, e.g. font, foreground, and background. |
protected void |
installKeyboardActions()
Register all keyboard actions on the JSmartGrid. |
protected void |
installListeners()
Attaches listeners to the JSmartGrid. |
void |
installUI(javax.swing.JComponent jc)
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Paint a representation of the JSmartGrid instance
that was set in installUI() . |
protected void |
uninstallDefaults()
|
protected void |
uninstallKeyboardActions()
|
protected void |
uninstallListeners()
Cleans up listeners to the JSmartGrid. |
void |
uninstallUI(javax.swing.JComponent c)
|
Methods inherited from class javax.swing.plaf.ComponentUI |
contains,
getAccessibleChild,
getAccessibleChildrenCount,
update |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected JSmartGrid grid_
protected java.awt.event.KeyListener keyListener_
protected java.awt.event.FocusListener focusListener_
protected javax.swing.event.MouseInputListener mouseInputListener_
Constructor Detail |
public BasicGridUI()
Method Detail |
protected java.awt.event.KeyListener createKeyListener()
protected java.awt.event.FocusListener createFocusListener()
protected javax.swing.event.MouseInputListener createMouseInputListener()
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
public void installUI(javax.swing.JComponent jc)
protected void installDefaults()
installUI(javax.swing.JComponent)
protected void installListeners()
protected void installKeyboardActions()
public void uninstallUI(javax.swing.JComponent c)
protected void uninstallDefaults()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
public java.awt.Dimension getMinimumSize(javax.swing.JComponent c)
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
public java.awt.Dimension getMaximumSize(javax.swing.JComponent c)
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
JSmartGrid
instance
that was set in installUI()
.protected void clearDraggingArea(java.awt.Graphics g, java.awt.Rectangle band)
protected void clearDirtyDraggingArea(java.awt.Graphics g, java.awt.Rectangle band)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |