yu.ac.bg.etf.javaqx.qswing
Class JQToolBar

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.core.AbstractDisposable
      extended byyu.ac.bg.etf.javaqx.qswing.JQComponent
          extended byyu.ac.bg.etf.javaqx.qswing.JQContainer
              extended byyu.ac.bg.etf.javaqx.qswing.JQToolBar
All Implemented Interfaces:
Disposable, JQComponentProperties, JQContainerProperties, JQToolbarProperties, QSwingConstants

public class JQToolBar
extends JQContainer
implements QSwingConstants, JQToolbarProperties

ToolBar Component.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Field Summary
 
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent
listenerList
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.QSwingConstants
BOTTOM, CENTER, HORIZONTAL, LEADING, LEFT, RIGHT, TOP, TRAILING, VERTICAL
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQToolbarProperties
PROPERTY_FLOATABLE, PROPERTY_ORIENTATION
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQContainerProperties
PROPERTY_LAYOUT_MANAGER
 
Fields inherited from interface yu.ac.bg.etf.javaqx.qswing.properties.JQComponentProperties
PROPERTY_BACKGROUND, PROPERTY_COMPONENT_ORIENTATION, PROPERTY_CONTEXT_MENU, PROPERTY_ENABLED, PROPERTY_FIXED_SIZE, PROPERTY_FOCUSABLE, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_INSETS, PROPERTY_LOCALE, PROPERTY_MAXIMUM_SIZE, PROPERTY_MINIMUM_SIZE, PROPERTY_NAME, PROPERTY_OPAQUE, PROPERTY_PREFERRED_SIZE, PROPERTY_RESOURCE_BUNDLE_NAME, PROPERTY_STATUS_TIP_TEXT, PROPERTY_STYLE_SHEET, PROPERTY_TOOL_TIP_TEXT, PROPERTY_VISIBLE, PROPERTY_WHATS_THIS_TEXT
 
Constructor Summary
JQToolBar()
          Constructs new JQToolBar object.
JQToolBar(java.lang.String title)
          Constructs new JQToolBar object.
JQToolBar(java.lang.String title, boolean autoExclusive)
          Constructs new JQToolBar object.
 
Method Summary
 JQToggleToolButton add(JQToggleToolButton toolButton)
          Adds toggle tool button item.
 JQToggleToolButton add(JQToggleToolButton toolButton, int index)
          Adds toggle tool button item.
 JQToolButton add(JQToolButton toolButton)
          Adds tool button item.
 JQToolButton add(JQToolButton toolButton, int index)
          Adds tool button item.
 JQSeparator addSeparator()
          Adds separator.
 JQSeparator addSeparator(int index)
          Adds separator.
 Dimension getDefaultIconSize()
          Returns default size of the tool bar icons.
 int getOrientation()
          Returns orientation of the toolbar.
 void invalidate()
          Invalidates the component.
 boolean isFloatable()
          Returns floatable property.
protected  java.lang.String paramString()
          Returns parameters string.
 void revalidate()
          Revalidates the component.
 void setDefaultIconSize(Dimension defaultIconSize)
          Sets default size of the tool bar icons.
 void setDefaultIconSize(int width, int height)
          Sets default size of the tool bar icons.
 void setFloatable(boolean floatable)
          Sets floatable property.
 void setLayout(LayoutManager layoutManager)
          Sets the layout manager for this container.
 void setOrientation(int orientation)
          Sets orientation.
 void validate()
          Validates the component.
 
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQContainer
add, add, add, add, addImpl, doLayout, getComponent, getComponentCount, getComponentIndex, getComponents, getLayout, getMaximumSize, getMinimumSize, getOwnedComponents, getPreferredSize, pack, remove, remove, removeAll, setBackground, setComponentOrientation, setForeground, updateLocalization
 
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQComponent
addComponentListener, addFocusListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, disableEvents, disposeComponent, disposeObject, enableEvents, eventEnabled, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getClientProperty, getComponentListeners, getComponentOrientation, getContextMenu, getCursor, getEventMask, getFocusListener, getFont, getFontMetrics, getForeground, getHeight, getInsets, getKeyListeners, getLocale, getLocation, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getOwner, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getResourceBundleName, getSize, getStatusTipText, getStyleSheet, getToolTipText, getToolTipText, getWhatsThisText, getWidth, getX, getY, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFontSet, isForegroundSet, isLeftToRight, isLocaleSet, isOpaque, isOwnerOf, isPainting, isResizable, isResourceBundleNameSet, isUpdatesEnabled, isValid, isVisible, localizeObject, localizeString, localizeString, localizeStrings, paintComponent, processComponentEvent, processContextMenuEvent, processFocusEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, processStyleChange, putClientProperty, removeComponentListener, removeFocusListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, removeStyleSheet, repaint, repaint, repaint, requestFocus, setBounds, setBounds, setContextMenu, setCursor, setDefaultResourceBundleName, setDisplayable, setEnabled, setFixedSize, setFixedSize, setFocusable, setFont, setInsets, setInsets, setLeftToRightComponentOrientation, setLocale, setLocation, setLocation, setMaximumSize, setMaximumSize, setMinimumSize, setMinimumSize, setName, setOpaque, setPreferredSize, setPreferredSize, setResizable, setResourceBundleName, setRightToLeftComponentOrientation, setSize, setSize, setStatusTipText, setStyleSheet, setStyleSheet, setToolTipText, setUpdatesEnabled, setVisible, setWhatsThisText, toString, unsetComponentOrientation, update, update, update, updateComponentOrientation
 
