Spec-Zone.ru › OpenJDK 27

Class SynthInternalFrameUI

java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.InternalFrameUI
javax.swing.plaf.basic.BasicInternalFrameUI
javax.swing.plaf.synth.SynthInternalFrameUI
All Implemented Interfaces:
PropertyChangeListener, EventListener, SynthConstants, SynthUI
public class SynthInternalFrameUI extends BasicInternalFrameUI implements SynthUI, PropertyChangeListener
Provides the Synth L&F UI delegate for JInternalFrame.
Since:
1.7

Nested Class Summary

Nested classes/interfaces declared in class BasicInternalFrameUI

BasicInternalFrameUI.BasicInternalFrameListener, BasicInternalFrameUI.BorderListener, BasicInternalFrameUI.ComponentHandler, BasicInternalFrameUI.GlassPaneDispatcher, BasicInternalFrameUI.InternalFrameLayout, BasicInternalFrameUI.InternalFramePropertyChangeListener
Modifier and Type Class Description
protected class  BasicInternalFrameUI.BasicInternalFrameListener
Basic internal frame listener.
protected class  BasicInternalFrameUI.BorderListener
Listens for border adjustments.
protected class  BasicInternalFrameUI.ComponentHandler
Component handler.
protected class  BasicInternalFrameUI.GlassPaneDispatcher
Glass pane dispatcher.
class  BasicInternalFrameUI.InternalFrameLayout
Internal frame layout.
class  BasicInternalFrameUI.InternalFramePropertyChangeListener
Internal frame property change listener.

Field Summary

Fields declared in class BasicInternalFrameUI

borderListener, componentListener, eastPane, frame, glassPaneDispatcher, internalFrameLayout, northPane, openMenuKey, propertyChangeListener, southPane, titlePane, westPane
Modifier and Type Field Description
protected MouseInputAdapter borderListener
Border listener
protected ComponentListener componentListener
Component listener
protected JComponent eastPane
East pane
protected JInternalFrame frame
frame
protected MouseInputListener glassPaneDispatcher
Glass pane dispatcher
protected LayoutManager internalFrameLayout
Internal frame layout
protected JComponent northPane
North pane
protected KeyStroke openMenuKey
Deprecated.
As of Java 2 platform v1.3.
protected PropertyChangeListener propertyChangeListener
Property change listener
protected JComponent southPane
South pane
protected BasicInternalFrameTitlePane titlePane
Title pane
protected JComponent westPane
West pane

Fields declared in interface SynthConstants

DEFAULT, DISABLED, ENABLED, FOCUSED, MOUSE_OVER, PRESSED, SELECTED
Modifier and Type Field Description
static final int DEFAULT
Indicates the region is the default.
static final int DISABLED
Primary state indicating the region is not enabled.
static final int ENABLED
Primary state indicating the component is enabled.
static final int FOCUSED
Indicates the region has focus.
static final int MOUSE_OVER
Primary state indicating the mouse is over the region.
static final int PRESSED
Primary state indicating the region is in a pressed state.
static final int SELECTED
Indicates the region is selected.

Constructor Summary

SynthInternalFrameUI(JInternalFrame b)
Modifier Constructor Description
protected
Constructs a SynthInternalFrameUI.

Method Summary

Modifier and Type Method Description
static ComponentUI createUI(JComponent b)
Creates a new UI object for the given component.
SynthContext getContext(JComponent c)
Returns the Context for the specified component.
void installDefaults()
Installs the defaults.
void paint(Graphics g, JComponent c)
Paints the specified component according to the Look and Feel.
protected void paint(SynthContext context, Graphics g)
Paints the specified component.
void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
Paints the border.
void propertyChange(PropertyChangeEvent evt)
This method gets called when a bound property is changed.
void update(Graphics g, JComponent c)
Notifies this UI delegate to repaint the specified component.

Methods declared in class BasicInternalFrameUI

