org.noos.xing.mydoggy.plaf.ui.look
Class ToolWindowTabButtonUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.PanelUI
          extended by javax.swing.plaf.basic.BasicPanelUI
              extended by org.noos.xing.mydoggy.plaf.ui.look.ToolWindowTabButtonUI
All Implemented Interfaces:
ActionListener, MouseListener, PropertyChangeListener, EventListener, Cleaner

public class ToolWindowTabButtonUI
extends BasicPanelUI
implements Cleaner, PropertyChangeListener, MouseListener, ActionListener

Author:
Angelo De Caro (angelo.decaro@gmail.com)

Nested Class Summary
 class ToolWindowTabButtonUI.TabButtonToolWindowListener
           
 
Field Summary
protected  JButton closeButton
           
protected  boolean flashingState
           
protected  Timer flashingTimer
           
protected  int flasingDuration
           
protected  boolean inside
           
protected  info.clearthought.layout.TableLayout layout
           
protected  JButton minimizeButton
           
protected  boolean pressed
           
protected  RemoveNotifyDragListener removeNotifyDragListener
           
protected  boolean selected
           
protected  MyDoggyToolWindowTab tab
           
protected  ToolWindowTabButtonUI.TabButtonToolWindowListener tabButtonToolWindowListener
           
protected  MouseListener titleBarMouseListener
           
protected  JLabel titleLabel
           
protected  MyDoggyToolWindow toolWindow
           
protected  ToolWindowTabButton toolWindowTabButton
           
protected  ToolWindowTabPanel toolWindowTabPanel
           
 
Constructor Summary
ToolWindowTabButtonUI()
           
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void cleanup()
           
static ComponentUI createUI(JComponent c)
           
protected  void ensureVisible()
           
protected  void hideAllButtons()
           
protected  void installComponents()
           
protected  void installDefaults(JPanel p)
           
protected  void installListeners()
           
 void installUI(JComponent c)
           
 void mouseClicked(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
 void propertyChange(PropertyChangeEvent evt)
           
protected  void setEnabled(boolean enabled)
           
protected  void uninstallComponents()
           
protected  void uninstallDefaults(JPanel p)
           
protected  void uninstallListeners()
           
 void uninstallUI(JComponent c)
           
 void update(Graphics g, JComponent c)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicPanelUI
getBaseline, getBaselineResizeBehavior
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, paint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

toolWindowTabPanel

protected ToolWindowTabPanel toolWindowTabPanel

toolWindowTabButton

protected ToolWindowTabButton toolWindowTabButton

toolWindow

protected MyDoggyToolWindow toolWindow

tab

protected MyDoggyToolWindowTab tab

titleBarMouseListener

protected MouseListener titleBarMouseListener

tabButtonToolWindowListener

protected ToolWindowTabButtonUI.TabButtonToolWindowListener tabButtonToolWindowListener

layout

protected info.clearthought.layout.TableLayout layout

titleLabel

protected JLabel titleLabel

closeButton

protected JButton closeButton

minimizeButton

protected JButton minimizeButton

pressed

protected boolean pressed

inside

protected boolean inside

selected

protected boolean selected

flashingTimer

protected Timer flashingTimer

flasingDuration

protected int flasingDuration

flashingState

protected boolean flashingState

removeNotifyDragListener

protected RemoveNotifyDragListener removeNotifyDragListener
Constructor Detail

ToolWindowTabButtonUI

public ToolWindowTabButtonUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener

cleanup

public void cleanup()
Specified by:
cleanup in interface Cleaner

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener

installUI

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

uninstallUI

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

installDefaults

protected void installDefaults(JPanel p)
Overrides:
installDefaults in class BasicPanelUI

uninstallDefaults

protected void uninstallDefaults(JPanel p)
Overrides:
uninstallDefaults in class BasicPanelUI

update

public void update(Graphics g,
                   JComponent c)
Overrides:
update in class ComponentUI

installComponents

protected void installComponents()

uninstallComponents

protected void uninstallComponents()

installListeners

protected void installListeners()

uninstallListeners

protected void uninstallListeners()

setEnabled

protected void setEnabled(boolean enabled)

ensureVisible

protected void ensureVisible()

hideAllButtons

protected void hideAllButtons()


Copyright © 2012. All Rights Reserved.