| java.lang.Object javax.swing.plaf.ComponentUI org.netbeans.swing.tabcontrol.TabDisplayerUI
All known Subclasses: org.netbeans.swing.tabcontrol.plaf.AbstractViewTabDisplayerUI, org.netbeans.swing.tabcontrol.plaf.AbstractTabDisplayerUI,
TabDisplayerUI | protected TabDisplayerUI(TabDisplayer displayer)(Code) | | Creates a new instance of TabDisplayerUI
|
cancelRequestAttention | abstract protected void cancelRequestAttention(int tab)(Code) | | |
createImageOfTab | public Image createImageOfTab(int index)(Code) | | Returns an image suitable for use in drag and drop operations,
representing the tab at this index. The default implementation returns null.
Parameters: index - A tab index throws: IllegalArgumentException - if no tab is at the passed index |
createSelectionModel | abstract protected SingleSelectionModel createSelectionModel()(Code) | | Create the selection model which will handle selection for the
TabDisplayer. SPI method located here because TabDisplayer.setSelectionModel
is package private.
|
dropIndexOfPoint | abstract public int dropIndexOfPoint(Point p)(Code) | | The index a tab would acquire if dropped at a given point
Parameters: p - A point An index which may be equal to the size of the data model |
getButtonIcon | public Icon getButtonIcon(int buttonId, int buttonState)(Code) | | since: 1.9 An icon for various buttons displayed in tab control (close/pin/scroll left/right etc), see TabControlButton class. |
getExactTabIndication | abstract public Polygon getExactTabIndication(int index)(Code) | | Get a shape representing the exact outline of the numbered tab. The
implementations in the package will return instances of
EqualPolygon from this method; other implementations may
return what they want, but for performance reasons, it is highly
desirable that the shape object returned honor equals() and
hashCode() , as there are significant optimizations in
NetBeans' drag and drop support that depend on this.
|
getInsertTabIndication | abstract public Polygon getInsertTabIndication(int index)(Code) | | Get a shape representing the area of visual feedback during a drag and
drop operation, which represents where a tab will be inserted if a drop
operation is performed over the indicated tab. The implementations in
the package will return instances of EqualPolygon from this
method; other implementations may return what they want, but for
performance reasons, it is highly desirable that the shape object
returned honor equals() and hashCode() , as
there are significant optimizations in NetBeans' drag and drop support
that depened on this.
Shape representing feedback shape |
getTabRect | abstract public Rectangle getTabRect(int index, Rectangle destination)(Code) | | Configure the passed rectangle with the shape of the tab at the given
index.
|
makeTabVisible | public void makeTabVisible(int index)(Code) | | Instruct the UI to ensure that the tab at the given index is visible.
Some UIs allow scrolling or otherwise hiding tabs. The default
implementation is a no-op.
Parameters: index - The index of the tab that should be made visible, whichshould be within the range of 0 to the count of tabs in themodel |
requestAttention | abstract protected void requestAttention(int tab)(Code) | | |
shouldPerformAction | final protected boolean shouldPerformAction(String command, int tab, MouseEvent event)(Code) | | Allows ActionListeners attached to the container to determine if the
event should be acted on. Delegates to displayer.postActionEvent() .
This method will create a TabActionEvent with the passed string as an
action command, and cause the displayer to fire this event. It will
return true if no listener on the displayer consumed the TabActionEvent;
consuming the event is the way a listener can veto a change, or provide
special handling for it.
Parameters: command - The action command - this should be TabDisplayer.COMMAND_SELECTor TabDisplayer.COMMAND_CLOSE, but private contractsbetween custom UIs and components are also an option. Parameters: tab - The index of the tab upon which the action should act, or-1 if non-applicable Parameters: event - A mouse event which initiated the action, or null true if the event posted was not consumed by any listener |
tabForCoordinate | abstract public int tabForCoordinate(Point p)(Code) | | Returns the index of the tab at the passed point, or -1 if no tab is at
that location. Note that this method may return -1 for coordinates which
are within a tab as returned by getTabRect(), but are not within the
visible shape of the tab as the UI paints it.
|
unregisterShortcuts | abstract public void unregisterShortcuts(JComponent comp)(Code) | | |
|
|