activateFrame, closeFrame, createBorderListener, createComponentListener, createDesktopManager, createEastPane, createGlassPaneDispatcher, createInternalFrameListener, createLayoutManager, createNorthPane, createPropertyChangeListener, createSouthPane, createWestPane, deactivateFrame, deiconifyFrame, deinstallMouseHandlers, getDesktopManager, getEastPane, getMaximumSize, getMinimumSize, getNorthPane, getPreferredSize, getSouthPane, getWestPane, iconifyFrame, installComponents, installKeyboardActions, installListeners, installMouseHandlers, installUI, isKeyBindingActive, isKeyBindingRegistered, maximizeFrame, minimizeFrame, replacePane, setEastPane, setKeyBindingActive, setKeyBindingRegistered, setNorthPane, setSouthPane, setupMenuCloseKey, setupMenuOpenKey, setWestPane, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI
Modifier and Type Method Description
protected void activateFrame(JInternalFrame f)
This method is called when the frame becomes selected.
protected void closeFrame(JInternalFrame f)
This method is called when the user wants to close the frame.
protected MouseInputAdapter createBorderListener(JInternalFrame w)
Creates the border listener.
protected ComponentListener createComponentListener()
Creates a component listener.
protected DesktopManager createDesktopManager()
Creates the desktop manager.
protected JComponent createEastPane(JInternalFrame w)
Creates the east pane.
protected MouseInputListener createGlassPaneDispatcher()
Creates a GlassPaneDispatcher.
protected void createInternalFrameListener()
Creates the internal frame listener.
protected LayoutManager createLayoutManager()
Creates the layout manager.
protected JComponent createNorthPane(JInternalFrame w)
Creates the north pane.
protected PropertyChangeListener createPropertyChangeListener()
Creates the property change listener.
protected JComponent createSouthPane(JInternalFrame w)
Creates the north pane.
protected JComponent createWestPane(JInternalFrame w)
Creates the west pane.
protected void deactivateFrame(JInternalFrame f)
This method is called when the frame is no longer selected.
protected void deiconifyFrame(JInternalFrame f)
This method is called when the user wants to deiconify the frame.
protected void deinstallMouseHandlers(JComponent c)
Deinstalls the mouse handlers.
protected DesktopManager getDesktopManager()
Returns the proper DesktopManager.
JComponent getEastPane()
Returns the east pane.
Dimension getMaximumSize(JComponent x)
Returns the maximum size.
Dimension getMinimumSize(JComponent x)
Returns the minimum size.
JComponent getNorthPane()
Returns the north pane.
Dimension getPreferredSize(JComponent x)
Returns the preferred size.
JComponent getSouthPane()
Returns the south pane.
JComponent getWestPane()
Returns the west pane.
protected void iconifyFrame(JInternalFrame f)
This method is called when the user wants to iconify the frame.
protected void installComponents()
Installs the components.
protected void installKeyboardActions()
Installs the keyboard actions.
protected void installListeners()
Installs the listeners.
protected void installMouseHandlers(JComponent c)
Installs the mouse handlers.
void installUI(JComponent c)
Installs the UI.
final boolean isKeyBindingActive()
Returns whether or no the key binding is active.
protected final boolean isKeyBindingRegistered()
Returns whether or no the key binding is registered.
protected void maximizeFrame(JInternalFrame f)
This method is called when the user wants to maximize the frame.
protected void minimizeFrame(JInternalFrame f)
This method is called when the user wants to minimize the frame.
protected void replacePane(JComponent currentPane, JComponent newPane)
Installs necessary mouse handlers on newPane and adds it to the frame.
void setEastPane(JComponent c)
Sets the east pane.
protected final void setKeyBindingActive(boolean b)
Sets the key binding activity.
protected final void setKeyBindingRegistered(boolean b)
Sets the key binding registration.
void setNorthPane(JComponent c)
Sets the north pane.
void setSouthPane(JComponent c)
Sets the south pane.
protected void setupMenuCloseKey()
Setup the menu close key.
protected void setupMenuOpenKey()
Setup the menu open key.
void setWestPane(JComponent c)
Sets the west pane.
protected void uninstallComponents()
Uninstalls the components.
protected void uninstallDefaults()
Uninstalls the defaults.
protected void uninstallKeyboardActions()
Uninstalls the keyboard actions.
protected void uninstallListeners()
Uninstalls the listeners.
void uninstallUI(JComponent c)
Uninstalls the UI.

