org.das2.components.TearoffTabbedPane

Like the Swing TabbedPane, but this allows the tabs to be removed to other windows or other TearoffTabbedPanes.

TearoffTabbedPane( )

create a new TearoffTabbedPane


addTab

addTab( String title, javax.swing.Icon icon, java.awt.Component component ) → void

Parameters

title - a String
icon - an Icon
component - a Component

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]

addTab( String title, java.awt.Component component ) → void
addTab( String title, javax.swing.Icon icon, java.awt.Component component, String tip ) → void

dock

dock( java.awt.Component c ) → void

return the component into this TearoffTabbedPane.

Parameters

c - the component.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getFrameComponentListener

getFrameComponentListener( java.awt.Component panel1, java.awt.Component frame1, java.awt.Component panel2, java.awt.Component frame2, Object direction ) → java.awt.event.ComponentListener

get the listener that will keep the two JFrames close together

Parameters

panel1 - component within the master frame.
frame1 - master frame that controls.
panel2 - component within the compliant frame
frame2 - compliant frame that follows.
direction - the direction, which is STICK_RIGHT (private) or null

Returns:

a listener

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getTabByTitle

getTabByTitle( String title ) → java.awt.Component

return the tab contents, the first tab with this name.

Parameters

title - a String

Returns:

the component in this tab.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


hideMouseAdapter

hideMouseAdapter( ) → void

I needed a way to hide the mouseAdapter, since we can't do this automatically.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


insertTab

insertTab( String title, javax.swing.Icon icon, java.awt.Component component, String tip, int index ) → void

Parameters

title - a String
icon - an Icon
component - a Component
tip - a String
index - an int

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


main

main( String[] args ) → void

Parameters

args - a java.lang.String[]

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


peek

peek( ) → void

show all the tabs descriptions

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


remove

remove( java.awt.Component c ) → void

Parameters

c - a Component

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


removeTabAt

removeTabAt( int index ) → void

Parameters

index - an int

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setSelectedIndex

setSelectedIndex( int index ) → void

Parameters

index - an int

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


setSelectedTab

setSelectedTab( String title ) → void

this will set the selected tab, or raise the babysitter

Parameters

title - a String

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


slideRight

slideRight( int tabIndex ) → void

instead of undocking, "slide" the component into a second JFrame that follows the first. This may create the JFrame that accepts tabs.

Parameters

tabIndex - the tab to slide (0 is the left or first tab)

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


tearOff

tearOff( int tabIndex, java.awt.Container newContainer ) → void

Parameters

tabIndex - an int
newContainer - a Container

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]