|
|||||||||
| 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
com.birosoft.liquid.LiquidInternalFrameTitlePane
public class LiquidInternalFrameTitlePane
This class represents the title pane for the JInternalFrame components.
| 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 int |
frameTitleHeight
The frame's title height, read from the UIDefaults table. |
protected boolean |
isPalette
|
protected javax.swing.Icon |
paletteCloseIcon
|
protected int |
paletteTitleHeight
|
| 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 | |
|---|---|
LiquidInternalFrameTitlePane(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 |
addSubComponents()
|
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. |
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. |
protected void |
installDefaults()
Installs some default values. |
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()
|
void |
setPalette(boolean b)
|
protected void |
uninstallDefaults()
|
| Methods inherited from class javax.swing.plaf.basic.BasicInternalFrameTitlePane |
|---|
addSystemMenuItems, assembleSystemMenu, createActions, createPropertyChangeListener, createSystemMenu, createSystemMenuBar, enableActions, getTitle, installListeners, installTitlePane, postClosingEvent, showSystemMenu, 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
protected javax.swing.Icon paletteCloseIcon
protected int paletteTitleHeight
protected int frameTitleHeight
| Constructor Detail |
|---|
public LiquidInternalFrameTitlePane(javax.swing.JInternalFrame frame)
frame - The internal frame that needs a title pane.| Method Detail |
|---|
protected void installDefaults()
installDefaults in class javax.swing.plaf.basic.BasicInternalFrameTitlePaneprotected void uninstallDefaults()
uninstallDefaults in class javax.swing.plaf.basic.BasicInternalFrameTitlePaneprotected void paintTitleBackground(java.awt.Graphics g)
paintTitleBackground in class javax.swing.plaf.basic.BasicInternalFrameTitlePanepublic 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 addSubComponents()
addSubComponents 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 setPalette(boolean b)
public void addLayoutComponent(java.lang.String name,
java.awt.Component c)
addLayoutComponent in interface java.awt.LayoutManagername - the component namec - the component to be addedpublic void removeLayoutComponent(java.awt.Component c)
removeLayoutComponent in interface java.awt.LayoutManagerc - the component to be removedpublic java.awt.Dimension preferredLayoutSize(java.awt.Container c)
preferredLayoutSize in interface java.awt.LayoutManagerc - the component to be laid outpublic java.awt.Dimension getPreferredSize(java.awt.Container c)
c - The container to gets its preferred size.
public java.awt.Dimension getMinimumSize()
getMinimumSize in class javax.swing.JComponentpublic java.awt.Dimension minimumLayoutSize(java.awt.Container c)
minimumLayoutSize in interface java.awt.LayoutManagerc - the component to be laid outpublic 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 | ||||||||