public class BaseInternalFrameTitlePane extends BasicInternalFrameTitlePane implements ActionListener
BasicInternalFrameTitlePane.CloseAction, BasicInternalFrameTitlePane.IconifyAction, BasicInternalFrameTitlePane.MaximizeAction, BasicInternalFrameTitlePane.MoveAction, BasicInternalFrameTitlePane.PropertyChangeHandler, BasicInternalFrameTitlePane.RestoreAction, BasicInternalFrameTitlePane.SizeAction, BasicInternalFrameTitlePane.SystemMenuBar, BasicInternalFrameTitlePane.TitlePaneLayoutJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
protected int |
buttonsWidth |
static String |
CLOSE |
protected JPanel |
customTitlePanel |
static String |
ICONIFY |
protected boolean |
isPalette |
static String |
MAXIMIZE |
static String |
PAINT_ACTIVE |
protected Icon |
paletteCloseIcon |
protected int |
paletteTitleHeight |
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, windowMenuaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
BaseInternalFrameTitlePane(JInternalFrame f) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
void |
activateFrame() |
protected void |
addSubComponents() |
protected void |
addSystemMenuItems(JMenu systemMenu) |
protected void |
assembleSystemMenu() |
protected boolean |
centerButtons() |
protected void |
createButtons() |
protected LayoutManager |
createLayout() |
protected PropertyChangeListener |
createPropertyChangeListener() |
void |
deactivateFrame() |
protected void |
enableActions() |
protected int |
getHorSpacing() |
protected int |
getIconWidth() |
protected int |
getVerSpacing() |
protected void |
installDefaults() |
boolean |
isActive() |
protected boolean |
isMacStyleWindowDecoration() |
boolean |
isPalette() |
void |
paintBackground(Graphics g) |
void |
paintBorder(Graphics g) |
void |
paintComponent(Graphics g) |
protected int |
paintIcon(Graphics g,
int x) |
void |
paintPalette(Graphics g) |
void |
paintText(Graphics g,
int x,
int y,
String title) |
protected void |
setButtonIcons() |
void |
setCustomizedTitlePanel(JPanel panel) |
void |
setPalette(boolean b) |
createActions, createSystemMenu, createSystemMenuBar, getTitle, installListeners, installTitlePane, paintTitleBackground, postClosingEvent, showSystemMenu, uninstallDefaults, uninstallListenersaddAncestorListener, 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, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, 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, updateUIadd, 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, validateTreeaction, 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, 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, transferFocusUpCyclepublic static final String PAINT_ACTIVE
public static final String ICONIFY
public static final String MAXIMIZE
public static final String CLOSE
protected boolean isPalette
protected Icon paletteCloseIcon
protected int paletteTitleHeight
protected int buttonsWidth
protected JPanel customTitlePanel
public BaseInternalFrameTitlePane(JInternalFrame f)
protected void installDefaults()
installDefaults in class BasicInternalFrameTitlePanepublic void setCustomizedTitlePanel(JPanel panel)
protected void createButtons()
createButtons in class BasicInternalFrameTitlePaneprotected void setButtonIcons()
setButtonIcons in class BasicInternalFrameTitlePaneprotected void enableActions()
enableActions in class BasicInternalFrameTitlePaneprotected void assembleSystemMenu()
assembleSystemMenu in class BasicInternalFrameTitlePaneprotected void addSystemMenuItems(JMenu systemMenu)
addSystemMenuItems in class BasicInternalFrameTitlePaneprotected void addSubComponents()
addSubComponents in class BasicInternalFrameTitlePaneprotected PropertyChangeListener createPropertyChangeListener()
createPropertyChangeListener in class BasicInternalFrameTitlePaneprotected LayoutManager createLayout()
createLayout in class BasicInternalFrameTitlePaneprotected int getHorSpacing()
protected int getVerSpacing()
protected boolean centerButtons()
public void activateFrame()
public void deactivateFrame()
protected boolean isMacStyleWindowDecoration()
public boolean isActive()
public boolean isPalette()
public void setPalette(boolean b)
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void paintPalette(Graphics g)
public void paintBackground(Graphics g)
protected int getIconWidth()
protected int paintIcon(Graphics g, int x)
public void paintBorder(Graphics g)
paintBorder in class JComponentpublic void paintComponent(Graphics g)
paintComponent in class BasicInternalFrameTitlePaneCopyright © 2014. All Rights Reserved.