|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.bff.musicjukebox.ui.components.RetractPanel
public class RetractPanel
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
javax.swing.JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
javax.swing.JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
BOTTOM_UP
Constant to indicate a bottom-up display. |
static int |
LEFT_TO_RIGHT
Constant to indicate a left-to-right display. |
static int |
RIGHT_TO_LEFT
Constant to indicate a right-to-left display. |
static int |
TOP_DOWN
Constant to indicate a top-down display. |
| 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 | |
|---|---|
RetractPanel(javax.swing.JComponent contents,
int direction)
Creates a new RetractPanel object. |
|
| Method Summary | |
|---|---|
int |
getDirection()
Gets the direction the component expands. |
java.awt.Point |
getPosition()
Gets the position of the component. |
java.awt.Dimension |
getPreferredSize()
Gets the preferred size of the component. |
float |
getTabAlignment()
Gets the tab component alignment. |
javax.swing.JComponent |
getTabComponent()
Gets the component to use as a tab. |
int |
getTabPlacement()
Gets the tab component placement. |
void |
install(javax.swing.RootPaneContainer parent,
int x,
int y)
Installs the component in the palette layer of the specified root pane container. |
boolean |
isMaximized()
Checks if the panel is at it's maximized state. |
boolean |
isMinimized()
Checks if the panel is at it's minimized state. |
boolean |
isToggling()
|
void |
setDirection(int d)
Sets the direction the component expands. |
void |
setMaximized(boolean animated)
Sets the panel to it's maximized state. |
void |
setMinimized(boolean animated)
Sets the panel to it's minimized state. |
void |
setPosition(int x,
int y)
Sets the position of the component. |
void |
setPosition(java.awt.Point p)
Sets the position of the component. |
void |
setTabAlignment(float a)
Sets the tab component alignment. |
void |
setTabComponent(javax.swing.JComponent c)
Sets the component to use as a tab. |
void |
setTabPlacement(int p)
Sets the tab component placement. |
void |
setToggling(boolean toggling)
|
void |
setVisible(boolean v)
Sets the visibility of the component. |
void |
show(float pct)
Sets the panel to display the given visible percentage. |
void |
toggle(boolean animated)
Toggles the state between minimized or maximized state. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class javax.swing.JComponent |
|---|
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, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, 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, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
|---|
add, add, add, add, add, addContainerListener, addImpl, 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, setLayout, 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, 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, hide, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TOP_DOWN
public static final int BOTTOM_UP
public static final int LEFT_TO_RIGHT
public static final int RIGHT_TO_LEFT
| Constructor Detail |
|---|
public RetractPanel(javax.swing.JComponent contents,
int direction)
RetractPanel object.
contents - the content componentdirection - the display direction| Method Detail |
|---|
public void install(javax.swing.RootPaneContainer parent,
int x,
int y)
parent - the root pane containerx - the x-position of the componenty - the y-position of the componentpublic javax.swing.JComponent getTabComponent()
public void setTabComponent(javax.swing.JComponent c)
c - the component used as a tabpublic int getTabPlacement()
SwingConstants.TOP,
SwingConstants.BOTTOM,
SwingConstants.LEFT,
SwingConstants.RIGHTpublic void setTabPlacement(int p)
p - the component placementSwingConstants.TOP,
SwingConstants.BOTTOM,
SwingConstants.LEFT,
SwingConstants.RIGHTpublic float getTabAlignment()
Component.TOP_ALIGNMENT,
Component.BOTTOM_ALIGNMENT,
Component.CENTER_ALIGNMENT,
Component.LEFT_ALIGNMENT,
Component.RIGHT_ALIGNMENTpublic void setTabAlignment(float a)
a - the component alignmentComponent.TOP_ALIGNMENT,
Component.BOTTOM_ALIGNMENT,
Component.CENTER_ALIGNMENT,
Component.LEFT_ALIGNMENT,
Component.RIGHT_ALIGNMENTpublic void setVisible(boolean v)
setVisible in class javax.swing.JComponentv - if true, sets the component to be visiblepublic int getDirection()
TOP_DOWN,
BOTTOM_UP,
LEFT_TO_RIGHT,
RIGHT_TO_LEFTpublic void setDirection(int d)
d - the direction the component expandsTOP_DOWN,
BOTTOM_UP,
LEFT_TO_RIGHT,
RIGHT_TO_LEFTpublic java.awt.Point getPosition()
public void setPosition(java.awt.Point p)
p - the position of the component
public void setPosition(int x,
int y)
x - the x-position of the componenty - the y-position of the componentpublic void toggle(boolean animated)
animated - if the panel should be animatedpublic boolean isMinimized()
public void setMinimized(boolean animated)
animated - if the minimizing should be animatedpublic boolean isMaximized()
public void setMaximized(boolean animated)
animated - if the maximizing should be animatedpublic void show(float pct)
expand() or contract() to show or
hide the component in an animated way.setMaximized() or setMinimized()
to show or hide the component directly.
pct - the percentage of the component visiblepublic boolean isToggling()
public void setToggling(boolean toggling)
public java.awt.Dimension getPreferredSize()
getPreferredSize in class javax.swing.JComponent
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||