|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--com.smardec.asc.outlookpanel.JOutlookPanel
JOutlookPanel provides API to create outlook-style panels. It has various settings and can be easily
customized to fit any application's needs.
| Field Summary | |
static int |
MODE_ANIMATE
The animate paint mode constraint. |
static int |
MODE_DEFAULT
The default paint mode constraint. |
| 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 |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
JOutlookPanel()
Constructs a JOutlookPanel. |
|
| Method Summary | |
void |
addTab(int index,
JOutlookTab outlookTab)
Inserts the specified tab at the specified position in this JOutlookPanel. |
void |
addTab(JOutlookTab outlookTab)
Appends the specified tab to the end of this JOutlookPanel. |
int |
getDefaultPaintMode()
Returns the current default paint mode of this JOutlookPanel |
int |
getDelay()
Returns the sleep time between steps during animation in this JOutlookPanel. |
OutlookButtonRenderer |
getOutlookButtonRenderer()
Returns the renderer used to display the tab's buttons in this JOutlookPanel. |
OutlookScrollButtonRenderer |
getOutlookScrollButtonDownRenderer()
Returns the renderer used to display the tab's scroll down button in this JOutlookPanel. |
OutlookScrollButtonRenderer |
getOutlookScrollButtonUpRenderer()
Returns the renderer used to display the tab's scroll up button in this JOutlookPanel. |
OutlookTabBodyRenderer |
getOutlookTabBodyRenderer()
Returns the renderer used to display the tab's body panels in this JOutlookPanel. |
java.awt.Font |
getOutlookTabButtonFont()
Returns the font of tab's buttons in this JOutlookPanel. |
java.awt.Font |
getOutlookTabHeaderFont()
Returns the font of tab's headers in this JOutlookPanel. |
OutlookTabHeaderRenderer |
getOutlookTabHeaderRenderer()
Returns the renderer used to display the tab's headers in this JOutlookPanel. |
int |
getSelectedTabIndex()
Returns the selected tab index of this JOutlookPanel. |
int |
getStep()
Returns step size during animation in this JOutlookPanel. |
JOutlookTab |
getTab(int index)
Returns the tab at the specified position in this JOutlookPanel. |
int |
getTabCount()
Returns the number of tabs in this JOutlookPanel. |
int |
getTabHeight()
Returns the height of the tabs in this JOutlookPanel. |
int |
getTabIndex(JOutlookTab jOutlookTab)
Returns the index of the specified tab, or -1 if this JOutlookPanel does not contain this tab. |
int |
getTabSpacing()
Returns the space between tabs in this JOutlookPanel. |
int |
getTabWidth()
Returns the width of the tabs in this JOutlookPanel. |
JOutlookTab |
removeTab(int index)
Removes the tab at the specified position in this JOutlookPanel. |
void |
setDefaultPaintMode(int paintMode)
Specifies the default paint mode of this JOutlookPanel. |
void |
setDelay(int delay)
Specifies the sleep time between steps during animation in this JOutlookPanel. |
void |
setOutlookButtonRenderer(OutlookButtonRenderer outlookButtonRenderer)
Specifies the renderer used to display the tab's buttons in this JOutlookPanel. |
void |
setOutlookScrollButtonDownRenderer(OutlookScrollButtonRenderer outlookScrollButtonDownRenderer)
Specifies the renderer used to display the tab's scroll down button in this JOutlookPanel. |
void |
setOutlookScrollButtonUpRenderer(OutlookScrollButtonRenderer outlookScrollButtonUpRenderer)
Specifies the renderer used to display the tab's scroll up button in this JOutlookPanel. |
void |
setOutlookTabBodyRenderer(OutlookTabBodyRenderer outlookTabBodyRenderer)
Specifies the renderer used to display the tab's body panels in this JOutlookPanel. |
void |
setOutlookTabButtonFont(java.awt.Font tabButtonFont)
Specifies the font of tab's buttons in this JOutlookPanel. |
void |
setOutlookTabHeaderFont(java.awt.Font outlookTabHeaderFont)
Specifies the font of tab's headers in this JOutlookPanel. |
void |
setOutlookTabHeaderRenderer(OutlookTabHeaderRenderer tabHeaderRenderer)
Specifies the renderer used to display the tab's headers in this JOutlookPanel. |
void |
setSelectedTabIndex(int index)
Selects this JOutlookPanel's tab with specified index using default paint mode. |
void |
setSelectedTabIndex(int index,
int paintMode)
Selects this JOutlookPanel's tab with specified index using paintMode. |
void |
setStep(int step)
Specifies step size during animation in this JOutlookPanel. |
void |
setTabHeight(int tabHeight)
Specifies the height of the tabs in this JOutlookPanel. |
void |
setTabSpacing(int tabSpacing)
Specifies the space between tabs in this JOutlookPanel. |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int MODE_DEFAULT
setSelectedTabIndex(int),
setSelectedTabIndex(int, int),
Constant Field Valuespublic static final int MODE_ANIMATE
setSelectedTabIndex(int),
setSelectedTabIndex(int, int),
Constant Field Values| Constructor Detail |
public JOutlookPanel()
JOutlookPanel.
| Method Detail |
public int getTabCount()
JOutlookPanel.
JOutlookPanel.public JOutlookTab getTab(int index)
JOutlookPanel.
index - index of tab to return.
JOutlookPanel
java.lang.IllegalArgumentException - index is out of range (index < 0 || index >= getTabCount()).public int getTabIndex(JOutlookTab jOutlookTab)
JOutlookPanel does not contain this tab.
jOutlookTab - an JOutlookTab.
JOutlookPanel.public int getTabSpacing()
JOutlookPanel.
JOutlookPanel.setTabSpacing(int)public void setTabSpacing(int tabSpacing)
JOutlookPanel.
tabSpacing - the new space in pixels between tabs in this JOutlookPanel.getTabSpacing()public int getDelay()
JOutlookPanel.
public void setDelay(int delay)
JOutlookPanel.
delay - sleep time in milliseconds.public int getStep()
JOutlookPanel.
public void setStep(int step)
JOutlookPanel.
step - step size in pixels.public int getTabHeight()
JOutlookPanel.
JOutlookPanelsetTabHeight(int)public void setTabHeight(int tabHeight)
JOutlookPanel.
tabHeight - the new height in pixels of the tabs in this JOutlookPanel.getTabHeight()public int getTabWidth()
JOutlookPanel. The width equals
jOutlookPanel.getWidth() - (jOutlookPanel.getInsets().left - jOutlookPanel.getInsets().right)
JOutlookPanelpublic OutlookTabHeaderRenderer getOutlookTabHeaderRenderer()
JOutlookPanel.
OutlookTabHeaderRenderer that displays the tab's headerssetOutlookTabHeaderRenderer(com.smardec.asc.outlookpanel.OutlookTabHeaderRenderer)public void setOutlookTabHeaderRenderer(OutlookTabHeaderRenderer tabHeaderRenderer)
JOutlookPanel.
tabHeaderRenderer - a OutlookTabHeaderRenderer that displays the tab's headersgetOutlookTabHeaderRenderer()public OutlookTabBodyRenderer getOutlookTabBodyRenderer()
JOutlookPanel.
OutlookTabBodyRenderer that displays the tab's body panels.setOutlookTabBodyRenderer(com.smardec.asc.outlookpanel.OutlookTabBodyRenderer)public void setOutlookTabBodyRenderer(OutlookTabBodyRenderer outlookTabBodyRenderer)
JOutlookPanel.
outlookTabBodyRenderer - a OutlookTabBodyRenderer that displays the tab's body panelsgetOutlookTabBodyRenderer()public OutlookButtonRenderer getOutlookButtonRenderer()
JOutlookPanel.
OutlookButtonRenderer that displays the tab's buttonssetOutlookButtonRenderer(com.smardec.asc.outlookpanel.OutlookButtonRenderer)public void setOutlookButtonRenderer(OutlookButtonRenderer outlookButtonRenderer)
JOutlookPanel.
outlookButtonRenderer - a OutlookButtonRenderer that displays the tab's buttonsgetOutlookButtonRenderer()public OutlookScrollButtonRenderer getOutlookScrollButtonUpRenderer()
JOutlookPanel.
OutlookScrollButtonRenderer that displays the tab's scroll up buttonsetOutlookScrollButtonUpRenderer(com.smardec.asc.outlookpanel.OutlookScrollButtonRenderer)public void setOutlookScrollButtonUpRenderer(OutlookScrollButtonRenderer outlookScrollButtonUpRenderer)
JOutlookPanel.
outlookScrollButtonUpRenderer - a OutlookScrollButtonRenderer that displays the tab's scroll up buttongetOutlookScrollButtonUpRenderer()public OutlookScrollButtonRenderer getOutlookScrollButtonDownRenderer()
JOutlookPanel.
OutlookScrollButtonRenderer that displays the tab's scroll down buttonsetOutlookScrollButtonDownRenderer(com.smardec.asc.outlookpanel.OutlookScrollButtonRenderer)public void setOutlookScrollButtonDownRenderer(OutlookScrollButtonRenderer outlookScrollButtonDownRenderer)
JOutlookPanel.
outlookScrollButtonDownRenderer - a OutlookScrollButtonRenderer that displays the tab's scroll down buttongetOutlookScrollButtonDownRenderer()public java.awt.Font getOutlookTabHeaderFont()
JOutlookPanel.
JOutlookPanelsetOutlookTabHeaderFont(java.awt.Font)public void setOutlookTabHeaderFont(java.awt.Font outlookTabHeaderFont)
JOutlookPanel.
outlookTabHeaderFont - a font of tab's headers in this JOutlookPanelgetOutlookTabHeaderFont()public java.awt.Font getOutlookTabButtonFont()
JOutlookPanel.
JOutlookPanelsetOutlookTabButtonFont(java.awt.Font)public void setOutlookTabButtonFont(java.awt.Font tabButtonFont)
JOutlookPanel.
tabButtonFont - a font of tab's buttons in this JOutlookPanelgetOutlookTabButtonFont()
public void addTab(int index,
JOutlookTab outlookTab)
JOutlookPanel.
Shifts the tab currently at that position (if any) and any subsequent tabs to the bottom
(adds one to their indices).
index - index at which the specified tab is to be insertedoutlookTab - a tab to be insertedremoveTab(int)public void addTab(JOutlookTab outlookTab)
JOutlookPanel.
outlookTab - tab to be appended to this JOutlookPanelremoveTab(int)public JOutlookTab removeTab(int index)
JOutlookPanel.
Shifts any subsequent tabs to the top (subtracts one from their indices).
Returns the tab that was removed from the JOutlookPanel.
index - the index of the tab to be removed
addTab(int, com.smardec.asc.outlookpanel.JOutlookTab),
addTab(com.smardec.asc.outlookpanel.JOutlookTab)public int getDefaultPaintMode()
JOutlookPanel
JOutlookPanelsetDefaultPaintMode(int)public void setDefaultPaintMode(int paintMode)
JOutlookPanel. You must specify one of the following choices:
MODE_DEFAULT or MODE_ANIMATE.
paintMode - the default paint mode of this JOutlookPanelpublic int getSelectedTabIndex()
JOutlookPanel.
JOutlookPanel.public void setSelectedTabIndex(int index)
JOutlookPanel's tab with specified index using default paint mode.
index - the tab index to be selected
public void setSelectedTabIndex(int index,
int paintMode)
JOutlookPanel's tab with specified index using paintMode. You must specify
one of the following choices: MODE_DEFAULT or MODE_ANIMATE.
index - index the tab index to be selectedpaintMode - indicates how JOutlookPanel's tab will be selected
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||