net.simplace.ui.splitpane.FWSlidingTabPanel

Shows a panel for showing different tabs with the possibility to switch with a slide between them.


public class FWSlidingTabPanel extends javax.swing.JPanel implements
java.awt.event.ActionListener {
// Public Constructors
public FWSlidingTabPanel();
public FWSlidingTabPanel(int aMinimumWidth);


// Public Instance Methods
public void addTab(String aTitle, JComponent aComponent);

Adds a tab. Uses the title as id.
public void addTab(String aTitle, Icon aIcon, JComponent aComponent);

Adds a tab. Uses the title as id.
public void addTab(String aID, String aTitle, JComponent aComponent);

Adds a tab.
public void addTab(String aID, String aTitle, Icon aIcon, JComponent
aComponent);

Adds a tab.
public void actionPerformed(ActionEvent aActionEvent);
// From java.awt.event.ActionListener


Slides between the panels.
public void setSelectedIndex(int aIndex);

Selects the tab at the given index.
public void setSelectedItem(String aID);

Selects the tab with the given id.
public JComponent getSelectedItem();

Returns the selected tab.
public boolean isShiftRunning();

Returns if the shift is running.
public void addChangeListener(ChangeListener aChangeListener);

Adds a new listener, which will be called, when a different tab is selected.
public void removeChangeListener(ChangeListener aChangeListener);

Removes the given listener.


}



Hierarchy: java.lang.Object - java.awt.Component (java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable) - java.awt.Container - javax.swing.JComponent (java.io.Serializable, javax.swing.TransferHandler.HasGetTransferHandler) - javax.swing.JPanel (javax.accessibility.Accessible) - FWSlidingTabPanel (java.awt.event.ActionListener)