public class ToolBar
extends javax.swing.JToolBar
javax.swing.JToolBar.AccessibleJToolBar, javax.swing.JToolBar.Separator
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_ID_KEY |
static java.lang.String |
ACTION_IS_SELECTED |
static java.lang.String |
ACTION_TYPE_KEY |
static java.lang.String |
ACTION_VALUE |
static int |
BUTTON_ACTION
toolbar button with standard click behavior
|
protected static int |
GLUE |
protected static int |
SEPARATOR |
protected static int |
SPACE |
static int |
STYLE_ICON |
static int |
STYLE_TEXT |
protected static java.awt.Font |
TEXT_FONT |
static int |
TOOGLE_BUTTON_ACTION
toolbar button with toggle behavior (i.e. on/off state)
|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
ToolBar(ToolBarModel model,
javax.swing.JLabel statusLabel) |
Modifier and Type | Method and Description |
---|---|
void |
dateChanged(Date date,
ProgressMonitor monitor,
java.lang.Runnable callback) |
void |
disableForDragAndDrop(ToolBarDragAndDropSettings s,
boolean west)
Set up the ToolBar for Drag'n'Drop.
|
int |
getStyle() |
java.lang.String |
getToolbarLocation() |
protected void |
paintComponent(java.awt.Graphics g) |
void |
setBorder(javax.swing.border.Border b) |
void |
setLayout(java.awt.LayoutManager manager) |
void |
setStyle(int style) |
void |
setToolbarLocation(java.lang.String location) |
void |
setUseBigIcons(boolean arg) |
void |
showPopupMenu(TVBrowserAction tvBrowserAction) |
void |
storeSettings() |
void |
update() |
void |
updatePersona() |
void |
updatePluginButtons() |
void |
updateTimeButtons() |
void |
updateUI() |
void |
updateUpdateButton(boolean showStopButton) |
boolean |
useBigIcons() |
add, addImpl, addSeparator, addSeparator, createActionChangeListener, createActionComponent, getAccessibleContext, getComponentAtIndex, getComponentIndex, getMargin, getOrientation, getUI, getUIClassID, isBorderPainted, isFloatable, isRollover, paintBorder, paramString, setBorderPainted, setFloatable, setMargin, setOrientation, setRollover, setUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, 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, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintImmediately, paintImmediately, 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, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, 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, transferFocusDownCycle, validate, validateTree
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, 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, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String ACTION_VALUE
public static final java.lang.String ACTION_TYPE_KEY
public static final java.lang.String ACTION_ID_KEY
public static final java.lang.String ACTION_IS_SELECTED
public static final int BUTTON_ACTION
public static final int TOOGLE_BUTTON_ACTION
protected static final int SEPARATOR
protected static final int SPACE
protected static final int GLUE
public static final int STYLE_TEXT
public static final int STYLE_ICON
protected static final java.awt.Font TEXT_FONT
public ToolBar(ToolBarModel model, javax.swing.JLabel statusLabel)
public void updatePluginButtons()
public void updateTimeButtons()
public void updateUpdateButton(boolean showStopButton)
public void update()
public void updateUI()
updateUI
in class javax.swing.JToolBar
public void setBorder(javax.swing.border.Border b)
setBorder
in class javax.swing.JComponent
public void setLayout(java.awt.LayoutManager manager)
setLayout
in class javax.swing.JToolBar
public void disableForDragAndDrop(ToolBarDragAndDropSettings s, boolean west)
s
- The Drag'n'Drop Class.west
- The toolbar is shown in the west.public void setStyle(int style)
public int getStyle()
public void storeSettings()
public void setToolbarLocation(java.lang.String location)
public java.lang.String getToolbarLocation()
public void setUseBigIcons(boolean arg)
public boolean useBigIcons()
public void dateChanged(Date date, ProgressMonitor monitor, java.lang.Runnable callback)
public void showPopupMenu(TVBrowserAction tvBrowserAction)
public void updatePersona()
protected void paintComponent(java.awt.Graphics g)
paintComponent
in class javax.swing.JComponent
TV-Browser 3.4.3, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)