|
|||||||||
| 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.plaf.basic.BasicInternalFrameTitlePane
de.muntjak.tinylookandfeel.TinyInternalFrameTitlePane
public class TinyInternalFrameTitlePane
TinyInternalFrameTitlePane is not an UI-delegate but a JComponent.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicInternalFrameTitlePane |
|---|
javax.swing.plaf.basic.BasicInternalFrameTitlePane.CloseAction, javax.swing.plaf.basic.BasicInternalFrameTitlePane.IconifyAction, javax.swing.plaf.basic.BasicInternalFrameTitlePane.MaximizeAction, javax.swing.plaf.basic.BasicInternalFrameTitlePane.MoveAction, javax.swing.plaf.basic.BasicInternalFrameTitlePane.PropertyChangeHandler, javax.swing.plaf.basic.BasicInternalFrameTitlePane.RestoreAction, javax.swing.plaf.basic.BasicInternalFrameTitlePane.SizeAction, javax.swing.plaf.basic.BasicInternalFrameTitlePane.SystemMenuBar, javax.swing.plaf.basic.BasicInternalFrameTitlePane.TitlePaneLayout |
| 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 | |
|---|---|
protected boolean |
isPalette
|
| Fields inherited from class javax.swing.plaf.basic.BasicInternalFrameTitlePane |
|---|
CLOSE_CMD, closeAction, closeButton, closeIcon, frame, iconButton, iconIcon, ICONIFY_CMD, iconifyAction, maxButton, maxIcon, MAXIMIZE_CMD, maximizeAction, menuBar, minIcon, MOVE_CMD, moveAction, notSelectedTextColor, notSelectedTitleColor, propertyChangeListener, RESTORE_CMD, restoreAction, selectedTextColor, selectedTitleColor, SIZE_CMD, sizeAction, windowMenu |
| 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 | |
|---|---|
TinyInternalFrameTitlePane(javax.swing.JInternalFrame frame)
This constructor creates a title pane for the given internal frame instance. |
|
| Method Summary | |
|---|---|
void |
activate()
|
void |
addLayoutComponent(java.lang.String name,
java.awt.Component c)
Adds the specified component with the specified name to the layout. |
protected void |
addSystemMenuItems(javax.swing.JMenu systemMenu)
|
protected void |
createButtons()
Creates the buttons of the title pane and initilizes their actions. |
protected java.awt.LayoutManager |
createLayout()
Creates the layout manager for the title pane. |
protected java.beans.PropertyChangeListener |
createPropertyChangeListener()
|
protected javax.swing.JMenu |
createSystemMenu()
|
void |
deactivate()
|
java.awt.Font |
getFont()
|
java.awt.Dimension |
getMinimumSize()
The minimum size of the frame. |
java.awt.Dimension |
getPreferredSize(java.awt.Container c)
Gets the preferred size of the given container. |
boolean |
isFrameMaximized()
|
boolean |
isFrameSelected()
|
boolean |
isPalette()
|
void |
layoutContainer(java.awt.Container c)
Lays out the container in the specified panel. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container c)
Calculates the minimum size dimensions for the specified panel given the components in the specified parent container. |
void |
paintComponent(java.awt.Graphics g)
Paints this component. |
void |
paintPalette(java.awt.Graphics g)
Paints the title pane for a palette. |
protected void |
paintTitleBackground(java.awt.Graphics g)
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container c)
Calculates the preferred size dimensions for the specified panel given the components in the specified parent container. |
void |
removeLayoutComponent(java.awt.Component c)
Removes the specified component from the layout. |
protected void |
setButtonIcons()
Overridden to do nothing. |
void |
setPalette(boolean b)
|
| Methods inherited from class javax.swing.plaf.basic.BasicInternalFrameTitlePane |
|---|
addSubComponents, assembleSystemMenu, createActions, createSystemMenuBar, enableActions, getTitle, installDefaults, installListeners, installTitlePane, postClosingEvent, showSystemMenu, uninstallDefaults, uninstallListeners |
| Methods inherited from class javax.swing.JComponent |
|---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, 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, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, 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, setVisible, unregisterKeyboardAction, update, updateUI |
| 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, 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 |
|---|
protected boolean isPalette
| Constructor Detail |
|---|
public TinyInternalFrameTitlePane(javax.swing.JInternalFrame frame)
frame - The internal frame that needs a title pane.| Method Detail |
|---|
protected java.beans.PropertyChangeListener createPropertyChangeListener()
createPropertyChangeListener in class javax.swing.plaf.basic.BasicInternalFrameTitlePaneprotected javax.swing.JMenu createSystemMenu()
createSystemMenu in class javax.swing.plaf.basic.BasicInternalFrameTitlePaneprotected void addSystemMenuItems(javax.swing.JMenu systemMenu)
addSystemMenuItems in class javax.swing.plaf.basic.BasicInternalFrameTitlePaneprotected void paintTitleBackground(java.awt.Graphics g)
paintTitleBackground in class javax.swing.plaf.basic.BasicInternalFrameTitlePanepublic boolean isFrameSelected()
public boolean isFrameMaximized()
public void paintComponent(java.awt.Graphics g)
paintComponent in class javax.swing.plaf.basic.BasicInternalFrameTitlePaneg - The graphics context to use.protected java.awt.LayoutManager createLayout()
createLayout in class javax.swing.plaf.basic.BasicInternalFrameTitlePaneprotected void setButtonIcons()
setButtonIcons in class javax.swing.plaf.basic.BasicInternalFrameTitlePaneprotected void createButtons()
createButtons in class javax.swing.plaf.basic.BasicInternalFrameTitlePanepublic void paintPalette(java.awt.Graphics g)
g - The graphics context to use.
public void addLayoutComponent(java.lang.String name,
java.awt.Component c)
addLayoutComponent in interface java.awt.LayoutManagername - the component namemainColor - the component to be addedpublic void removeLayoutComponent(java.awt.Component c)
removeLayoutComponent in interface java.awt.LayoutManagermainColor - the component to be removedpublic java.awt.Dimension preferredLayoutSize(java.awt.Container c)
preferredLayoutSize in interface java.awt.LayoutManagermainColor - the component to be laid outpublic java.awt.Dimension getPreferredSize(java.awt.Container c)
public java.awt.Dimension getMinimumSize()
getMinimumSize in class javax.swing.JComponentpublic java.awt.Dimension minimumLayoutSize(java.awt.Container c)
minimumLayoutSize in interface java.awt.LayoutManagerpublic void setPalette(boolean b)
public boolean isPalette()
public void layoutContainer(java.awt.Container c)
layoutContainer in interface java.awt.LayoutManagerc - the component which needs to be laid outpublic void activate()
public void deactivate()
public java.awt.Font getFont()
getFont in interface java.awt.MenuContainergetFont in class java.awt.ComponentComponent.getFont()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||