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

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.JQTabbedPane
All Implemented Interfaces:
Disposable, JQComponentProperties, JQContainerProperties, JQTabbedPaneProperties, QSwingConstants

public class JQTabbedPane
extends JQContainer
implements QSwingConstants, JQTabbedPaneProperties

TabbedPane 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.JQTabbedPaneProperties
PROPERTY_INDEX_FOR_TITLE, PROPERTY_SELECTED_INDEX, PROPERTY_TAB_LAYOUT_POLICY, PROPERTY_TAB_PLACEMENT
 
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
JQTabbedPane()
          Constructs new JQTabbedPane object.
JQTabbedPane(int tabPlacement)
          Constructs new JQTabbedPane object.
 
Method Summary
 JQComponent add(JQComponent component)
          Appends the specified component to the end of this container.
 JQComponent add(JQComponent component, int index)
          Adds the specified component to this container at the given position.
 JQComponent add(JQComponent component, java.lang.Object constraints)
          Appends the specified component to the end of this container.
 JQComponent add(JQComponent component, java.lang.Object constraints, int index)
          Inserts the specified component at the specified index.
 JQComponent addTab(java.lang.String title, Icon icon, JQComponent component)
          Adds new tab.
 JQComponent addTab(java.lang.String title, Icon icon, JQComponent component, java.lang.String tooltip)
          Adds new tab.
 JQComponent addTab(java.lang.String title, JQComponent component)
          Adds new tab.
 Icon getDisabledIconAt(int index)
          Returns disabled icon of the specified tab.
 Icon getIconAt(int index)
          Returns icon of the specified tab.
 JQComponent getSelectedComponent()
          Returns currently selected component.
 int getSelectedIndex()
          Returns index of the selected component.
 int getTabPlacement()
          Returns tab placement.
 java.lang.String getTitleAt(int index)
          Returns the title of the tab at specified index.
 java.lang.String getToolTipTextAt(int index)
          Returns the tool tip text of the tab at specified index.
 java.lang.String getWhatsThisText(int index)
          Returns the what's this text of the tab at specified index.
 JQComponent insertTab(java.lang.String title, Icon icon, JQComponent component, java.lang.String tooltip, int index)
          Inserts new tab at specified position.
 void invalidate()
          Invalidates the component.
 boolean isEnabledAt(int index)
          Returns true if the tab at specified index is enabled.
protected  java.lang.String paramString()
          Returns parameters string.
 void setDisabledAt(int index, Icon icon)
          Sets disabled icon of the specified tab.
 void setEnabledAt(int index, boolean enabled)
          Enables/disables the component at specified index.
 void setIconAt(int index, Icon icon)
          Sets icon of the specified tab.
 void setLayout(LayoutManager layoutManager)
          Sets the layout manager for this container.
 void setSelectedComponent(JQComponent component)
          Sets currently selected component.
 void setSelectedIndex(int selectedIndex)
          Sets index of the selected component.
 void setTabPlacement(int tabPlacement)
          Sets tab placement.
 void setTitleAt(int index, java.lang.String title)
          Sets title of the tab at specified index.
 void setToolTipTextAt(int index, java.lang.String toolTipText)
          Sets tool tip text of the tab at specified index.
 void setWhatsThisText(int index, java.lang.String whatsThisText)
          Sets what's this text of the tab at specified index.
 void validate()
          Validates the component.
 
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.JQContainer
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, revalidate, 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

JQTabbedPane

public JQTabbedPane()
Constructs new JQTabbedPane object.


JQTabbedPane

public JQTabbedPane(int tabPlacement)
Constructs new JQTabbedPane object.

Parameters:
tabPlacement - the tab placement
Method Detail

addTab

public JQComponent addTab(java.lang.String title,
                          JQComponent component)
Adds new tab.

Parameters:
title - the tab title
component - the tab component
Returns:
the component argument

addTab

public JQComponent addTab(java.lang.String title,
                          Icon icon,
                          JQComponent component)
Adds new tab.

Parameters:
title - the tab title
icon - the tab icon
component - the tab component
Returns:
the component argument

addTab

public JQComponent addTab(java.lang.String title,
                          Icon icon,
                          JQComponent component,
                          java.lang.String tooltip)
Adds new tab.

Parameters:
title - the tab title
icon - the tab icon
component - the tab component
tooltip - the tab tooltip
Returns:
the component argument

insertTab

public JQComponent insertTab(java.lang.String title,
                             Icon icon,
                             JQComponent component,
                             java.lang.String tooltip,
                             int index)
