|
org.netbeans.swing.tabcontrol 1.36 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.swing.tabcontrol.customtabs.Tabbed
public abstract class Tabbed
Abstraction of a container similar to JTabbedPane. The container holds several TopComponents and user is switching the active (showing) TopComponent by clicking on a tab with TopComponent title (and icon). The look and feel of the container may differ depending whether it is showing document or non-document TopComponents.
TabbedComponentFactory| Nested Class Summary | |
|---|---|
static interface |
Tabbed.Accessor
Visual containers that hold the tabbed components must implement this interface otherwise window drag and drop and some popup menu may not work correctly. |
| Constructor Summary | |
|---|---|
Tabbed()
|
|
| Method Summary | |
|---|---|
abstract void |
addActionListener(ActionListener al)
|
abstract void |
addChangeListener(ChangeListener listener)
|
abstract void |
addTopComponent(String name,
Icon icon,
TopComponent tc,
String toolTip)
|
abstract void |
cancelRequestAttention(TopComponent tc)
|
abstract Image |
createImageOfTab(int tabIndex)
|
abstract Component |
getComponent()
Accessor for visual component holding components |
abstract Object |
getConstraintForLocation(Point location,
boolean attachingPossible)
|
abstract Shape |
getIndicationForLocation(Point location,
TopComponent startingTransfer,
Point startingPoint,
boolean attachingPossible)
|
abstract Action[] |
getPopupActions(Action[] defaultActions,
int tabIndex)
Allows tabbed implementors to speficy content of popup menu on tab with given index. |
abstract TopComponent |
getSelectedTopComponent()
|
abstract Rectangle |
getTabBounds(int tabIndex)
Returns bounds of tab with given index |
abstract int |
getTabCount()
|
abstract Rectangle |
getTabsArea()
|
abstract TopComponent |
getTopComponentAt(int index)
|
abstract TopComponent[] |
getTopComponents()
|
abstract int |
indexOf(Component tc)
|
abstract void |
insertComponent(String name,
Icon icon,
Component comp,
String toolTip,
int position)
|
boolean |
isBusy(TopComponent tc)
Check if given TopComponent is busy |
abstract boolean |
isTransparent()
|
void |
makeBusy(TopComponent tc,
boolean busy)
Notify user that given TopComponent is 'busy' (some lengthy process is running in it). |
abstract void |
removeActionListener(ActionListener al)
|
abstract void |
removeChangeListener(ChangeListener listener)
|
abstract void |
removeComponent(Component comp)
|
abstract void |
requestAttention(TopComponent tc)
|
abstract void |
setActive(boolean active)
|
abstract void |
setIconAt(int index,
Icon icon)
|
abstract void |
setSelectedComponent(Component comp)
|
abstract void |
setTitleAt(int index,
String title)
|
abstract void |
setToolTipTextAt(int index,
String toolTip)
|
abstract void |
setTopComponents(TopComponent[] tcs,
TopComponent selected)
|
abstract void |
setTransparent(boolean transparent)
|
abstract int |
tabForCoordinate(Point p)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Tabbed()
| Method Detail |
|---|
public abstract void requestAttention(TopComponent tc)
public abstract void cancelRequestAttention(TopComponent tc)
public abstract void addTopComponent(String name,
Icon icon,
TopComponent tc,
String toolTip)
public abstract void insertComponent(String name,
Icon icon,
Component comp,
String toolTip,
int position)
public abstract void setTopComponents(TopComponent[] tcs,
TopComponent selected)
public abstract int getTabCount()
public abstract TopComponent[] getTopComponents()
public abstract TopComponent getTopComponentAt(int index)
public abstract int indexOf(Component tc)
public abstract void removeComponent(Component comp)
public abstract void setTitleAt(int index,
String title)
public abstract void setIconAt(int index,
Icon icon)
public abstract void setToolTipTextAt(int index,
String toolTip)
public abstract void setSelectedComponent(Component comp)
public abstract TopComponent getSelectedTopComponent()
public abstract void addChangeListener(ChangeListener listener)
public abstract void removeChangeListener(ChangeListener listener)
public abstract void addActionListener(ActionListener al)
public abstract void removeActionListener(ActionListener al)
public abstract void setActive(boolean active)
public abstract int tabForCoordinate(Point p)
public abstract Shape getIndicationForLocation(Point location,
TopComponent startingTransfer,
Point startingPoint,
boolean attachingPossible)
public abstract Object getConstraintForLocation(Point location,
boolean attachingPossible)
public abstract Image createImageOfTab(int tabIndex)
public abstract Component getComponent()
Tabbed.Accessor
public abstract Action[] getPopupActions(Action[] defaultActions,
int tabIndex)
public abstract Rectangle getTabBounds(int tabIndex)
public abstract Rectangle getTabsArea()
public abstract boolean isTransparent()
public abstract void setTransparent(boolean transparent)
public void makeBusy(TopComponent tc,
boolean busy)
tc - busy - True to make the TopComponent busy, false to cancel the notification.public boolean isBusy(TopComponent tc)
tc -
|
org.netbeans.swing.tabcontrol 1.36 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||