SilverStream
Application Server 3.5

com.sssw.rt.jform
Class AgcJTabbedPane

java.lang.Object
 |
 +--java.awt.Component
       |
       +--java.awt.Container
             |
             +--javax.swing.JComponent
                   |
                   +--javax.swing.JTabbedPane
                         |
                         +--com.sssw.rt.jform.AgcJTabbedPane
All Implemented Interfaces:
Accessible, AgiHelpInfo, ImageObserver, MenuContainer, Serializable, SwingConstants

public class AgcJTabbedPane
extends JTabbedPane
implements AgiHelpInfo

A lightweight container control that organizes the components of the user interface on several layered panes. The user clicks on tabs along the edge to select among the panes. AgcJTabbedPane can contain any of the SilverStream and Swing controls.

AgcJTabbedPane extends the basic Swing JTabbedPane to provide additional color settings. The definitions of these parameters are:

There is also a "highlight" color in BasicTabbedPaneUI, but it is not used as of JDK 1.2.2. Note that "lightHighlightColor" is called "Highlight Color" in the user interface guidelines.

Properties:
Background Color, Control Type, Dark Shadow Color, Enabled, Font Name, Font Size, Font Style, Height, Highlight Color, Inactive Tab Color, Left, Name, Pane Captions, Pane Images, Panes, Shadow Color, Tool Tip, Top, Visible, Width
Events:
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, stateChanged
See Also:
Serialized Form

Inner classes inherited from class javax.swing.JTabbedPane
JTabbedPane.AccessibleJTabbedPane, JTabbedPane.ModelListener
 
Inner classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Fields inherited from class javax.swing.JTabbedPane
changeEvent, changeListener, model, tabPlacement
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
AgcJTabbedPane()
          Creates a tabbed pane with tabs on the top edge.
AgcJTabbedPane(int tabPlacement)
          Creates a tabbed pane with tabs on the specified edge.
 
Method Summary
 Color getDarkShadowColor()
          Gets the darkShadowColor.
 Color getInactiveTabColor()
          Gets the inactiveTabColor.
 Color getLightHighlightColor()
          Gets the hightlightColor.
 Color getShadowColor()
          Gets the shadowColor.
 void setColors(Color backgroundColor, Color lightHighlightColor, Color shadowColor, Color darkShadowColor, Color inactiveTabColor)
          Sets all the shading colors for the control.
 
Methods inherited from class javax.swing.JTabbedPane
add, add, add, add, add, addChangeListener, addTab, addTab, addTab, createChangeListener, fireStateChanged, getAccessibleContext, getBackgroundAt, getBoundsAt, getComponentAt, getDisabledIconAt, getForegroundAt, getIconAt, getModel, getSelectedComponent, getSelectedIndex, getTabCount, getTabPlacement, getTabRunCount, getTitleAt, getToolTipText, getUI, getUIClassID, indexOfComponent, indexOfTab, indexOfTab, insertTab, isEnabledAt, paramString, remove, removeAll, removeChangeListener, removeTabAt, setBackgroundAt, setComponentAt, setDisabledIconAt, setEnabledAt, setForegroundAt, setIconAt, setModel, setSelectedComponent, setSelectedIndex, setTabPlacement, setTitleAt, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, processComponentKeyEvent, processFocusEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, removeContainerListener, setCursor, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hide, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods implemented from interface com.sssw.rt.form.AgiHelpInfo
getHelpInfo, setHelpInfo
 

Constructor Detail

AgcJTabbedPane

public AgcJTabbedPane()
Creates a tabbed pane with tabs on the top edge.

AgcJTabbedPane

public AgcJTabbedPane(int tabPlacement)
Creates a tabbed pane with tabs on the specified edge.
Parameters:
tabPlacement - the side of the control on which the tabs appear. Possible values are defined in the SwingConstants interface:
  • SwingConstants.TOP
  • SwingConstants.BOTTOM
  • SwingConstants.LEFT
  • SwingConstants.RIGHT
Method Detail

setColors

public void setColors(Color backgroundColor,
                      Color lightHighlightColor,
                      Color shadowColor,
                      Color darkShadowColor,
                      Color inactiveTabColor)
Sets all the shading colors for the control. To leave a color unchanged, specify null for that argument.

For a description of the color parameters, see the parameter definitions in the overview of AgcJTabbedPane.

Parameters:
backgroundColor - a Color object
lightHighlightColor - a Color object
shadowColor - a Color object
darkShadowColor - a Color object
inactiveTabColor - a Color object
Example:
   	Tab1.setColors( 
   		new Color(240, 240, 200), 
   		new Color(240, 240, 230),
 		Color.darkGray,  
 		Color.black,  
 		Color.lightGray );
See Also:
AgcJTabbedPane.getDarkShadowColor(), AgcJTabbedPane.getInactiveTabColor(), AgcJTabbedPane.getLightHighlightColor(), AgcJTabbedPane.getShadowColor()

getLightHighlightColor

public Color getLightHighlightColor()
Gets the hightlightColor.

For a description of the color parameters, see the parameter definitions in the overview of AgcJTabbedPane.

Returns:
a Color object
See Also:
AgcJTabbedPane.setColors(Color, Color, Color, Color, Color)

getShadowColor

public Color getShadowColor()
Gets the shadowColor.

For a description of the color parameters, see the parameter definitions in the overview of AgcJTabbedPane.

Returns:
a Color object
See Also:
AgcJTabbedPane.setColors(Color, Color, Color, Color, Color)

getDarkShadowColor

public Color getDarkShadowColor()
Gets the darkShadowColor.

For a description of the color parameters, see the parameter definitions in the overview of AgcJTabbedPane.

Returns:
a Color object
See Also:
AgcJTabbedPane.setColors(Color, Color, Color, Color, Color)

getInactiveTabColor

public Color getInactiveTabColor()
Gets the inactiveTabColor.

For a description of the color parameters, see the parameter definitions in the overview of AgcJTabbedPane.

Returns:
a Color object
See Also:
AgcJTabbedPane.setColors(Color, Color, Color, Color, Color)

SilverStream
Application Server 3.5