Inserts new tab at specified position.

Parameters:
title - the tab title
icon - the tab icon
component - the tab component
tooltip - the tab tooltip
index - the index
Returns:
the component argument

getTabPlacement

public int getTabPlacement()
Returns tab placement.

Returns:
tab placement

setTabPlacement

public void setTabPlacement(int tabPlacement)
Sets tab placement.

Parameters:
tabPlacement - the tab placement

getSelectedIndex

public int getSelectedIndex()
Returns index of the selected component.

Returns:
the selected component

setSelectedIndex

public void setSelectedIndex(int selectedIndex)
Sets index of the selected component.

Parameters:
selectedIndex - the selected index

getSelectedComponent

public JQComponent getSelectedComponent()
Returns currently selected component.

Returns:
currently selected component

setSelectedComponent

public void setSelectedComponent(JQComponent component)
Sets currently selected component.

Parameters:
component - the component to be selected

isEnabledAt

public boolean isEnabledAt(int index)
Returns true if the tab at specified index is enabled.

Parameters:
index - the component index
Returns:
true if the tab at specified index is enabled

setEnabledAt

public void setEnabledAt(int index,
                         boolean enabled)
Enables/disables the component at specified index.

Parameters:
index - the component index
enabled - true if enabled

getTitleAt

public java.lang.String getTitleAt(int index)
Returns the title of the tab at specified index.

Parameters:
index - the component index
Returns:
the title of the tab at specified index

setTitleAt

public void setTitleAt(int index,
                       java.lang.String title)
Sets title of the tab at specified index.

Parameters:
index - the tab index
title - the title

getToolTipTextAt

public java.lang.String getToolTipTextAt(int index)
Returns the tool tip text of the tab at specified index.

Parameters:
index - the tab index
Returns:
the tool tip text of the tab at specified index

setToolTipTextAt

public void setToolTipTextAt(int index,
                             java.lang.String toolTipText)
Sets tool tip text of the tab at specified index.

Parameters:
index - the tab index
toolTipText - the tool tip text

getWhatsThisText

public java.lang.String getWhatsThisText(int index)
Returns the what's this text of the tab at specified index.

Parameters:
index - the tab index
Returns:
the what's this text of the tab at specified index

setWhatsThisText

public void setWhatsThisText(int index,
                             java.lang.String whatsThisText)
Sets what's this text of the tab at specified index.

Parameters:
index - the tab index
whatsThisText - the what's this text

getIconAt

public Icon getIconAt(int index)
Returns icon of the specified tab.

Parameters:
index - the tab index
Returns:
icon of the specified tab

setIconAt

public void setIconAt(int index,
                      Icon icon)
Sets icon of the specified tab.

Parameters:
index - the tab index
icon - the icon

getDisabledIconAt

public Icon getDisabledIconAt(int index)
Returns disabled icon of the specified tab.

Parameters:
index - the tab index
Returns:
disabled icon of the specified tab

setDisabledAt

public void setDisabledAt(int index,
                          Icon icon)
Sets disabled icon of the specified tab.

Parameters:
index - the tab index
icon - the Disabled icon

setLayout

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

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

invalidate

public void invalidate()
Invalidates the component.

Overrides:
invalidate in class JQContainer

validate

public void validate()
Validates the component.

Overrides:
validate in class JQContainer

add

public JQComponent add(JQComponent component)
Appends the specified component to the end of this container.

Overrides:
add in class JQContainer
Parameters:
component - the component to be added
Returns:
the component argument

add

public JQComponent add(JQComponent component,
                       int index)
Adds the specified component to this container at the given position.

Overrides:
add in class JQContainer
Parameters:
component - the component to be added
index - the position at which to insert the component, or -1 to append the component to the end
Returns:
the component argument

add

public JQComponent add(JQComponent component,
                       java.lang.Object constraints)
Appends the specified component to the end of this container.

Overrides:
add in class JQContainer
Parameters:
component - the component to be added
constraints - the layout constraints
Returns:
the component argument

add

public JQComponent add(JQComponent component,
                       java.lang.Object constraints,
                       int index)
Inserts the specified component at the specified index.

Overrides:
add in class JQContainer
Parameters:
component - the component to be added
constraints - the layout constraints
index - the component index
Returns:
the component argument

paramString

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

Overrides:
paramString in class JQContainer


Copyright © 2007 ETF and contributors. All Rights Reserved.