bibliothek.extension.gui.dock.theme.eclipse.rex.tab
Class BaseTabComponent
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
bibliothek.extension.gui.dock.theme.eclipse.rex.tab.BaseTabComponent
- All Implemented Interfaces:
- TabComponent, ImageObserver, MenuContainer, Serializable
- Direct Known Subclasses:
- RectGradientPainter, ShapedGradientPainter
@ColorCodes(value={"stack.tab.border","stack.tab.border.selected","stack.tab.border.selected.focused","stack.tab.border.selected.focuslost","stack.tab.top","stack.tab.tob.selected","stack.tab.top.selected.focused","stack.tab.top.selected.focuslost","stack.tab.bottom","stack.tab.bottom.selected","stack.tab.bottom.selected.focused","stack.tab.bottom.selected.focuslost","stack.tab.text","stack.tab.text.selected","stack.tab.text.selected.focused","stack.tab.text.selected.focuslost"})
public abstract class BaseTabComponent
- extends JComponent
- implements TabComponent
A base implementation ob TabComponent
.
- Author:
- Benjamin Sigg
- See Also:
- Serialized Form
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
colorStackTabBorder
protected final TabColor colorStackTabBorder
colorStackTabBorderSelected
protected final TabColor colorStackTabBorderSelected
colorStackTabBorderSelectedFocused
protected final TabColor colorStackTabBorderSelectedFocused
colorStackTabBorderSelectedFocusLost
protected final TabColor colorStackTabBorderSelectedFocusLost
colorStackTabTop
protected final TabColor colorStackTabTop
colorStackTabTopSelected
protected final TabColor colorStackTabTopSelected
colorStackTabTopSelectedFocused
protected final TabColor colorStackTabTopSelectedFocused
colorStackTabTopSelectedFocusLost
protected final TabColor colorStackTabTopSelectedFocusLost
colorStackTabBottom
protected final TabColor colorStackTabBottom
colorStackTabBottomSelected
protected final TabColor colorStackTabBottomSelected
colorStackTabBottomSelectedFocused
protected final TabColor colorStackTabBottomSelectedFocused
colorStackTabBottomSelectedFocusLost
protected final TabColor colorStackTabBottomSelectedFocusLost
colorStackTabText
protected final TabColor colorStackTabText
colorStackTabTextSelected
protected final TabColor colorStackTabTextSelected
colorStackTabTextSelectedFocused
protected final TabColor colorStackTabTextSelectedFocused
colorStackTabTextSelectedFocusLost
protected final TabColor colorStackTabTextSelectedFocusLost
BaseTabComponent
public BaseTabComponent(RexTabbedComponent component,
DockController controller,
StackDockStation station,
Dockable dockable,
int index)
- Creates a new
TabComponent
- Parameters:
component
- the owner of this tabcontroller
- the controller from which this component should read colorsstation
- the station on which this component isdockable
- the element which is represented by this componentindex
- the location of this tab relative to other tabs
updateBorder
protected abstract void updateBorder()
- Called when one of the border colors changed
bind
public void bind()
- Description copied from interface:
TabComponent
- Informs this tab that it will be shown soon
- Specified by:
bind
in interface TabComponent
unbind
public void unbind()
- Description copied from interface:
TabComponent
- Informs this tab that it is invisible and must not have any connections to other resources
- Specified by:
unbind
in interface TabComponent
getDockable
public Dockable getDockable()
getController
public DockController getController()
getStation
public StackDockStation getStation()
getButtons
public ButtonPanel getButtons()
getTabbedComponent
public RexTabbedComponent getTabbedComponent()
getComponent
public Component getComponent()
- Specified by:
getComponent
in interface TabComponent
setFocused
public void setFocused(boolean focused)
- Specified by:
setFocused
in interface TabComponent
isFocused
public boolean isFocused()
setSelected
public void setSelected(boolean selected)
- Specified by:
setSelected
in interface TabComponent
isSelected
public boolean isSelected()
setIndex
public void setIndex(int index)
- Specified by:
setIndex
in interface TabComponent
getIndex
public int getIndex()
doPaintIconWhenInactive
public boolean doPaintIconWhenInactive()
setPaintIconWhenInactive
public void setPaintIconWhenInactive(boolean paintIconWhenInactive)
- Specified by:
setPaintIconWhenInactive
in interface TabComponent