public abstract class Tabbed extends Object
TabbedComponentFactory
Modifier and Type | Class and Description |
---|---|
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 and Description |
---|
Tabbed() |
Modifier and Type | Method and Description |
---|---|
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) |
void |
setAttentionHighlight(TopComponent tc,
boolean highlight)
Turn tab highlight on/off
|
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) |
public abstract void requestAttention(TopComponent tc)
public abstract void cancelRequestAttention(TopComponent tc)
public void setAttentionHighlight(TopComponent tc, boolean highlight)
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
-