ca.sqlpower.wabit.swingui
Class StackedTabComponent.StackedTab

java.lang.Object
  extended by ca.sqlpower.wabit.swingui.StackedTabComponent.StackedTab
Enclosing class:
StackedTabComponent

public class StackedTabComponent.StackedTab
extends java.lang.Object

Represents an individual 'tab'. It consists of a label component, which is the tab itself, and a subcomponent which is the component contained by the tab.


Method Summary
 boolean closeButtonContains(int x, int y)
          Returns true if the close 'button' is contained with the given xy co-ordinates.
 java.awt.Component getTabComponent()
          Returns the Component representing the Tab in the stack of tabs
 boolean isCloseable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTabComponent

public java.awt.Component getTabComponent()
Returns the Component representing the Tab in the stack of tabs


isCloseable

public boolean isCloseable()

closeButtonContains

public boolean closeButtonContains(int x,
                                   int y)
Returns true if the close 'button' is contained with the given xy co-ordinates. The xy co-ordinates should be relative to the StackedTab tab component.



Copyright © 2009. All Rights Reserved.