Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.services.swingx

Class XTabbedPane

com.gentleware.services.swingx.XTabbedPane

public class XTabbedPane


XTabbedPane is a JTabbedPane that has closable tabs (with a button that is shown whenever the mouse is over a tab). It also deprecated the addTab() methods that take Components and Strings, because only XTabs should be used.


 Attribute Summary
private JButton  _closeButton
 
private int  _currentTabIndex
 
private boolean  _lastTabClosable
 
private MouseInputAdapter  _mouseInputListener
 
private int  _mouseX
 
private int  _mouseY
 
private boolean  _tabsClosable
 
arrow_up
 

 Association Summary
private ActionListener  _closeListener
 
private Rectangle  _currentTabBounds
 
private MouseListener  _mouseListenerButton
 
public XPagesDialog  xPagesDialog
 
arrow_up
 

 Constructor Summary
public   XTabbedPane()
 
public   XTabbedPane(int tabPlacement)
 
arrow_up
 

 Method Summary
public void   addTab(ResourceId resourceId, Container content)
 
public void   addTab(XTab tab)
 
public void   addTab(String title, Icon icon, Component component, String tip)
 
public void   addTab(String title, Icon icon, Component component)
 
public void   addTab(String title, Component component)
 
private void   checkHideCloseButton(int x, int y)
Check if the hide button should be hidden. 
private void   checkShowCloseButton(int x, int y)
 
private void   checkShowCloseButton()
 
private void   closeTab()
 
private void   prepareClosableTabs()
 
public void   setTabsClosable(boolean closable, boolean lastTabClosable)
 
private void   unprepareClosableTabs()
 
arrow_up
 

Tagged Values
static false
gentleware-imported-line-number 22
gentleware-imported-package-statement-line-number 5
 

 Attribute Detail

_closeButton

private JButton _closeButton

arrow_up


_currentTabIndex

private int _currentTabIndex

arrow_up


_lastTabClosable

private boolean _lastTabClosable

arrow_up


_mouseInputListener

private MouseInputAdapter _mouseInputListener

arrow_up


_mouseX

private int _mouseX

arrow_up


_mouseY

private int _mouseY

arrow_up


_tabsClosable

private boolean _tabsClosable

arrow_up
 Association Detail

_closeListener

private ActionListener _closeListener

arrow_up


_currentTabBounds

private Rectangle _currentTabBounds

arrow_up


_mouseListenerButton

private MouseListener _mouseListenerButton

arrow_up


xPagesDialog

public XPagesDialog xPagesDialog

arrow_up
 Constructor Detail

XTabbedPane

public com.gentleware.services.swingx.XTabbedPane XTabbedPane()

Returns:
arrow_up


XTabbedPane

public com.gentleware.services.swingx.XTabbedPane XTabbedPane(int tabPlacement)

Parameters:
tabPlacement -
Returns:
arrow_up
 Method Detail

addTab

public void addTab(ResourceId resourceId, Container content)

Parameters:
resourceId -
content -
arrow_up


addTab

public void addTab(XTab tab)

Parameters:
tab -
arrow_up


addTab

public void addTab(String title, Icon icon, Component component, String tip)

Deprecated.
Please use addTab(XTab) instead
Parameters:
title -
icon -
component -
tip -
arrow_up


addTab

public void addTab(String title, Icon icon, Component component)

Deprecated.
Please use addTab(XTab) instead
Parameters:
title -
icon -
component -
arrow_up


addTab

public void addTab(String title, Component component)

Deprecated.
Please use addTab(XTab) instead
Parameters:
title -
component -
arrow_up


checkHideCloseButton

private void checkHideCloseButton(int x, int y)


Check if the hide button should be hidden. If so, hide it.  
Parameters:
x - current x coordinate of the mouse cursor (relative to table header)
y - current y coordinate of the mouse cursor (relative to table header)
arrow_up


checkShowCloseButton

private void checkShowCloseButton(int x, int y)

Parameters:
x -
y -
arrow_up


checkShowCloseButton

private void checkShowCloseButton()

arrow_up


closeTab

private void closeTab()

arrow_up


prepareClosableTabs

private void prepareClosableTabs()

arrow_up


setTabsClosable

public void setTabsClosable(boolean closable, boolean lastTabClosable)

Parameters:
closable - should there be a close button on the tab (on mouse over)
lastTabClosable - no yet implemented!
arrow_up


unprepareClosableTabs

private void unprepareClosableTabs()

arrow_up
Created  2004 - 12 - 1

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.