Methods declared in class ComponentUI

contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
Modifier and Type Method Description
boolean contains(JComponent c, int x, int y)
Returns true if the specified x,y location is contained within the look and feel's defined shape of the specified component.
Accessible getAccessibleChild(JComponent c, int i)
Returns the ith Accessible child of the object.
int getAccessibleChildrenCount(JComponent c)
Returns the number of accessible children in the object.
int getBaseline(JComponent c, int width, int height)
Returns the baseline.
Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)
Returns an enum indicating how the baseline of the component changes as the size changes.

Methods declared in class Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Modifier and Type Method Description
protected Object clone()
Creates and returns a copy of this object.
boolean equals(Object obj)
Indicates whether some other object is "equal to" this one.
protected void finalize()
Deprecated, for removal: This API element is subject to removal in a future version.
Finalization is deprecated and subject to removal in a future release.
final Class<?> getClass()
Returns the runtime class of this Object.
int hashCode()
Returns a hash code value for this object.
final void notify()
Wakes up a single thread that is waiting on this object's monitor.
final void notifyAll()
Wakes up all threads that are waiting on this object's monitor.
String toString()
Returns a string representation of the object.
final void wait()
Causes the current thread to wait until it is awakened, typically by being notified or interrupted.
final void wait(long timeoutMillis)
Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
final void wait(long timeoutMillis, int nanos)
Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

Constructor Details

SynthInternalFrameUI

protected SynthInternalFrameUI(JInternalFrame b)
Constructs a SynthInternalFrameUI.
Parameters:
b - an internal frame

Method Details

createUI

public static ComponentUI createUI(JComponent b)
Creates a new UI object for the given component.
Parameters:
b - component to create UI object for
Returns:
the UI object

installDefaults

public void installDefaults()
Installs the defaults.
Overrides:
installDefaults in class BasicInternalFrameUI

getContext

public SynthContext getContext(JComponent c)
Returns the Context for the specified component.
Specified by:
getContext in interface SynthUI
Parameters:
c - Component requesting SynthContext.
Returns:
SynthContext describing component.

update

public void update(Graphics g, JComponent c)
Notifies this UI delegate to repaint the specified component. This method paints the component background, then calls the paint(SynthContext,Graphics) method.

In general, this method does not need to be overridden by subclasses. All Look and Feel rendering code should reside in the paint method.

Overrides:
update in class ComponentUI
Parameters:
g - the Graphics object used for painting
c - the component being painted
See Also:
  • paint(SynthContext,Graphics)

paint

public void paint(Graphics g, JComponent c)
Paints the specified component according to the Look and Feel.

This method is not used by Synth Look and Feel. Painting is handled by the paint(SynthContext,Graphics) method.

Overrides:
paint in class ComponentUI
Parameters:
g - the Graphics object used for painting
c - the component being painted
See Also:
  • paint(SynthContext,Graphics)

paint

protected void paint(SynthContext context, Graphics g)
Paints the specified component. This implementation does nothing.
Parameters:
context - context for the component being painted
g - the Graphics object used for painting
See Also:
  • update(Graphics,JComponent)

paintBorder

public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
Paints the border.
Specified by:
paintBorder in interface SynthUI
Parameters:
context - a component context
g - Graphics to paint on
x - the X coordinate
y - the Y coordinate
w - width of the border
h - height of the border

propertyChange

public void propertyChange(PropertyChangeEvent evt)
This method gets called when a bound property is changed.
Specified by:
propertyChange in interface PropertyChangeListener
Parameters:
evt - A PropertyChangeEvent object describing the event source and the property that has changed.

Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2026, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.

© 1993, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API