org.openide.awt 7.55.1

org.openide.awt
Class TabbedPaneFactory

java.lang.Object
  extended by org.openide.awt.TabbedPaneFactory

public class TabbedPaneFactory
extends Object

Factory class for TabbedPanes with closeable tabs.

Since:
6.10

Field Summary
static String NO_CLOSE_BUTTON
          To hide close button feature on specific tab, put value Boolean.TRUE as a client property of your tab:
static String PROP_CLOSE
          Name of the property that is fired from the closeable tabbed pane when the user clicks close button on a tab.
 
Constructor Summary
TabbedPaneFactory()
           
 
Method Summary
static JTabbedPane createCloseButtonTabbedPane()
          Creates a special JTabbedPane that displays a small 'close' button in each tab.
 JTabbedPane createTabbedPane()
          The default implementation provides just the vanilla Swing JTabbedPane.
static TabbedPaneFactory getDefault()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_CLOSE

public static final String PROP_CLOSE
Name of the property that is fired from the closeable tabbed pane when the user clicks close button on a tab.

See Also:
Constant Field Values

NO_CLOSE_BUTTON

public static final String NO_CLOSE_BUTTON
To hide close button feature on specific tab, put value Boolean.TRUE as a client property of your tab:
 component.putClientProperty(TabbedPaneFactory.NO_CLOSE_BUTTON, Boolean.TRUE)
 

Since:
7.8
See Also:
Constant Field Values
Constructor Detail

TabbedPaneFactory

public TabbedPaneFactory()
Method Detail

getDefault

public static TabbedPaneFactory getDefault()
Returns:
TabbedPaneFactory instance from the global Lookup.

createTabbedPane

public JTabbedPane createTabbedPane()
The default implementation provides just the vanilla Swing JTabbedPane. The actual implementation in core.windows provides a special subclass with a small 'close' button in each tab.

Returns:
A new TabbedPane instance.
Since:
7.48

createCloseButtonTabbedPane

public static JTabbedPane createCloseButtonTabbedPane()
Creates a special JTabbedPane that displays a small 'close' button in each tab. When user clicks the close button a PropertyChangeEvent is fired from the tabbed pane. The property name is PROP_CLOSE and the property value is the inner component inside the clicked tab.

Returns:
Special TabbedPane with closeable tabs.
See Also:
NO_CLOSE_BUTTON

org.openide.awt 7.55.1

Built on June 6 2013.  |  Portions Copyright 1997-2013 Oracle. All rights reserved.