Methods inherited from class yu.ac.bg.etf.javaqx.core.AbstractDisposable
addDisposeListener, dispose, disposedCheck, disposedErrorString, finalize, isDisposed, removeDisposeListener
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JQToolBar

public JQToolBar()
Constructs new JQToolBar object.


JQToolBar

public JQToolBar(java.lang.String title)
Constructs new JQToolBar object.

Parameters:
title - the tool bar title

JQToolBar

public JQToolBar(java.lang.String title,
                 boolean autoExclusive)
Constructs new JQToolBar object.

Parameters:
title - the tool bar title
autoExclusive - true if auto exclusive
Method Detail

add

public JQToolButton add(JQToolButton toolButton)
Adds tool button item.

Parameters:
toolButton - the tool button
Returns:
the tool button argument

add

public JQToolButton add(JQToolButton toolButton,
                        int index)
Adds tool button item.

Parameters:
toolButton - the tool button
index - the tool button index
Returns:
the tool button argument

add

public JQToggleToolButton add(JQToggleToolButton toolButton)
Adds toggle tool button item.

Parameters:
toolButton - the toggle tool button
Returns:
the toggle tool button argument

add

public JQToggleToolButton add(JQToggleToolButton toolButton,
                              int index)
Adds toggle tool button item.

Parameters:
toolButton - the toggle tool button
index - the toggle tool button index
Returns:
the toggle tool button argument

addSeparator

public JQSeparator addSeparator()
Adds separator.

Returns:
separator

addSeparator

public JQSeparator addSeparator(int index)
Adds separator.

Parameters:
index - the separator index
Returns:
separator

isFloatable

public boolean isFloatable()
Returns floatable property.

Returns:
floatable property

setFloatable

public void setFloatable(boolean floatable)
Sets floatable property.

Parameters:
floatable - the floatable property

getOrientation

public int getOrientation()
Returns orientation of the toolbar.

Returns:
orientation of the toolbar

setOrientation

public void setOrientation(int orientation)
Sets orientation.

Parameters:
orientation - the orientation

getDefaultIconSize

public Dimension getDefaultIconSize()
Returns default size of the tool bar icons.

Returns:
default size of the tool bar icons

setDefaultIconSize

public void setDefaultIconSize(Dimension defaultIconSize)
Sets default size of the tool bar icons.

Parameters:
defaultIconSize - the default size

setDefaultIconSize

public void setDefaultIconSize(int width,
                               int height)
Sets default size of the tool bar icons.

Parameters:
width - the default width
height - the height size

setLayout

public void setLayout(LayoutManager layoutManager)
Sets the layout manager for this container.

Overrides:
setLayout in class JQContainer
Parameters:
layoutManager - the layout manager

validate

public void validate()
Validates the component.

Overrides:
validate in class JQContainer

invalidate

public void invalidate()
Invalidates the component.

Overrides:
invalidate in class JQContainer

revalidate

public void revalidate()
Revalidates the component.

Overrides:
revalidate in class JQComponent

paramString

protected java.lang.String paramString()
Returns parameters string.

Overrides:
paramString in class JQContainer


Copyright © 2007 ETF and contributors. All Rights Reserved.